com.xml_project.morganaxdm
Class XdmItemIterator

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

public class XdmItemIterator
extends java.lang.Object
implements java.util.Iterator<XdmItem>

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


Constructor Summary
protected XdmItemIterator()
           
  XdmItemIterator(com.xml_project.morganaxdm.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.morganaxdm.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 java.util.Iterator<XdmItem>

next

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

remove

public void remove()
Not implemented for this Iterator.

Specified by:
remove in interface java.util.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.