public abstract class CollectionNodeIterator extends Object implements NodeIterator
Modifier | Constructor and Description |
---|---|
protected |
CollectionNodeIterator(CollectionPointer pointer,
boolean reverse,
NodePointer startWith)
Create a new CollectionNodeIterator.
|
Modifier and Type | Method and Description |
---|---|
protected abstract NodeIterator |
getElementNodeIterator(NodePointer elementPointer)
Implemented by subclasses to produce child/attribute node iterators.
|
NodePointer |
getNodePointer()
Get the NodePointer at the current position.
|
int |
getPosition()
Get the current iterator position.
|
boolean |
setPosition(int position)
Set the new current position.
|
protected CollectionNodeIterator(CollectionPointer pointer, boolean reverse, NodePointer startWith)
pointer
- collection pointerreverse
- iteration orderstartWith
- starting pointerprotected abstract NodeIterator getElementNodeIterator(NodePointer elementPointer)
elementPointer
- owning pointerpublic int getPosition()
NodeIterator
getPosition
in interface NodeIterator
public boolean setPosition(int position)
NodeIterator
setPosition
in interface NodeIterator
position
- the position to settrue
if there is a node at position
.public NodePointer getNodePointer()
NodeIterator
getNodePointer
in interface NodeIterator
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.