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!!
Modifier and Type | Field and Description |
---|---|
private DTMIterator | |
private boolean |
Access | Constructor and Description |
---|---|
public | DTMNodeIterator(DTMIterator dtmIterator)
Public constructor: Wrap a DTMNodeIterator around an existing and preconfigured DTMIterator |
Modifier and Type | Method and Description |
---|---|
public void | detach()
Implements org. Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. |
public DTMIterator | |
public boolean | Returns: false, always (the DTM model flattens entity references)Implements org. The value of this flag determines whether the children of entity reference nodes are visible to the iterator. |
public NodeFilter | getFilter()
Implements org. Return a handle to the filter used to screen nodes. |
public Node | Returns: The root node of the NodeIterator, as specified when it was created.Implements org. The root node of the |
public int | getWhatToShow()
Implements org. Return a mask describing which node types are presented via the iterator. |
public Node | Returns: the next node in the set and advance the position of the iterator in the set.Implements org. Returns the next node in the set and advances the position of the
|
public Node | Returns: the next previous in the set and advance the position of the iterator in the set.Implements org. Returns the previous node in the set and moves the position of the
|
dtm_iter | back to summary |
---|---|
private DTMIterator dtm_iter |
valid | back to summary |
---|---|
private boolean valid |
DTMNodeIterator | back to summary |
---|---|
public DTMNodeIterator(DTMIterator dtmIterator) Public constructor: Wrap a DTMNodeIterator around an existing and preconfigured DTMIterator |
detach | back to summary |
---|---|
public void detach() Implements org. Detaches the NodeIterator from the set which it iterated over, releasing any computational resources and placing the iterator in the INVALID state. |
getDTMIterator | back to summary |
---|---|
public DTMIterator getDTMIterator() Access the wrapped DTMIterator. I'm not sure whether anyone will need this or not, but let's write it and think about it. |
getExpandEntityReferences | back to summary |
---|---|
public boolean getExpandEntityReferences() Implements org. The value of this flag determines whether the children of entity reference nodes are visible to the iterator.
|
getFilter | back to summary |
---|---|
public NodeFilter getFilter() Implements org. Return a handle to the filter used to screen nodes. This is ill-defined in Xalan's usage of Nodeiterator, where we have built stateful XPath-based filtering directly into the traversal object. We could return something which supports the NodeFilter interface and allows querying whether a given node would be permitted if it appeared as our next node, but in the current implementation that would be very complex -- and just isn't all that useful.
|
getRoot | back to summary |
---|---|
public Node getRoot() Implements org. Doc from org. The root node of the
|
getWhatToShow | back to summary |
---|---|
public int getWhatToShow() Implements org. Return a mask describing which node types are presented via the iterator. |
nextNode | back to summary |
---|---|
public Node nextNode() throws DOMException Implements org. Doc from org. Returns the next node in the set and advances the position of the
|
previousNode | back to summary |
---|---|
public Node previousNode() Implements org. Doc from org. Returns the previous node in the set and moves the position of the
|