java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.imp.registry.EmbeddedSharedObject
de.grogra.graph.wrapped.SharedWrappedGraph
de.grogra.graph.wrapped.RewritableWrappedGraph
- All Implemented Interfaces:
GraphContext,GraphManagerContext,Producable,ProducableWrappedGraphObj,Rewritable,WrappedGraph,WrappedGraphObj,DisposableField,Manageable,Shareable,RegistryContext,Selectable,Graph
- Direct Known Subclasses:
SecGraph
public class RewritableWrappedGraph
extends SharedWrappedGraph
implements Rewritable, ProducableWrappedGraphObj
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionRewritableWrappedGraph(Context ctx, boolean uninitialize) RewritableWrappedGraph(Context ctx, Node r) RewritableWrappedGraph(Context ctx, Node node, boolean isRoot) RewritableWrappedGraph(Context ctx, WrappedGraph wg) -
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"voidinitialize(Context ctx) booleanvoidClear the DataGraph and read the structure from file using the RootlessGraphReader with the old rootsvoidsetAutoRecreate(boolean mode) booleanvoidWrite the current content of the DataGraph in the linked ProjectFile using the original GroIMP GraphXMLSource if auto recreate is enabled, reload is called at the end to update the structure after compilation.voidvoidMethods inherited from class de.grogra.graph.wrapped.SharedWrappedGraph
clearQueryGraph, disposeField, getDataGraph, getName, getQueryGraph, getRegistry, resolveMethods inherited from class de.grogra.imp.registry.EmbeddedSharedObject
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.ProducableWrappedGraphObj
getInitalProducer, producer$beginMethods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistryMethods inherited from interface de.grogra.graph.wrapped.WrappedGraph
canEnumerateEdges, canEnumerateNodes, createMatcher, createProducer, createQueryState, enumerateEdges, enumerateNodes, getDataGraph, getModel, getName, getQueryGraph, 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
-
$TYPE
-
-
Constructor Details
-
RewritableWrappedGraph
public RewritableWrappedGraph() -
RewritableWrappedGraph
-
RewritableWrappedGraph
-
RewritableWrappedGraph
- Throws:
CloneNotSupportedException
-
RewritableWrappedGraph
- Throws:
CloneNotSupportedException
-
RewritableWrappedGraph
-
RewritableWrappedGraph
-
-
Method Details
-
initialize
-
reload
Clear the DataGraph and read the structure from file using the RootlessGraphReader with the old roots- Specified by:
reloadin interfaceWrappedGraph
-
write
Write the current content of the DataGraph in the linked ProjectFile using the original GroIMP GraphXMLSource if auto recreate is enabled, reload is called at the end to update the structure after compilation.- Specified by:
writein interfaceRewritable
-
write
-
write
-
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
-
wasChanged
public boolean wasChanged()- Specified by:
wasChangedin interfaceRewritable
-
isAutoRecreate
public boolean isAutoRecreate()- Specified by:
isAutoRecreatein interfaceRewritable
-
setAutoRecreate
public void setAutoRecreate(boolean mode) - Specified by:
setAutoRecreatein interfaceRewritable
-
getManageableType
- Specified by:
getManageableTypein interfaceManageable- Overrides:
getManageableTypein classEmbeddedSharedObject
-