wt.graph.processor
Class PreviewProcessingModeVisitor

java.lang.Object
  extended bywt.visitor.CompositeVisitor
      extended bywt.graph.ObjectGraphCallback
          extended bywt.graph.processor.PreviewProcessingModeVisitor
All Implemented Interfaces:
Serializable, Visitor

public class PreviewProcessingModeVisitor
extends ObjectGraphCallback
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  String edgeImpl
           
private  Vector graphEdgeList
           
private  Vector graphNodeList
           
private  ObjectGraph inputObjectGraph
           
private  String nodeImpl
           
private  ObjectGraph objectGraph
           
private  ObjectGraphTemplate objectGraphTemplate
           
private  Vector objectIDs
           
private static String RESOURCE
           
private  Vector templateEdgeList
           
private  Vector templateNodeList
           
 
Fields inherited from class wt.visitor.CompositeVisitor
 
Constructor Summary
PreviewProcessingModeVisitor()
          

Supported API: false
PreviewProcessingModeVisitor(String a_nodeImpl, String a_edgeImpl)
          

Supported API: false
PreviewProcessingModeVisitor(String a_nodeImpl, String a_edgeImpl, ObjectGraph a_graph, ObjectGraph a_inputGraph)
          This is complete constructor normatlly used by the future implementation of ObjectGraphProcessor.
PreviewProcessingModeVisitor(String a_nodeImpl, String a_edgeImpl, ObjectGraph a_graph, ObjectGraphTemplate a_template)
          This is complete constructor normatlly used by ObjectGraphTemplateProcessor.
 
Method Summary
private  void edgeImplValidate(String a_EdgeImpl)
           
private  ObjectGraphNode findObjectGraphNode(Persistable a_node)
           
(package private)  String getEdgeImpl()
          Gets the value of the attribute: edgeImpl.
 ObjectGraph getFinalGraph()
          This allows processor to capture the ObjectGraph from the PreviewProcessingModeVisitor

Supported API: false
(package private)  ObjectGraph getInputObjectGraph()
          Gets the value of the attribute: inputObjectGraph; input ObjectGraph used by ObjectGraphProcessor which pares down this graph to produce new output ObjectGraph

Supported API: false
(package private)  String getNodeImpl()
          Gets the value of the attribute: nodeImpl.
(package private)  ObjectGraph getObjectGraph()
          Gets the value of the attribute: objectGraph; This is the output ObjectGraph being created by the ObjectGraphTemplateProcessor or ObjectGraphProcessor.
(package private)  ObjectGraphTemplate getObjectGraphTemplate()
          Gets the value of the attribute: objectGraphTemplate; This is the "input" ObjectGraphTemplate being used to create new ObjectGraph - it is passed into the ObjectGraphTemplateProcessor then it sets this attribute with the setter.
private  void nodeImplValidate(String a_NodeImpl)
           
private  boolean processNode(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited)
           
(package private)  void setEdgeImpl(String a_EdgeImpl)
          Sets the value of the attribute: edgeImpl.
(package private)  void setInputObjectGraph(ObjectGraph a_InputObjectGraph)
          Sets the value of the attribute: inputObjectGraph; input ObjectGraph used by ObjectGraphProcessor which pares down this graph to produce new output ObjectGraph

Supported API: false
(package private)  void setNodeImpl(String a_NodeImpl)
          Sets the value of the attribute: nodeImpl.
(package private)  void setObjectGraph(ObjectGraph a_ObjectGraph)
          Sets the value of the attribute: objectGraph; This is the output ObjectGraph being created by the ObjectGraphTemplateProcessor or ObjectGraphProcessor.
(package private)  void setObjectGraphTemplate(ObjectGraphTemplate a_ObjectGraphTemplate)
          Sets the value of the attribute: objectGraphTemplate; This is the "input" ObjectGraphTemplate being used to create new ObjectGraph - it is passed into the ObjectGraphTemplateProcessor then it sets this attribute with the setter.
private  void storeObjectGraphNode(ObjectGraphNode a_graphNode, Persistable a_node)
           
 boolean visit(Persistable fromNode, Link link, Persistable toNode, int level, boolean previouslyVisited)
          

Supported API: false
 boolean visitLevel(Persistable fromNode, Vector links, Vector toNodes, int level)
          

Supported API: false
 boolean visitLevel(Vector fromNodes, Vector links, Vector toNodes, int level)
          

Supported API: false
 
Methods inherited from class wt.visitor.CompositeVisitor
addVisitor, getVisitors, removeVisitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

objectGraph

private ObjectGraph objectGraph

objectGraphTemplate

private ObjectGraphTemplate objectGraphTemplate

inputObjectGraph

private ObjectGraph inputObjectGraph

nodeImpl

private String nodeImpl

edgeImpl

private String edgeImpl

templateNodeList

private Vector templateNodeList

templateEdgeList

private Vector templateEdgeList

graphNodeList

private Vector graphNodeList

graphEdgeList

private Vector graphEdgeList

objectIDs

private Vector objectIDs
Constructor Detail

PreviewProcessingModeVisitor

public PreviewProcessingModeVisitor()


Supported API: false


PreviewProcessingModeVisitor

public PreviewProcessingModeVisitor(String a_nodeImpl,
                                    String a_edgeImpl)


Supported API: false

Parameters:
a_nodeImpl -
a_edgeImpl -

PreviewProcessingModeVisitor

public PreviewProcessingModeVisitor(String a_nodeImpl,
                                    String a_edgeImpl,
                                    ObjectGraph a_graph,
                                    ObjectGraph a_inputGraph)
This is complete constructor normatlly used by the future implementation of ObjectGraphProcessor.

Supported API: false

Parameters:
a_nodeImpl -
a_edgeImpl -
a_graph -
a_inputGraph -

PreviewProcessingModeVisitor

public PreviewProcessingModeVisitor(String a_nodeImpl,
                                    String a_edgeImpl,
                                    ObjectGraph a_graph,
                                    ObjectGraphTemplate a_template)
This is complete constructor normatlly used by ObjectGraphTemplateProcessor.

Supported API: false

Parameters:
a_nodeImpl -
a_edgeImpl -
a_graph -
a_template -
Method Detail

getObjectGraph

ObjectGraph getObjectGraph()
Gets the value of the attribute: objectGraph; This is the output ObjectGraph being created by the ObjectGraphTemplateProcessor or ObjectGraphProcessor.

Supported API: false

Returns:
ObjectGraph

setObjectGraph

void setObjectGraph(ObjectGraph a_ObjectGraph)
              throws WTPropertyVetoException
Sets the value of the attribute: objectGraph; This is the output ObjectGraph being created by the ObjectGraphTemplateProcessor or ObjectGraphProcessor.

Supported API: false

Parameters:
a_ObjectGraph -
Throws:
WTPropertyVetoException

getObjectGraphTemplate

ObjectGraphTemplate getObjectGraphTemplate()
Gets the value of the attribute: objectGraphTemplate; This is the "input" ObjectGraphTemplate being used to create new ObjectGraph - it is passed into the ObjectGraphTemplateProcessor then it sets this attribute with the setter.

Supported API: false

Returns:
ObjectGraphTemplate

setObjectGraphTemplate

void setObjectGraphTemplate(ObjectGraphTemplate a_ObjectGraphTemplate)
                      throws WTPropertyVetoException
Sets the value of the attribute: objectGraphTemplate; This is the "input" ObjectGraphTemplate being used to create new ObjectGraph - it is passed into the ObjectGraphTemplateProcessor then it sets this attribute with the setter.

Supported API: false

Parameters:
a_ObjectGraphTemplate -
Throws:
WTPropertyVetoException

getInputObjectGraph

ObjectGraph getInputObjectGraph()
Gets the value of the attribute: inputObjectGraph; input ObjectGraph used by ObjectGraphProcessor which pares down this graph to produce new output ObjectGraph

Supported API: false

Returns:
ObjectGraph

setInputObjectGraph

void setInputObjectGraph(ObjectGraph a_InputObjectGraph)
                   throws WTPropertyVetoException
Sets the value of the attribute: inputObjectGraph; input ObjectGraph used by ObjectGraphProcessor which pares down this graph to produce new output ObjectGraph

Supported API: false

Parameters:
a_InputObjectGraph -
Throws:
WTPropertyVetoException

getNodeImpl

String getNodeImpl()
Gets the value of the attribute: nodeImpl.

Supported API: false

Returns:
String

setNodeImpl

void setNodeImpl(String a_NodeImpl)
           throws WTPropertyVetoException
Sets the value of the attribute: nodeImpl.

Supported API: false

Parameters:
a_NodeImpl -
Throws:
WTPropertyVetoException

nodeImplValidate

private void nodeImplValidate(String a_NodeImpl)
                       throws WTPropertyVetoException
Parameters:
a_NodeImpl -
Throws:
WTPropertyVetoException

getEdgeImpl

String getEdgeImpl()
Gets the value of the attribute: edgeImpl.

Supported API: false

Returns:
String

setEdgeImpl

void setEdgeImpl(String a_EdgeImpl)
           throws WTPropertyVetoException
Sets the value of the attribute: edgeImpl.

Supported API: false

Parameters:
a_EdgeImpl -
Throws:
WTPropertyVetoException

edgeImplValidate

private void edgeImplValidate(String a_EdgeImpl)
                       throws WTPropertyVetoException
Parameters:
a_EdgeImpl -
Throws:
WTPropertyVetoException

visit

public boolean visit(Persistable fromNode,
                     Link link,
                     Persistable toNode,
                     int level,
                     boolean previouslyVisited)
              throws WTException


Supported API: false

Specified by:
visit in interface Visitor
Overrides:
visit in class ObjectGraphCallback
Parameters:
fromNode -
link -
toNode -
level -
previouslyVisited -
Returns:
boolean
Throws:
WTException

visitLevel

public boolean visitLevel(Persistable fromNode,
                          Vector links,
                          Vector toNodes,
                          int level)
                   throws WTException


Supported API: false

Specified by:
visitLevel in interface Visitor
Overrides:
visitLevel in class ObjectGraphCallback
Parameters:
fromNode -
links -
toNodes -
level -
Returns:
boolean
Throws:
WTException

visitLevel

public boolean visitLevel(Vector fromNodes,
                          Vector links,
                          Vector toNodes,
                          int level)
                   throws WTException


Supported API: false

Specified by:
visitLevel in interface Visitor
Overrides:
visitLevel in class ObjectGraphCallback
Parameters:
fromNodes -
links -
toNodes -
level -
Returns:
boolean
Throws:
WTException

getFinalGraph

public ObjectGraph getFinalGraph()
This allows processor to capture the ObjectGraph from the PreviewProcessingModeVisitor

Supported API: false

Returns:
ObjectGraph

processNode

private boolean processNode(Persistable fromNode,
                            Link link,
                            Persistable toNode,
                            int level,
                            boolean previouslyVisited)
                     throws WTException
Throws:
WTException

storeObjectGraphNode

private void storeObjectGraphNode(ObjectGraphNode a_graphNode,
                                  Persistable a_node)

findObjectGraphNode

private ObjectGraphNode findObjectGraphNode(Persistable a_node)