Class com.ibm.xml.parser.TreeTraversal
java.lang.Object
|
+----com.ibm.xml.parser.TreeTraversal
- Subclasses:
- NonRecursivePreorderTreeTraversal, RecursivePreorderTreeTraversal
- public abstract class TreeTraversal
- extends java.lang.Object
TreeTraversal defines the document object tree traversal mechanisms for used by the
visitor design pattern.
- Version:
- Revision: %M% %I% %W% %Q%
- See Also:
- NonRecursivePreorderTreeTraversal
Method Summary
|
Visitor
|
getVisitor()
Returns the Visitor operation currently active in this tree traversal.
|
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 |
TreeTraversal
public TreeTraversal(Visitor visitor)
- Constructor.
- Parameters:
visitor
- The implemention of the Visitor operation (toXMLString, digest, ...)
- See Also:
- Visitor
getVisitor
public Visitor getVisitor()
- Returns the Visitor operation currently active in this tree traversal.
- Returns:
- visitor The implemention of the Visitor operation (toXMLString, digest, ...)
- See Also:
- Visitor
traverse
public abstract void traverse(Node startNode) throws java.lang.Exception
- Traverses the document object tree at the specified startNode.
- Parameters:
startNode
- The starting point to begin traversing the document object tree.
- Throws:
- java.lang.Exception - Thrown if the tree could not be traversed.
- See Also:
- traverse