public class PropertyIterator extends Object implements NodeIterator
PropertyOwnerPointer
.
Examples of such objects are JavaBeans and objects with Dynamic Properties.Constructor and Description |
---|
PropertyIterator(PropertyOwnerPointer pointer,
String name,
boolean reverse,
NodePointer startWith)
Create a new PropertyIterator.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PropertyIterator(PropertyOwnerPointer pointer, 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
.protected void prepareForIndividualProperty(String name)
name
- property nameCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.