org.oXML.xpath.iterator
Class SingleNodeIterator
java.lang.Object
org.oXML.xpath.iterator.SingleNodeIterator
- All Implemented Interfaces:
- NodeIterator
- public class SingleNodeIterator
- extends java.lang.Object
- implements NodeIterator
wraps a Node in a NodeIterator.
can be extended by simply overloading getNode().
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingleNodeIterator
public SingleNodeIterator(Node root)
nextNode
public Node nextNode()
- Description copied from interface:
NodeIterator
- advance the current node in this nodeset.
- Specified by:
nextNode in interface NodeIterator
- Returns:
- the new current node or null.
setWhatToShow
public void setWhatToShow(int nodetype)
getWhatToShow
public int getWhatToShow()
setFilter
public void setFilter(NodeFilter filter)
getFilter
public NodeFilter getFilter()
position
public int position()
- Description copied from interface:
NodeIterator
- get the position of the current node within this nodeset
- Specified by:
position in interface NodeIterator
toString
public java.lang.String toString()