|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.dom.DOMTraversal | +--org.enhydra.xml.lazydom.LazyDOMTraversal
Lazy DOM traversal class, calling handler methods for each node based on if they are expanded or template nodes. This only works if the traversal starts with a node of the instance LazyDocument. Template LazyDocuments will not work with this class and should be traversed normally.
Nested Class Summary |
Nested classes inherited from class org.enhydra.xml.dom.DOMTraversal |
DOMTraversal.Handler, DOMTraversal.NodeHandler |
Field Summary |
Fields inherited from class org.enhydra.xml.dom.DOMTraversal |
ALL_ATTRIBUTES, fDepth, fHandler, fOptions, fProcessingAttribute, SORT_ATTRIBUTES |
Constructor Summary | |
LazyDOMTraversal(DOMTraversal.Handler handler,
int options)
Constructor. |
|
LazyDOMTraversal(int options)
Default constructor, set handler later. |
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. |
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.DOMTraversal |
getDepth, getTraverser, processingAttribute, setHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LazyDOMTraversal(DOMTraversal.Handler handler, int options)
handler
- The object that will be called to handle each
node.options
- Bit set of the option flags.public LazyDOMTraversal(int options)
Method Detail |
public void traverse(Node root)
traverse
in class DOMTraversal
root
- The root of the DOM tree or subtree that is to
be traversed.public void processChildren(Node node)
processChildren
in class DOMTraversal
public void processAttributes(Element element)
processAttributes
in class DOMTraversal
public void processDocumentType(Document document)
processDocumentType
in class DOMTraversal
public void processDocumentTypeContents(DocumentType documentType)
processDocumentTypeContents
in class DOMTraversal
protected void processNode(Node node)
processNode
in class DOMTraversal
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |