com.xml_project.morganaxdm
Class AtomizingIterator

java.lang.Object
  extended by com.xml_project.morganaxdm.AtomizingIterator
All Implemented Interfaces:
java.lang.Iterable<XdmValue>, java.util.Iterator<XdmValue>

public class AtomizingIterator
extends java.lang.Object
implements java.lang.Iterable<XdmValue>, java.util.Iterator<XdmValue>

Instancing of this class represent the atomized values of the items in a sequence. Use XdmSequence.atomize() to get an iterator.


Constructor Summary
AtomizingIterator(XdmItemIterator iter)
          Creates a new iterator
 
Method Summary
 java.lang.String getStringValue()
          Creates the string value of the items of this iterator.
 boolean hasNext()
           
 java.util.Iterator<XdmValue> iterator()
           
 AtomizingIterator newIterator()
          Creates a new iterator (starting with the first item) of the same sequence.
 XdmValue next()
           
 void remove()
          Not implemented for this Iterable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomizingIterator

public AtomizingIterator(XdmItemIterator iter)
Creates a new iterator

Parameters:
iter - an iterator over a sequence of items
Method Detail

iterator

public java.util.Iterator<XdmValue> iterator()
Specified by:
iterator in interface java.lang.Iterable<XdmValue>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<XdmValue>

next

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

remove

public void remove()
Not implemented for this Iterable

Specified by:
remove in interface java.util.Iterator<XdmValue>

newIterator

public AtomizingIterator newIterator()
Creates a new iterator (starting with the first item) of the same sequence.

Returns:
a new iterator.

getStringValue

public java.lang.String getStringValue()
Creates the string value of the items of this iterator.

Returns:
the string value of the items.