Class DTMNodeIterator
java.lang.Object
org.loboevolution.apache.xml.dtm.ref.DTMNodeIterator
- All Implemented Interfaces:
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:
- If there are several Text nodes in logical succession (ie, across CDATASection and EntityReference boundaries), we will return only the first; the caller is responsible for stepping through them. (%REVIEW% Provide a convenience routine here to assist, pending proposed DOM Level 3 getAdjacentText() operation?)
- Since the whole XPath/XSLT architecture assumes that the source document is not altered while we're working with it, we do not promise to implement the DOM NodeIterator's "maintain current position" response to document mutation.
- Since our design for XPath NodeIterators builds a stateful filter directly into the traversal object, getNodeFilter() is not supported.
State: In progress!!
-
Constructor Summary
ConstructorDescriptionDTMNodeIterator
(DTMIterator dtmIterator) Public constructor: Wrap a DTMNodeIterator around an existing and preconfigured DTMIterator -
Method Summary
-
Constructor Details
-
DTMNodeIterator
Public constructor: Wrap a DTMNodeIterator around an existing and preconfigured DTMIterator- Parameters:
dtmIterator
- the iterator to be cloned
-
-
Method Details
-
detach
public void detach()detach.
- Specified by:
detach
in interfaceNodeIterator
-
getFilter
getFilter.
- Specified by:
getFilter
in interfaceNodeIterator
- Returns:
- a
NodeFilter
object.
-
getRoot
getRoot.
- Specified by:
getRoot
in interfaceNodeIterator
- Returns:
- a
Node
object.
-
getWhatToShow
public int getWhatToShow()getWhatToShow.
- Specified by:
getWhatToShow
in interfaceNodeIterator
- Returns:
- a
Integer
object.
-
nextNode
nextNode.
- Specified by:
nextNode
in interfaceNodeIterator
- Returns:
- a
Node
object. - Throws:
DOMException
-
previousNode
previousNode.
- Specified by:
previousNode
in interfaceNodeIterator
- Returns:
- a
Node
object.
-