de.dante.extex.typesetter.type
Class NodeIterator

java.lang.Object
  extended byde.dante.extex.typesetter.type.NodeIterator

public class NodeIterator
extends java.lang.Object

Type-safe Iterator for a NodeList.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer, Michael Niedermair

Constructor Summary
NodeIterator(java.util.List list)
          Creates a new object.
 
Method Summary
 boolean hasNext()
          Check, if the iterator have a next element.
 Node next()
          Return the next element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeIterator

public NodeIterator(java.util.List list)
Creates a new object.

Parameters:
list - the list to iterate through
Method Detail

hasNext

public boolean hasNext()
Check, if the iterator have a next element.

Returns:
true, if there are more elements, otherwise false

next

public Node next()
Return the next element.

Returns:
the next element