wt.graph
Class AbstractObjectGraph

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.graph.AbstractObjectGraph
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, NetFactor, ObjectMappable, Persistable, wt.graph.ObjectGraph, wt.graph.ObjectGraphNode, DisplayIdentification, wt.util.graph.GraphModel, wt.util.graph.GraphNodeModel, NodeExpander, Walker

public abstract class AbstractObjectGraph
extends WTObject
implements wt.graph.ObjectGraph, Externalizable

Provides a value-add "basic" implementation of an object graph abstraction. It wraps the object graph factory, and extends the notion of persistability by being a type of WTObject.

This "basic" implementation can be the customizaton point of where to begin specializing. Or alternatively specialization could start at its supertype the object graph for maximum flexibility.



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 void expandNode(Persistable parentNode, Vector links, Vector nodes)
          Expands the node returning all of the links and nodes associated with the parent node.
 void traverse()
          Traverses the root node.
 void traverse(Persistable root)
          Traverses the root node.
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

traverse

public void traverse()
              throws WTException
Traverses the root node.

Supported API: true

Throws:
WTException

traverse

public void traverse(Persistable root)
              throws WTException
Traverses the root node.

Supported API: true

Specified by:
traverse in interface Walker
Parameters:
root -
Throws:
WTException

expandNode

public void expandNode(Persistable parentNode,
                       Vector links,
                       Vector nodes)
                throws wt.graph.ObjectGraphException
Expands the node returning all of the links and nodes associated with the parent node.

Supported API: true

Specified by:
expandNode in interface NodeExpander
Parameters:
parentNode -
links -
nodes -
Throws:
wt.graph.ObjectGraphException