com.xml_project.morganaxproc.xdm
Class AtomizingIterator

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

public class AtomizingIterator
extends Object
implements Iterable<XdmValue>, 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
 String getStringValue()
          Creates the string value of the items of this iterator.
 boolean hasNext()
           
 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 Iterator<XdmValue> iterator()
Specified by:
iterator in interface Iterable<XdmValue>

hasNext

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

next

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

remove

public void remove()
Not implemented for this Iterable

Specified by:
remove in interface 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 String getStringValue()
Creates the string value of the items of this iterator.

Returns:
the string value of the items.