wt.visitor
Interface Walker
- All Known Implementing Classes:
- AbstractObjectGraph, wt.visitor.BasicWalker, BFSWalker, DFSWalker, wt.visitor.Navigator
public interface Walker
This interface is responsible for controlling the overall traversal mechanism.
It includes a single 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.
Supported API: true
Extendable: true
traverse
void traverse(Persistable root)
throws WTException
- Traverses the root node.
Supported API: true
- Parameters:
root -
- Throws:
WTException