java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp.registry.EmbeddedSharedObject
de.grogra.graph.wrapped.SharedWrappedGraph
de.grogra.graph.wrapped.impl.GraphObject
- All Implemented Interfaces:
GraphContext,GraphManagerContext,WrappedGraph,WrappedGraphObj,ProducingNode,DisposableField,Manageable,Shareable,RegistryContext,Selectable,Graph
The GraphObject implementation of SharedWrappedGraph is designed to hold loaded instances of file based graph structures in its DataGraph.
Using the QueryGrpah it is possible to change the DataGraph even so it is not possible to save the changes.
Since the class is used as a resource in the registry the changes will be kept during the execution (the reload function can be used to restore the original data)
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.imp.registry.EmbeddedSharedObject
EmbeddedSharedObject.GetExtFromMimeType -
Field Summary
FieldsFields inherited from class de.grogra.graph.wrapped.SharedWrappedGraph
gm, INIT_GS, querygraph, registry, W_GRAPH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionManage where the file should be storedThe java class name of the object typebooleanTrue if the object is not "empty" as its persistence depends how the mimetype write content, a java object with some value could be defined as "empty"voidReread the original file and push it into the cleared dataGraphMethods inherited from class de.grogra.graph.wrapped.SharedWrappedGraph
clearQueryGraph, disposeField, getDataGraph, getName, getQueryGraph, getRegistry, resolveMethods inherited from class de.grogra.imp.registry.EmbeddedSharedObject
getManageableType, getProvider, getProvider, initProvider, manageableReadResolve, manageableWriteReplaceMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getStamp, removeReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.graph.wrapped.WrappedGraph
canEnumerateEdges, canEnumerateNodes, createMatcher, createProducer, createQueryState, enumerateEdges, enumerateNodes, getModel, getRoot, setDerivationModeMethods inherited from interface de.grogra.graph.wrapped.WrappedGraphObj
apply, clear, cloneAllNodes, cloneGraph, derive, getCommandDir, getGraph, getRootNode, setRootNode, toInstance, toSelection, view2d, view3d
-
Field Details
-
MIME_TYPE
-
-
Constructor Details
-
GraphObject
public GraphObject() -
GraphObject
-
-
Method Details
-
getMimeType
Description copied from class:EmbeddedSharedObjectManage where the file should be stored- Specified by:
getMimeTypein classEmbeddedSharedObject
-
getExtension
- Specified by:
getExtensionin classEmbeddedSharedObject
-
getResourceDirectoryName
- Specified by:
getResourceDirectoryNamein classEmbeddedSharedObject
-
getObjectType
Description copied from class:EmbeddedSharedObjectThe java class name of the object type- Specified by:
getObjectTypein classEmbeddedSharedObject
-
hasContent
public boolean hasContent()Description copied from class:EmbeddedSharedObjectTrue if the object is not "empty" as its persistence depends how the mimetype write content, a java object with some value could be defined as "empty"- Specified by:
hasContentin classEmbeddedSharedObject
-
produceNode
- Specified by:
produceNodein interfaceProducingNode
-
reload
Reread the original file and push it into the cleared dataGraph- Specified by:
reloadin interfaceWrappedGraph
-