public class TreeWalker extends Object
Modifier and Type | Field and Description |
---|---|
protected DOMHelper |
m_dh
DomHelper for this TreeWalker
|
Constructor and Description |
---|
TreeWalker(ContentHandler contentHandler)
Constructor.
|
TreeWalker(ContentHandler contentHandler,
DOMHelper dh)
Constructor.
|
TreeWalker(ContentHandler contentHandler,
DOMHelper dh,
String systemId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
endNode(Node node)
End processing of given node
|
ContentHandler |
getContentHandler()
Get the ContentHandler used for the tree walk.
|
void |
setContentHandler(ContentHandler ch)
Get the ContentHandler used for the tree walk.
|
protected void |
startNode(Node node)
Start processing given node
|
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.
|
protected DOMHelper m_dh
public TreeWalker(ContentHandler contentHandler, DOMHelper dh, 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, ...)public ContentHandler getContentHandler()
public void setContentHandler(ContentHandler ch)
public void traverse(Node pos) throws SAXException
pos
- Node in the tree where to start traversalTransformerException
SAXException
public void traverseFragment(Node pos) throws SAXException
pos
- Node in the tree where to start traversalTransformerException
SAXException
public void traverse(Node pos, Node top) throws SAXException
pos
- Node in the tree where to start traversaltop
- Node in the tree where to end traversalTransformerException
SAXException
protected void startNode(Node node) throws SAXException
node
- Node to processSAXException
protected void endNode(Node node) throws SAXException
node
- Node we just finished processingSAXException
Copyright © 2016 JBoss by Red Hat. All rights reserved.