java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.object.impl.GraphObjectImpl
- All Implemented Interfaces:
GraphObject
,Manageable
,Shareable
,RegistryContext
,Showable
,Serializable
- Direct Known Subclasses:
SubGraphImpl
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone the graph of the rootnode and returns itGives an array of node types and number contained in the subgraphgetGraph()
Return the graph manager of the subgraph.Return a node of the given nameReturns theRegistry
which is linked with this instance.Return the root node of the subgraph, i.e. the root of the object loadedvoid
reload()
If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilationvoid
setRootNode
(Node root) Set the rootnode of a Subgraph object.void
void
write()
Override the file subgraph in the project with its current version.Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
MIME_TYPE
-
registry
-
-
Constructor Details
-
GraphObjectImpl
public GraphObjectImpl() -
GraphObjectImpl
-
GraphObjectImpl
-
-
Method Details
-
getRootNode
Description copied from interface:GraphObject
Return the root node of the subgraph, i.e. the root of the object loaded- Specified by:
getRootNode
in interfaceGraphObject
- Returns:
- a Node
-
setRootNode
Description copied from interface:GraphObject
Set the rootnode of a Subgraph object.- Specified by:
setRootNode
in interfaceGraphObject
-
cloneGraph
Description copied from interface:GraphObject
clone the graph of the rootnode and returns it- Specified by:
cloneGraph
in interfaceGraphObject
- Returns:
- Throws:
CloneNotSupportedException
-
write
public void write()Description copied from interface:GraphObject
Override the file subgraph in the project with its current version. Required on subgraph created in RGG to be saved- Specified by:
write
in interfaceGraphObject
-
reload
public void reload()Description copied from interface:GraphObject
If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilation- Specified by:
reload
in interfaceGraphObject
-
describes
Description copied from interface:GraphObject
Gives an array of node types and number contained in the subgraph- Specified by:
describes
in interfaceGraphObject
- Returns:
-
getGraph
Description copied from interface:GraphObject
Return the graph manager of the subgraph. It is different from the graph manager of the project & workbench.- Specified by:
getGraph
in interfaceGraphObject
- Returns:
-
getNode
Description copied from interface:GraphObject
Return a node of the given name- Specified by:
getNode
in interfaceGraphObject
- Parameters:
key
- : the name of the type of node
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
show
-
getRegistry
Description copied from interface:RegistryContext
Returns theRegistry
which is linked with this instance.- Specified by:
getRegistry
in interfaceRegistryContext
- Returns:
- the registry linked with this instance
-