public class DTMNodeIterator
extends java.lang.Object
implements org.w3c.dom.traversal.NodeIterator
DTMNodeIterator gives us an implementation of the
DTMNodeIterator which returns DOM nodes.
Please note that this is not necessarily equivlaent to a DOM
NodeIterator operating over the same document. In particular:
State: In progress!!
| Constructor and Description |
|---|
DTMNodeIterator(DTMIterator dtmIterator)
Public constructor: Wrap a DTMNodeIterator around an existing
and preconfigured DTMIterator
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
Detaches the NodeIterator from the set which it iterated over,
releasing any computational resources and placing the iterator in
the INVALID state.
|
DTMIterator |
getDTMIterator()
Access the wrapped DTMIterator.
|
boolean |
getExpandEntityReferences()
The value of this flag determines whether the children
of entity reference nodes are visible to the iterator.
|
org.w3c.dom.traversal.NodeFilter |
getFilter()
Return a handle to the filter used to screen nodes.
|
org.w3c.dom.Node |
getRoot() |
int |
getWhatToShow()
Return a mask describing which node types are presented via the
iterator.
|
org.w3c.dom.Node |
nextNode() |
org.w3c.dom.Node |
previousNode() |
public DTMNodeIterator(DTMIterator dtmIterator)
public DTMIterator getDTMIterator()
public void detach()
detach in interface org.w3c.dom.traversal.NodeIteratorpublic boolean getExpandEntityReferences()
getExpandEntityReferences in interface org.w3c.dom.traversal.NodeIteratorpublic org.w3c.dom.traversal.NodeFilter getFilter()
getFilter in interface org.w3c.dom.traversal.NodeIteratororg.w3c.dom.DOMException - -- NOT_SUPPORTED_ERROR because I can't think
of anything more useful to do in this casepublic org.w3c.dom.Node getRoot()
getRoot in interface org.w3c.dom.traversal.NodeIteratorpublic int getWhatToShow()
getWhatToShow in interface org.w3c.dom.traversal.NodeIteratorpublic org.w3c.dom.Node nextNode()
throws org.w3c.dom.DOMException
nextNode in interface org.w3c.dom.traversal.NodeIteratororg.w3c.dom.DOMException - - INVALID_STATE_ERR Raised if this method is
called after the detach method was invoked.public org.w3c.dom.Node previousNode()
previousNode in interface org.w3c.dom.traversal.NodeIteratororg.w3c.dom.DOMException - - INVALID_STATE_ERR Raised if this method is
called after the detach method was invoked.Copyright © 2023 Apache XML Project. All Rights Reserved.