org.oXML.xpath.iterator
Class FilteringIterator

java.lang.Object
  extended byorg.oXML.xpath.iterator.FilteringIterator
All Implemented Interfaces:
NodeIterator

public class FilteringIterator
extends java.lang.Object
implements NodeIterator


Constructor Summary
FilteringIterator(NodeIterator parent, NodeFilter filter)
           
 
Method Summary
 NodeFilter getFilter()
           
 int getWhatToShow()
           
 Node nextNode()
          advance the current node in this nodeset.
 int position()
          get the position of the current node within this nodeset
 void setFilter(NodeFilter filter)
           
 void setWhatToShow(int nodetype)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteringIterator

public FilteringIterator(NodeIterator parent,
                         NodeFilter filter)
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

setWhatToShow

public void setWhatToShow(int nodetype)

getWhatToShow

public int getWhatToShow()

getFilter

public NodeFilter getFilter()

setFilter

public void setFilter(NodeFilter filter)

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.