Package com.tailf.navu.traversal
Class NavuTreeTraversal
Object
com.tailf.navu.traversal.NavuTreeTraversal
Starting point for both Active and Passive mode traversal
Starting class from which one can retrieve an iterator
or create an instance for passive mode traversal.
In passive mode, the user registers one or more filter methods which are
called for each NavuNode
encountered by the traversal.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(TraversalFilter filter) static NavuTreeTraversal
createInstance
(NavuContext ctx, NavuTraversalMean travmeth) Factory method to retrieve an instance of this class.iterator
(NavuContext ctx) Retrieve an iterator to traverse the entire NAVU tree.Retrieve an iterator to traverse part of a NAVU tree.void
printChain
(NavuNode node) traverse()
Start the traversal process.
-
Method Details
-
traverse
Start the traversal process.For each NavuNode encountered by the process, all added filters will be invoked.
- Returns:
- Set of all visited paths
- Throws:
NavuException