simkin
Class TreeNodeObjectEnumerator

java.lang.Object
  |
  +--simkin.TreeNodeObjectEnumerator
All Implemented Interfaces:
ExecutableIterator

public class TreeNodeObjectEnumerator
extends java.lang.Object
implements ExecutableIterator

This class enumerates the elements in an TreeNodeObject


Constructor Summary
TreeNodeObjectEnumerator(TreeNodeObject treeNodeObject)
          Constructor - enumerates over every child node of this object
TreeNodeObjectEnumerator(TreeNodeObject treeNodeObject, java.lang.String tagName)
          Constructor - enumerates over children of this object with the matching tag
 
Method Summary
 java.lang.Object next()
          returns the next object in the enumeration - or null if there are no more
 void reset()
          This method resets the enumeration to the beginning - you can now iterate over the list again
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNodeObjectEnumerator

public TreeNodeObjectEnumerator(TreeNodeObject treeNodeObject)
Constructor - enumerates over every child node of this object


TreeNodeObjectEnumerator

public TreeNodeObjectEnumerator(TreeNodeObject treeNodeObject,
                                java.lang.String tagName)
Constructor - enumerates over children of this object with the matching tag

Method Detail

next

public java.lang.Object next()
returns the next object in the enumeration - or null if there are no more

Specified by:
next in interface ExecutableIterator

reset

public void reset()
This method resets the enumeration to the beginning - you can now iterate over the list again