A helper to crawl a tree and quickly access important node-related information.
It's an Iterator
on the "current level" of the tree. This level starts at the root node (and therefore obviously contains only one element), and can then be changed to children of the current node using {@link #enterChildren()} or poppedback to the parent level using {@link #leave()}.
The {@link #next()} method will return the next node in the iteration,and set the current node used by many convenience methods giving information about that node.
This class was primarily written for page templates containing {@link Tree}s (see org/apache/cocoon/forms/generation/jx-macros.xml
) but can of course be used in other places as well.
@version $Id: TreeWalker.java 587759 2007-10-24 03:00:37Z vgritsenko $