|
||||||||||
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.
Field Summary | |
---|---|
private boolean |
empty
|
private boolean |
includeStart
|
private java.lang.String |
name
|
private int |
position
|
private PropertyPointer |
propertyNodePointer
|
private boolean |
reverse
|
private int |
startIndex
|
private int |
startPropertyIndex
|
private boolean |
targetReady
|
Constructor Summary | |
---|---|
PropertyIterator(PropertyOwnerPointer pointer,
java.lang.String name,
boolean reverse,
NodePointer startWith)
Create a new PropertyIterator. |
Method Summary | |
---|---|
private int |
getLength()
Computes length for the current pointer - ignores any exceptions. |
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. |
private boolean |
setPositionAllProperties(int position)
Set position for all properties |
private boolean |
setPositionIndividualProperty(int position)
Set position for an individual property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean empty
private boolean reverse
private java.lang.String name
private int startIndex
private boolean targetReady
private int position
private PropertyPointer propertyNodePointer
private int startPropertyIndex
private boolean includeStart
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
.private boolean setPositionIndividualProperty(int position)
position
- int position
private boolean setPositionAllProperties(int position)
position
- int position
protected void prepareForIndividualProperty(java.lang.String name)
name
- property nameprivate int getLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |