org.oXML.xpath.iterator
Class NullNodeset

java.lang.Object
  extended byorg.oXML.xpath.iterator.NullNodeset
All Implemented Interfaces:
NodeIterator, Nodeset

public class NullNodeset
extends java.lang.Object
implements Nodeset, NodeIterator


Field Summary
 
Fields inherited from interface org.oXML.type.Nodeset
EMPTY_SET
 
Constructor Summary
NullNodeset()
           
 
Method Summary
 void addNode(Node node)
           
 boolean contains(Node node)
           
 NodeIterator getIterator()
           
 Node getNode(int index)
           
 boolean hasNext()
           
 int indexOf(Node node)
           
 void insertNode(int pos, Node node)
           
 boolean isEmpty()
           
 Node nextNode()
          advance the current node in this nodeset.
 int position()
          get the position of the current node within this nodeset
 void removeNode(int pos)
           
 int size()
          get the cardinality of this nodeset
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullNodeset

public NullNodeset()
Method Detail

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()