|
XML for Java Compatibility API 2.0.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.xml.parser.TreeTraversal
|
+--com.ibm.xml.parser.util.RecursivePreorderTreeTraversal
RecursivePreorderTreeTraversal defines a specific document object tree traversal algorithm for use by the visitor design pattern. This algorithm visits the Parent before visiting its children.
TreeTraversal,
NonRecursivePreorderTreeTraversal| Constructor Summary | |
RecursivePreorderTreeTraversal(Visitor visitor)
Constructor. |
|
| Method Summary | |
void |
traverse(org.w3c.dom.Node node)
Traverses the document object tree at the specified node. |
| Methods inherited from class com.ibm.xml.parser.TreeTraversal |
getVisitor |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RecursivePreorderTreeTraversal(Visitor visitor)
visitor - The implemention of the Visitor operation (toXMLString, digest, ...)Visitor| Method Detail |
public void traverse(org.w3c.dom.Node node)
throws java.lang.Exception
The numbered nodes in the trees below indicate the order of traversal given
the specified node of "1".
1 x x
/ \ / \ / \
2 6 1 x x x
/|\ \ /|\ \ /|\ \
3 4 5 7 2 3 4 x x 1 x x
Once this method is invoked, the RecursivePreorderTreeTraversal instance is of no further use, and should NOT be reused.
node - The starting point to begin traversing the document object tree.
|
XML for Java Compatibility API 2.0.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||