de.grogra.imp
Class GraphDescriptor
java.lang.Object
de.grogra.imp.GraphDescriptor
- All Implemented Interfaces:
- Manageable
- Direct Known Subclasses:
- FilterDescriptor, MetaGraphDescriptor, ProjectGraphDescriptor
public abstract class GraphDescriptor
- extends java.lang.Object
- implements Manageable
A GraphDescriptor
represents the persistent information
which is needed to obtain a specific Graph
in the context of a View
.
- Author:
- Ole Kniemeyer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final GraphDescriptor.Type $TYPE
GraphDescriptor
public GraphDescriptor()
fieldModified
public void fieldModified(PersistenceField field,
int[] indices,
Transaction t)
- Specified by:
fieldModified
in interface Manageable
getGraph
public abstract Graph getGraph(View view)
- Returns the graph described by this descriptor, given the context
view
.
- Parameters:
view
- the context for the graph
- Returns:
- graph corresponding to this descriptor
getPathFor
public Path getPathFor(View view,
GraphState gs,
java.lang.Object obj,
boolean node)
getStamp
public int getStamp()
- Description copied from interface:
Manageable
- Returns a stamp for this object. Each modification to this object
increments the stamp. The initial stamp is non-negative.
- Specified by:
getStamp
in interface Manageable
- Returns:
- a stamp
manageableReadResolve
public Manageable manageableReadResolve()
- Specified by:
manageableReadResolve
in interface Manageable
manageableWriteReplace
public java.lang.Object manageableWriteReplace()
- Specified by:
manageableWriteReplace
in interface Manageable
substituteSelection
public void substituteSelection(GraphState[] gs,
java.lang.Object[] object,
boolean[] asNode,
int index)