org.jaxup.xupdate
Class NormalizedTextNodeIterator

java.lang.Object
  |
  +--org.jaxup.xupdate.NormalizedTextNodeIterator
All Implemented Interfaces:
Iterator

public class NormalizedTextNodeIterator
extends Object
implements Iterator

Node iterator that concatenates adjacent text nodes and normalizes the resulting text before returning it as a new text node. The new text node is not inserted in the document, so this should be taken into account when using this iterator.


Constructor Summary
NormalizedTextNodeIterator(org.jaxup.Updater updater, Iterator nodeIterator)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalizedTextNodeIterator

public NormalizedTextNodeIterator(org.jaxup.Updater updater,
                                  Iterator nodeIterator)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator