org.apache.axiom.om.impl.traverse
Class OMAbstractIterator

java.lang.Object
  extended by org.apache.axiom.om.impl.traverse.OMAbstractIterator
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
OMChildrenIterator, OMDescendantsIterator

public abstract class OMAbstractIterator
extends Object
implements Iterator

Abstract base class for iterators over sets of OM nodes.


Constructor Summary
OMAbstractIterator(OMNode firstNode)
           
 
Method Summary
protected abstract  OMNode getNextNode(OMNode currentNode)
          Get the next node.
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OMAbstractIterator

public OMAbstractIterator(OMNode firstNode)
Method Detail

getNextNode

protected abstract OMNode getNextNode(OMNode currentNode)
Get the next node.

Parameters:
currentNode - the predecessor of the node to retrieve
Returns:
the next node

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.