Open SiteSearch 4.1.1
Final

ORG.oclc.xml.om
Class SiblingEnumeration

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

public class SiblingEnumeration
extends Object
implements Enumeration

An Enumeration for iterating over the siblings of a given node in the XML tree

See Also:
Element, Name

Constructor Summary
SiblingEnumeration(Element node)
          Creates new iterator for iterating over all of the children of the given root node.
SiblingEnumeration(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

SiblingEnumeration

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

SiblingEnumeration

public SiblingEnumeration(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