wt.visitor
Class Navigator

java.lang.Object
  extended bywt.visitor.BasicWalker
      extended bywt.visitor.Navigator
All Implemented Interfaces:
Walker
Direct Known Subclasses:
BFSWalker, DFSWalker

Deprecated. Use wt.visitor.Walker

public abstract class Navigator
extends BasicWalker

This abstract class is responsible for controlling the overall search mechanism. It includes a single abstract traverse() method that provides multi-level navigation of associations between Persistable objects. Depth-first traversal is an example of an implementation. It uses a NodeExpander object to do the actual expansion of nodes. It also is responsible for calling the visit methods on the Visitor object as the structure is traversed. If any visit method returns a boolean false value, then that node will not be traversed any further.

Descendant classes are also responsible for maintaining a list of nodes that have been visited. This is used to pass a flag to the Visitor's visit operation. As a convenience, registerVisitedNode() and clearVisitedNodes() methods are implemented in this base class.



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
          Deprecated.  
private static String RESOURCE
          Deprecated.  
 
Fields inherited from class wt.visitor.BasicWalker
 
Fields inherited from interface wt.visitor.Walker
NODE_EXPANDER, VISITOR
 
Constructor Summary
Navigator()
          Deprecated.  
 
Methods inherited from class wt.visitor.BasicWalker
clearVisitedNodes, getNodeExpander, getVisitor, isRecursionDetectionEnabled, registerVisitedNode, setNodeExpander, setRecursionDetectionEnabled, setVisitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.visitor.Walker
traverse
 

Field Detail

RESOURCE

private static final String RESOURCE
Deprecated. 
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Deprecated. 
Constructor Detail

Navigator

public Navigator()
Deprecated.