|
||||||||||
| 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,
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(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,
String name,
boolean reverse,
NodePointer startWith)
pointer - owning pointername - property namereverse - iteration orderstartWith - beginning pointer| Method Detail |
|---|
protected NodePointer getPropertyPointer()
public void reset()
public NodePointer getNodePointer()
NodeIterator
getNodePointer in interface NodeIteratorpublic 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.protected void prepareForIndividualProperty(String name)
name - property name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||