Class BeanAttributeIterator
- java.lang.Object
-
- org.apache.commons.jxpath.ri.model.beans.PropertyIterator
-
- org.apache.commons.jxpath.ri.model.beans.BeanAttributeIterator
-
- All Implemented Interfaces:
NodeIterator
- Direct Known Subclasses:
DynamicAttributeIterator
public class BeanAttributeIterator extends PropertyIterator
An iterator of attributes of a JavaBean. Returns bean properties as well as the "xml:lang" attribute.- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
includeXmlLang
private NodePointer
parent
private int
position
-
Constructor Summary
Constructors Constructor Description BeanAttributeIterator(PropertyOwnerPointer parent, QName name)
Create a new BeanAttributeIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodePointer
getNodePointer()
Get the NodePointer at the current position.int
getPosition()
Get the current iterator position.boolean
setPosition(int position)
Set the new current position.-
Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyIterator
getPropertyPointer, prepareForIndividualProperty, reset
-
-
-
-
Field Detail
-
parent
private NodePointer parent
-
position
private int position
-
includeXmlLang
private boolean includeXmlLang
-
-
Constructor Detail
-
BeanAttributeIterator
public BeanAttributeIterator(PropertyOwnerPointer parent, QName name)
Create a new BeanAttributeIterator.- Parameters:
parent
- parent pointername
- name of this bean
-
-
Method Detail
-
getNodePointer
public NodePointer getNodePointer()
Description copied from interface:NodeIterator
Get the NodePointer at the current position.- Specified by:
getNodePointer
in interfaceNodeIterator
- Overrides:
getNodePointer
in classPropertyIterator
- Returns:
- NodePointer
-
getPosition
public int getPosition()
Description copied from interface:NodeIterator
Get the current iterator position.- Specified by:
getPosition
in interfaceNodeIterator
- Overrides:
getPosition
in classPropertyIterator
- Returns:
- int position
-
setPosition
public boolean setPosition(int position)
Description copied from interface:NodeIterator
Set the new current position.- Specified by:
setPosition
in interfaceNodeIterator
- Overrides:
setPosition
in classPropertyIterator
- Parameters:
position
- the position to set- Returns:
true
if there is a node atposition
.
-
-