org.oXML.xpath.iterator
Class NullNodeset
java.lang.Object
org.oXML.xpath.iterator.NullNodeset
- All Implemented Interfaces:
- NodeIterator, Nodeset
- public class NullNodeset
- extends java.lang.Object
- implements Nodeset, NodeIterator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NullNodeset
public NullNodeset()
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
hasNext
public boolean hasNext()
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.
getIterator
public NodeIterator getIterator()
- Specified by:
getIterator in interface Nodeset
size
public int size()
- Description copied from interface:
Nodeset
- get the cardinality of this nodeset
- Specified by:
size in interface Nodeset
getNode
public Node getNode(int index)
- Specified by:
getNode in interface Nodeset
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Nodeset
addNode
public void addNode(Node node)
- Specified by:
addNode in interface Nodeset
contains
public boolean contains(Node node)
indexOf
public int indexOf(Node node)
- Specified by:
indexOf in interface Nodeset
removeNode
public void removeNode(int pos)
- Specified by:
removeNode in interface Nodeset
insertNode
public void insertNode(int pos,
Node node)
- Specified by:
insertNode in interface Nodeset
toString
public java.lang.String toString()