QJCC homepage

biz.chitec.quarterback.util
Class DOMHelp.NodeListIterator

java.lang.Object
  extended bybiz.chitec.quarterback.util.DOMHelp.NodeListIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
DOMHelp

private static final class DOMHelp.NodeListIterator
extends java.lang.Object
implements java.util.Iterator

Internal helper class for accessing node lists through an Iterator.


Field Summary
private  org.w3c.dom.NodeList nl
           
private  int pos
           
 
Constructor Summary
DOMHelp.NodeListIterator(org.w3c.dom.NodeList nl)
          Init the Iterator with a node list.
 
Method Summary
 boolean hasNext()
          Returns true if there is another node in the list.
 java.lang.Object next()
          Returns the currently referenced node and increases the pointer in the list.
 void remove()
          Removing of elements is not supported and throws an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nl

private org.w3c.dom.NodeList nl

pos

private int pos
Constructor Detail

DOMHelp.NodeListIterator

public DOMHelp.NodeListIterator(org.w3c.dom.NodeList nl)
Init the Iterator with a node list.

Method Detail

remove

public void remove()
Removing of elements is not supported and throws an exception.

Specified by:
remove in interface java.util.Iterator

hasNext

public boolean hasNext()
Returns true if there is another node in the list.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Returns the currently referenced node and increases the pointer in the list.

Specified by:
next in interface java.util.Iterator

QJCC homepage