org.jaxup.xupdate
Class NormalizedTextNodeIterator

java.lang.Object
  extended by org.jaxup.xupdate.NormalizedTextNodeIterator
All Implemented Interfaces:
java.util.Iterator

public class NormalizedTextNodeIterator
extends java.lang.Object
implements java.util.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.

Author:
Erwin Bolwidt

Constructor Summary
NormalizedTextNodeIterator(Updater updater, java.util.Iterator nodeIterator)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.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(Updater updater,
                                  java.util.Iterator nodeIterator)
Method Detail

hasNext

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

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator