public abstract class OMAbstractIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Field and Description |
|---|---|
private OMSerializable |
currentNode |
private OMContainer |
currentParent
The parent of the current node.
|
private boolean |
nextCalled |
private OMSerializable |
nextNode |
private boolean |
noMoreNodes |
| Constructor and Description |
|---|
OMAbstractIterator(OMSerializable firstNode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OMSerializable |
getNextNode(OMSerializable currentNode)
Get the next node.
|
boolean |
hasNext() |
java.lang.Object |
next() |
void |
remove() |
private OMSerializable currentNode
private OMContainer currentParent
private OMSerializable nextNode
private boolean noMoreNodes
private boolean nextCalled
public OMAbstractIterator(OMSerializable firstNode)
protected abstract OMSerializable getNextNode(OMSerializable currentNode)
currentNode - the predecessor of the node to retrievepublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator