|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.dom.SimpleDOMTraversal | +--org.enhydra.xml.lazydom.LazyDOMSimpleTraversal
Simple DOM traverser that calls a handler for every node in the DOM tree. Avoids expansion of LazyDOM tree.
Nested Class Summary |
Nested classes inherited from class org.enhydra.xml.dom.SimpleDOMTraversal |
SimpleDOMTraversal.Handler |
Field Summary |
Fields inherited from class org.enhydra.xml.dom.SimpleDOMTraversal |
fHandler |
Constructor Summary | |
LazyDOMSimpleTraversal(SimpleDOMTraversal.Handler handler)
Constructor. |
Method Summary | |
void |
processAttributes(Element element)
Process the attributes of an element. |
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. |
void |
processDocumentTypeContents(DocumentType documentType)
Process the contents of a DocumentType node, This overrides the SimpleDOMTraversal method and handles switching from instance to template nodes. |
protected void |
processNode(Node node)
Processing based on node type. |
void |
traverse(Node root)
Traverse a DOM tree or subtree. |
Methods inherited from class org.enhydra.xml.dom.SimpleDOMTraversal |
getTraverser, processAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LazyDOMSimpleTraversal(SimpleDOMTraversal.Handler handler)
handler
- The object that will be called to handle each
node.Method Detail |
public void traverse(Node root)
traverse
in class SimpleDOMTraversal
root
- The root of the DOM tree or subtree that is to
be traversed.public void processChildren(Node node)
processChildren
in class SimpleDOMTraversal
public void processAttributes(Element element)
public void processDocumentType(Document document)
processDocumentType
in class SimpleDOMTraversal
public void processDocumentTypeContents(DocumentType documentType)
processDocumentTypeContents
in class SimpleDOMTraversal
protected void processNode(Node node)
processNode
in class SimpleDOMTraversal
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |