|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dom.util.TreeTraversal
com.ibm.xml.parser.NonRecursivePreorderTreeTraversal
Inner Class Summary | |
static interface |
TreeTraversal.EndTraversalException
XML4J tree traversal exception which signals from a Visitor to the tree traversal algorithm that all further traversal should be ended because the visit on the document object hierarchy has been successfully completed. |
static interface |
TreeTraversal.ToNextSiblingTraversalException
XML4J tree traversal exception which signals from a Visitor to the tree traversal algorithm that further traversal of the current Node's children should be ended because the visit on this portion of thee document object hierarchy has been successfully completed. |
Constructor Summary | |
TreeTraversal(Visitor visitor)
|
Method Summary | |
void |
traverse(Node startNode)
Traverses the document object tree at the specified startNode. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TreeTraversal(Visitor visitor)
Method Detail |
public void traverse(Node startNode) throws java.lang.Exception
The numbered nodes in the trees below indicate the order of traversal given
the specified startNode
of "1".
1 x x / \ / \ / \ 2 6 1 x x x /|\ \ /|\ \ /|\ \ 3 4 5 7 2 3 4 x x 1 x x
startNode
- The starting point to begin traversing the document object tree.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |