org.apache.axiom.om.impl.traverse
Class OMAbstractIterator
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OMAbstractIterator
public OMAbstractIterator(OMNode firstNode)
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-2013 The Apache Software Foundation. All Rights Reserved.