wt.graph.processor
Class ApplicationProcessingModeVisitor

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

public class ApplicationProcessingModeVisitor
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
           
(package private)  boolean preview
           
private static String RESOURCE
           
private  Vector templateEdgeList
           
private  Vector templateNodeList
           
 
Fields inherited from class wt.visitor.CompositeVisitor
 
Constructor Summary
ApplicationProcessingModeVisitor()
          

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

Supported API: false
ApplicationProcessingModeVisitor(String a_nodeImpl, String a_edgeImpl, boolean a_Preview)
           
ApplicationProcessingModeVisitor(String a_nodeImpl, String a_edgeImpl, ObjectGraph a_graph, ObjectGraph a_inputGraph)
          This is complete constructor normatlly used by the future implementation of ObjectGraphProcessor.
ApplicationProcessingModeVisitor(String a_nodeImpl, String a_edgeImpl, ObjectGraph a_graph, ObjectGraphTemplate a_template)
          This is complete constructor normatlly used by ObjectGraphTemplateProcessor.
 
Method Summary
private  boolean checkForNotExcluded(Persistable fromNode, Link link, Persistable toNode, int level)
           
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 ApplicationProcessingModeVisitor

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.
 boolean isPreview()
           
private  void nodeImplValidate(String a_NodeImpl)
           
private  boolean processLevel(Persistable fromNode, Vector links, Vector toNodes, int level)
           
private  boolean processLevels(Vector fromNodes, Vector links, Vector toNodes, int level)
           
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.
 void setPreview(boolean a_bool)
           
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

preview

boolean preview
Constructor Detail

ApplicationProcessingModeVisitor

public ApplicationProcessingModeVisitor()


Supported API: false


ApplicationProcessingModeVisitor

public ApplicationProcessingModeVisitor(String a_nodeImpl,
                                        String a_edgeImpl)


Supported API: false

Parameters:
a_nodeImpl -
a_edgeImpl -

ApplicationProcessingModeVisitor

public ApplicationProcessingModeVisitor(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 -

ApplicationProcessingModeVisitor

public ApplicationProcessingModeVisitor(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 -

ApplicationProcessingModeVisitor

public ApplicationProcessingModeVisitor(String a_nodeImpl,
                                        String a_edgeImpl,
                                        boolean a_Preview)
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 ApplicationProcessingModeVisitor

Supported API: false

Returns:
ObjectGraph

processLevels

private boolean processLevels(Vector fromNodes,
                              Vector links,
                              Vector toNodes,
                              int level)

processLevel

private boolean processLevel(Persistable fromNode,
                             Vector links,
                             Vector toNodes,
                             int level)

checkForNotExcluded

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

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)

setPreview

public void setPreview(boolean a_bool)

isPreview

public boolean isPreview()