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
An iterator of attributes of a JavaBean. Returns bean properties as well as the "xml:lang" attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionBeanAttributeIterator
(PropertyOwnerPointer parent, QName qName) Constructs a new BeanAttributeIterator. -
Method Summary
Modifier and TypeMethodDescriptionGets the NodePointer at the current position.int
Gets the current iterator position.boolean
setPosition
(int position) Sets the new current position.Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyIterator
getPropertyPointer, prepareForIndividualProperty, reset
-
Constructor Details
-
BeanAttributeIterator
Constructs a new BeanAttributeIterator.- Parameters:
parent
- parent pointerqName
- name of this bean
-
-
Method Details
-
getNodePointer
Description copied from interface:NodeIterator
Gets the NodePointer at the current position.- Specified by:
getNodePointer
in interfaceNodeIterator
- Overrides:
getNodePointer
in classPropertyIterator
- Returns:
- NodePointer
-
getPosition
Description copied from interface:NodeIterator
Gets the current iterator position.- Specified by:
getPosition
in interfaceNodeIterator
- Overrides:
getPosition
in classPropertyIterator
- Returns:
- int position
-
setPosition
Description copied from interface:NodeIterator
Sets 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
.
-