|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.TreeWalker
This class does a pre-order walk of the DOM tree, calling a ContentHandler interface as it goes.
Field Summary | |
protected DOMHelper |
m_dh
DomHelper for this TreeWalker |
Constructor Summary | |
TreeWalker(org.xml.sax.ContentHandler contentHandler)
Constructor. |
|
TreeWalker(org.xml.sax.ContentHandler contentHandler,
DOMHelper dh)
Constructor. |
Method Summary | |
protected void |
endNode(org.w3c.dom.Node node)
End processing of given node |
org.xml.sax.ContentHandler |
getcontentHandler()
Get the ContentHandler used for the tree walk. |
protected void |
startNode(org.w3c.dom.Node node)
Start processing given node |
void |
traverse(org.w3c.dom.Node pos)
Perform a pre-order traversal non-recursive style. |
void |
traverse(org.w3c.dom.Node pos,
org.w3c.dom.Node top)
Perform a pre-order traversal non-recursive style. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected DOMHelper m_dh
Constructor Detail |
public TreeWalker(org.xml.sax.ContentHandler contentHandler, DOMHelper dh)
contentHandler
- The implemention of the
contentHandler operation (toXMLString, digest, ...)public TreeWalker(org.xml.sax.ContentHandler contentHandler)
contentHandler
- The implemention of the
contentHandler operation (toXMLString, digest, ...)Method Detail |
public org.xml.sax.ContentHandler getcontentHandler()
public void traverse(org.w3c.dom.Node pos) throws org.xml.sax.SAXException
pos
- Node in the tree where to start traversalpublic void traverse(org.w3c.dom.Node pos, org.w3c.dom.Node top) throws org.xml.sax.SAXException
pos
- Node in the tree where to start traversaltop
- Node in the tree where to end traversalprotected void startNode(org.w3c.dom.Node node) throws org.xml.sax.SAXException
node
- Node to processprotected void endNode(org.w3c.dom.Node node) throws org.xml.sax.SAXException
node
- Node we just finished processing
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |