|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.utils.TreeWalker
This class does a pre-order walk of the DOM tree, calling a ContentHandler interface as it goes.
Constructor Summary | |
TreeWalker(ContentHandler contentHandler)
Constructor. |
|
TreeWalker(ContentHandler contentHandler,
DOMHelper dh)
Constructor. |
|
TreeWalker(ContentHandler contentHandler,
DOMHelper dh,
java.lang.String systemId)
Constructor. |
Method Summary | |
ContentHandler |
getContentHandler()
Get the ContentHandler used for the tree walk. |
void |
setContentHandler(ContentHandler ch)
Get the ContentHandler used for the tree walk. |
void |
traverse(Node pos)
Perform a pre-order traversal non-recursive style. |
void |
traverse(Node pos,
Node top)
Perform a pre-order traversal non-recursive style. |
void |
traverseFragment(Node pos)
Perform a pre-order traversal non-recursive style. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TreeWalker(ContentHandler contentHandler, DOMHelper dh, java.lang.String systemId)
contentHandler
- The implemention of thesystemId
- System identifier for the document.
contentHandler operation (toXMLString, digest, ...)public TreeWalker(ContentHandler contentHandler, DOMHelper dh)
contentHandler
- The implemention of the
contentHandler operation (toXMLString, digest, ...)public TreeWalker(ContentHandler contentHandler)
contentHandler
- The implemention of the
contentHandler operation (toXMLString, digest, ...)Method Detail |
public ContentHandler getContentHandler()
public void setContentHandler(ContentHandler ch)
public void traverse(Node pos) throws SAXException
pos
- Node in the tree where to start traversalpublic void traverseFragment(Node pos) throws SAXException
pos
- Node in the tree where to start traversalpublic void traverse(Node pos, Node top) throws SAXException
pos
- Node in the tree where to start traversaltop
- Node in the tree where to end traversal
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |