org.oXML.xpath.iterator
Class SingleNodeset
java.lang.Object
org.oXML.xpath.iterator.SingleNodeset
- All Implemented Interfaces:
- Nodeset
- public class SingleNodeset
- extends java.lang.Object
- implements Nodeset
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 |
SingleNodeset
public SingleNodeset(Node root)
getNode
public Node getNode(int index)
- Specified by:
getNode in interface Nodeset
addNode
public void addNode(Node node)
- Specified by:
addNode in interface Nodeset
size
public int size()
- Description copied from interface:
Nodeset
- get the cardinality of this nodeset
- Specified by:
size in interface Nodeset
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Nodeset
indexOf
public int indexOf(Node node)
- Specified by:
indexOf in interface Nodeset
getIterator
public NodeIterator getIterator()
- Specified by:
getIterator 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()