wt.graph
Interface ObjectGraph

All Superinterfaces:
Cloneable, GraphModel, GraphNodeModel, NetFactor, NodeExpander, ObjectGraphNode, ObjectMappable, Persistable, Serializable, Walker
All Known Subinterfaces:
ObjectGraphTemplate
All Known Implementing Classes:
AbstractObjectGraph, AbstractObjectGraphTemplate

public interface ObjectGraph
extends Persistable, Walker, ObjectGraphNode, GraphModel

Provides a top-level abstraction of an object graph. More specifically this abstraction represents an instance-based view of related persistable objects that form an associative structure. The object graph acts as the overall container where it references the root (node) object of the structure of related objects. From the root node the structure of the object graph can span outwards and can consequently be traversed.

The object graph is composed of nodes and edges. Each node has an association to another node that is represented as an edge, which maintains the association. An edge can be either unidirectional or bidirectional. An unidirectional edge represents a type of object reference. A bidirectional edge represents a type of link.



Supported API: false

Extendable: false


Field Summary
static String NODE_EXPANDER
          Label for the attribute.
static String ROOT
          Label for the attribute.
static String ROOT_REFERENCE
          Label for the attribute.
static String VISITOR
          Label for the attribute.
static String WALKER_IMPL
          Label for the attribute.
 
Fields inherited from interface wt.fc.Persistable
IDENTITY, PERSIST_INFO, TYPE
 
Fields inherited from interface wt.graph.ObjectGraphNode
EXCLUDED, GRAPH, ID, INFO
 
Fields inherited from interface wt.util.graph.GraphNodeModel
NEIGHBOR
 
Fields inherited from interface wt.util.graph.GraphModel
EDGE_IMPL, EDGE_LIST, NODE_IMPL, NODE_LIST
 
Method Summary
 NodeExpander getNodeExpander()
          Gets the object for the association that plays role: NODE_EXPANDER.
 ObjectGraphNode getRoot()
          Gets the object for the association that plays role: ROOT.
 ObjectReference getRootReference()
          Gets the value of the attribute: ROOT_REFERENCE.
 Visitor getVisitor()
          Gets the object for the association that plays role: VISITOR.
 ObjectGraphWalker getWalkerImpl()
          Gets the object for the association that plays role: WALKER_IMPL.
 void setNodeExpander(NodeExpander a_NodeExpander)
          Sets the object for the association that plays role: NODE_EXPANDER.
 void setRoot(ObjectGraphNode a_Root)
          Sets the object for the association that plays role: ROOT.
 void setRootReference(ObjectReference a_RootReference)
          Sets the value of the attribute: ROOT_REFERENCE.
 void setVisitor(Visitor a_Visitor)
          Sets the object for the association that plays role: VISITOR.
 void setWalkerImpl(ObjectGraphWalker a_WalkerImpl)
          Sets the object for the association that plays role: WALKER_IMPL.
 
Methods inherited from interface wt.fc.Persistable
checkAttributes, getIdentity, getPersistInfo, getType, setPersistInfo
 
Methods inherited from interface wt.fc.ObjectMappable
readExternal, writeExternal
 
Methods inherited from interface wt.fc.NetFactor
getClassInfo, getConceptualClassname
 
Methods inherited from interface wt.visitor.Walker
traverse
 
Methods inherited from interface wt.graph.ObjectGraphNode
getGraph, getId, getInfo, isExcluded, setExcluded, setGraph, setId, setInfo
 
Methods inherited from interface wt.visitor.NodeExpander
expandNode
 
Methods inherited from interface wt.util.graph.GraphNodeModel
clone, equals
 
Methods inherited from interface wt.util.graph.GraphModel
clone, equals, getEdgeImpl, getEdgeList, getNodeImpl, getNodeList, setEdgeImpl, setEdgeList, setNodeImpl, setNodeList, traverse
 

Field Detail

ROOT

public static final String ROOT
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

ROOT_REFERENCE

public static final String ROOT_REFERENCE
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

VISITOR

public static final String VISITOR
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

WALKER_IMPL

public static final String WALKER_IMPL
Label for the attribute.

Supported API: false

See Also:
Constant Field Values

NODE_EXPANDER

public static final String NODE_EXPANDER
Label for the attribute.

Supported API: false

See Also:
Constant Field Values
Method Detail

getRoot

public ObjectGraphNode getRoot()
Gets the object for the association that plays role: ROOT.

Supported API: false

Returns:
ObjectGraphNode

setRoot

public void setRoot(ObjectGraphNode a_Root)
             throws WTException
Sets the object for the association that plays role: ROOT.

Supported API: false

Parameters:
a_Root -
Throws:
WTException

getRootReference

public ObjectReference getRootReference()
Gets the value of the attribute: ROOT_REFERENCE.

Supported API: false

Returns:
ObjectReference

setRootReference

public void setRootReference(ObjectReference a_RootReference)
Sets the value of the attribute: ROOT_REFERENCE.

Supported API: false

Parameters:
a_RootReference -

getVisitor

public Visitor getVisitor()
Gets the object for the association that plays role: VISITOR.

Supported API: false

Specified by:
getVisitor in interface Walker
Returns:
Visitor

setVisitor

public void setVisitor(Visitor a_Visitor)
Sets the object for the association that plays role: VISITOR.

Supported API: false

Specified by:
setVisitor in interface Walker
Parameters:
a_Visitor -

getWalkerImpl

public ObjectGraphWalker getWalkerImpl()
Gets the object for the association that plays role: WALKER_IMPL.

Supported API: false

Returns:
ObjectGraphWalker

setWalkerImpl

public void setWalkerImpl(ObjectGraphWalker a_WalkerImpl)
Sets the object for the association that plays role: WALKER_IMPL.

Supported API: false

Parameters:
a_WalkerImpl -

getNodeExpander

public NodeExpander getNodeExpander()
Gets the object for the association that plays role: NODE_EXPANDER.

Supported API: false

Specified by:
getNodeExpander in interface Walker
Returns:
NodeExpander

setNodeExpander

public void setNodeExpander(NodeExpander a_NodeExpander)
Sets the object for the association that plays role: NODE_EXPANDER.

Supported API: false

Specified by:
setNodeExpander in interface Walker
Parameters:
a_NodeExpander -