Contents | Package | Class | Tree | Deprecated | Index | Help XML for Java 1.0.4
PREV | NEXT SHOW LISTS | HIDE LISTS

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

Constructor Summary
 TreeTraversal(Visitor visitor)
Constructor.
 

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
 

Constructor Detail

TreeTraversal

public TreeTraversal(Visitor visitor)
Constructor.
Parameters:
visitor - The implemention of the Visitor operation (toXMLString, digest, ...)
See Also:
Visitor
Method Detail

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

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS