org.sourcejammer.project
Class NodeListIterator

java.lang.Object
  |
  +--org.sourcejammer.project.NodeListIterator
All Implemented Interfaces:
NodeIterator

public class NodeListIterator
extends java.lang.Object
implements NodeIterator

Implementation of NodeIterator, specifically for iterating through the contents of a NodeList.


Field Summary
private  int miIndex
           
private  java.util.Vector mvecNodes
           
 
Constructor Summary
NodeListIterator(java.util.Vector vecNodes)
           
 
Method Summary
 Node getNextNode()
          returns the next Node in the iterator.
 boolean hasMoreNodes()
          Returns true if the iterator has more Nodes.
 void resetIndex()
          Reset index to point to BOF.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mvecNodes

private java.util.Vector mvecNodes

miIndex

private int miIndex
Constructor Detail

NodeListIterator

public NodeListIterator(java.util.Vector vecNodes)
Method Detail

hasMoreNodes

public boolean hasMoreNodes()
Returns true if the iterator has more Nodes.

Specified by:
hasMoreNodes in interface NodeIterator

getNextNode

public Node getNextNode()
returns the next Node in the iterator.

Specified by:
getNextNode in interface NodeIterator

resetIndex

public void resetIndex()
Reset index to point to BOF.



Copyright © 2003 Soucejammer project.