|
||||||||||
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.PropertyIterator
public class PropertyIterator
Iterates property values of an object pointed at with a PropertyOwnerPointer
.
Examples of such objects are JavaBeans and objects with Dynamic Properties.
Constructor Summary | |
---|---|
PropertyIterator(PropertyOwnerPointer pointer,
java.lang.String name,
boolean reverse,
NodePointer startWith)
Create a new PropertyIterator. |
Method Summary | |
---|---|
NodePointer |
getNodePointer()
Get the NodePointer at the current position. |
int |
getPosition()
Get the current iterator position. |
protected NodePointer |
getPropertyPointer()
Get the property pointer. |
protected void |
prepareForIndividualProperty(java.lang.String name)
Prepare for an individual property. |
void |
reset()
Reset property iteration. |
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 |
---|
public PropertyIterator(PropertyOwnerPointer pointer, java.lang.String name, boolean reverse, NodePointer startWith)
pointer
- owning pointername
- property namereverse
- iteration orderstartWith
- beginning pointerMethod Detail |
---|
protected NodePointer getPropertyPointer()
public void reset()
public NodePointer getNodePointer()
NodeIterator
getNodePointer
in interface NodeIterator
public int getPosition()
NodeIterator
getPosition
in interface NodeIterator
public boolean setPosition(int position)
NodeIterator
setPosition
in interface NodeIterator
position
- the position to set
true
if there is a node at position
.protected void prepareForIndividualProperty(java.lang.String name)
name
- property name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |