Open SiteSearch 4.1.1
Final

ORG.oclc.xml.om
Class TreeEnumeration

java.lang.Object
  |
  +--ORG.oclc.xml.om.TreeEnumeration

public class TreeEnumeration
extends Object
implements Enumeration

An Enumeration for iterating over the entire subtree of a given node in the XML tree, DFS or BFS

See Also:
Element, Name

Constructor Summary
TreeEnumeration(Element node)
          Creates new iterator for iterating over all of the children of the given root node.
TreeEnumeration(Element node, boolean enumDir)
           
 
Method Summary
 boolean hasMoreElements()
          Return whether or not there are any more matching elements.
 Object nextElement()
          Return the next matching element.
 void reset()
          Reset the iterator so you can iterate through the elements again.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeEnumeration

public TreeEnumeration(Element node)
Creates new iterator for iterating over all of the children of the given root node.

TreeEnumeration

public TreeEnumeration(Element node,
                       boolean enumDir)
Method Detail

reset

public void reset()
Reset the iterator so you can iterate through the elements again.

hasMoreElements

public boolean hasMoreElements()
Return whether or not there are any more matching elements.
Specified by:
hasMoreElements in interface Enumeration
Returns:
true if the next call to nextElement will return non null result.

nextElement

public Object nextElement()
Return the next matching element.
Specified by:
nextElement in interface Enumeration
Returns:
Element or null of there are no more matching elements.

Open SiteSearch 4.1.1
Final