|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jxpath.ri.model.beans.CollectionNodeIterator
public abstract class CollectionNodeIterator
Combines node iterators of all elements of a collection into one aggregate node iterator.
| Constructor Summary | |
|---|---|
protected |
CollectionNodeIterator(CollectionPointer pointer,
boolean reverse,
NodePointer startWith)
Create a new CollectionNodeIterator. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CollectionNodeIterator(CollectionPointer pointer,
boolean reverse,
NodePointer startWith)
pointer - collection pointerreverse - iteration orderstartWith - starting pointer| Method Detail |
|---|
protected abstract NodeIterator getElementNodeIterator(NodePointer elementPointer)
elementPointer - owning pointer
public int getPosition()
NodeIterator
getPosition in interface NodeIteratorpublic boolean setPosition(int position)
NodeIterator
setPosition in interface NodeIteratorposition - the position to set
true if there is a node at position.public NodePointer getNodePointer()
NodeIterator
getNodePointer in interface NodeIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||