public class PropertyIterator extends java.lang.Object implements NodeIterator
PropertyOwnerPointer
.
Examples of such objects are JavaBeans and objects with Dynamic Properties.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PropertyIterator(PropertyOwnerPointer pointer,
java.lang.String name,
boolean reverse,
NodePointer startWith)
Create a new PropertyIterator.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public PropertyIterator(PropertyOwnerPointer pointer, java.lang.String name, boolean reverse, NodePointer startWith)
pointer
- owning pointername
- property namereverse
- iteration orderstartWith
- beginning pointerprotected 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 settrue
if there is a node at position
.private boolean setPositionIndividualProperty(int position)
position
- int positionprivate boolean setPositionAllProperties(int position)
position
- int positionprotected void prepareForIndividualProperty(java.lang.String name)
name
- property nameprivate int getLength()