Methods Summary |
---|
public void | detach()Detaches the NodeIterator from the set which it iterated over,
releasing any computational resources and placing the iterator in
the INVALID state.
// Theoretically, we could release dtm_iter at this point. But
// some of the operations may still want to consult it even though
// navigation is now invalid.
valid=false;
|
public com.sun.org.apache.xml.internal.dtm.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.
return dtm_iter;
|
public boolean | getExpandEntityReferences()The value of this flag determines whether the children
of entity reference nodes are visible to the iterator.
return false;
|
public org.w3c.dom.traversal.NodeFilter | getFilter()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.
throw new DTMDOMException(DOMException.NOT_SUPPORTED_ERR);
|
public org.w3c.dom.Node | getRoot()
int handle=dtm_iter.getRoot();
return dtm_iter.getDTM(handle).getNode(handle);
|
public int | getWhatToShow()Return a mask describing which node types are presented via the
iterator.
return dtm_iter.getWhatToShow();
|
public org.w3c.dom.Node | nextNode()
if(!valid)
throw new DTMDOMException(DOMException.INVALID_STATE_ERR);
int handle=dtm_iter.nextNode();
if (handle==DTM.NULL)
return null;
return dtm_iter.getDTM(handle).getNode(handle);
|
public org.w3c.dom.Node | previousNode()
if(!valid)
throw new DTMDOMException(DOMException.INVALID_STATE_ERR);
int handle=dtm_iter.previousNode();
if (handle==DTM.NULL)
return null;
return dtm_iter.getDTM(handle).getNode(handle);
|