|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.dom.SimpleDOMTraversal
Simple DOM traverser that calls a handler for every node in the DOM tree.
Inner Class Summary | |
static interface |
SimpleDOMTraversal.Handler
Interface for node callback object. |
Field Summary | |
protected SimpleDOMTraversal.Handler |
fHandler
Handler object for the traversal |
Constructor Summary | |
SimpleDOMTraversal(SimpleDOMTraversal.Handler handler)
Constructor. |
Method Summary | |
static SimpleDOMTraversal |
getTraverser(SimpleDOMTraversal.Handler handler,
Node node)
Factory method to create a traverser based on the type of a document. |
protected void |
processAttributes(Node node)
Process the attributes of an element. |
protected void |
processChildren(Node node)
Process the children of a node. |
void |
processDocumentType(Document document)
Process a DocumentType attribute of a Document node, if it exists. |
protected void |
processDocumentTypeContents(DocumentType documentType)
Process the contents of a DocumentType node, |
protected void |
processNode(Node node)
Processing based on node type. |
void |
traverse(Node root)
Traverse a DOM tree or subtree. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected SimpleDOMTraversal.Handler fHandler
Constructor Detail |
public SimpleDOMTraversal(SimpleDOMTraversal.Handler handler)
handler
- The object that will be called to handle each
node.Method Detail |
public void traverse(Node root)
root
- The root of the DOM tree or subtree that is to
be traversed.protected void processChildren(Node node)
protected void processAttributes(Node node)
public void processDocumentType(Document document)
protected void processDocumentTypeContents(DocumentType documentType)
protected void processNode(Node node)
public static SimpleDOMTraversal getTraverser(SimpleDOMTraversal.Handler handler, Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |