com.xml_project.morganaxproc.xdm
Class XdmItemIterator

java.lang.Object
  extended by com.xml_project.morganaxproc.xdm.XdmItemIterator
All Implemented Interfaces:
Iterator<XdmItem>

public class XdmItemIterator
extends Object
implements Iterator<XdmItem>

Instances of this class are used as iterator over items in an XdmSequence.


Constructor Summary
protected XdmItemIterator()
           
  XdmItemIterator(com.xml_project.morganaxproc.xdm.sequences.IndexableSequence s)
          Creates a new iterator over an IndexableSequence
 
Method Summary
 boolean hasNext()
           
 XdmItemIterator newIterator()
          Creates a new iterator (starting at the first item) over the same sequence.
 XdmItem next()
           
 void remove()
          Not implemented for this Iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XdmItemIterator

protected XdmItemIterator()

XdmItemIterator

public XdmItemIterator(com.xml_project.morganaxproc.xdm.sequences.IndexableSequence s)
Creates a new iterator over an IndexableSequence

Parameters:
s - the sequence.
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<XdmItem>

next

public XdmItem next()
Specified by:
next in interface Iterator<XdmItem>

remove

public void remove()
Not implemented for this Iterator.

Specified by:
remove in interface Iterator<XdmItem>

newIterator

public XdmItemIterator newIterator()
Creates a new iterator (starting at the first item) over the same sequence.

Returns:
a new iterator over this sequence.