wt.visitor
Class Navigator
java.lang.Object
wt.visitor.BasicWalker
wt.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- Deprecated.
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
- Deprecated.
Navigator
public Navigator()
- Deprecated.