|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.apache.xml.dtm.ref.DTMNodeIterator
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 Summary | |
|---|---|
DTMNodeIterator(DTMIterator dtmIterator)
Public constructor: Wrap a DTMNodeIterator around an existing and preconfigured DTMIterator |
|
| Method Summary | |
|---|---|
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. |
NodeFilter |
getFilter()
Return a handle to the filter used to screen nodes. |
Node |
getRoot()
The root node of the NodeIterator, as specified when it
was created. |
int |
getWhatToShow()
Return a mask describing which node types are presented via the iterator. |
Node |
nextNode()
Returns the next node in the set and advances the position of the NodeIterator in the set. |
Node |
previousNode()
Returns the previous node in the set and moves the position of the NodeIterator backwards in the set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DTMNodeIterator(DTMIterator dtmIterator)
| Method Detail |
public DTMIterator getDTMIterator()
public void detach()
detach in interface NodeIteratorpublic boolean getExpandEntityReferences()
getExpandEntityReferences in interface NodeIteratorpublic NodeFilter getFilter()
getFilter in interface NodeIteratorDOMException - -- NOT_SUPPORTED_ERROR because I can't think
of anything more useful to do in this casepublic Node getRoot()
NodeIteratorNodeIterator, as specified when it
was created.
getRoot in interface NodeIteratorpublic int getWhatToShow()
getWhatToShow in interface NodeIterator
public Node nextNode()
throws DOMException
NodeIteratorNodeIterator in the set. After a
NodeIterator is created, the first call to
nextNode() returns the first node in the set.
nextNode in interface NodeIteratorDOMException - - INVALID_STATE_ERR Raised if this method is
called after the detach method was invoked.public Node previousNode()
NodeIteratorNodeIterator backwards in the set.
previousNode in interface NodeIteratorDOMException - - INVALID_STATE_ERR Raised if this method is
called after the detach method was invoked.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||