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.
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
-
Constructor Summary
ConstructorsConstructorDescriptionBeanAttributeIterator(PropertyOwnerPointer parent, QName name) Create a new BeanAttributeIterator. -
Method Summary
Modifier and TypeMethodDescriptionGet the NodePointer at the current position.intGet the current iterator position.booleansetPosition(int position) Set the new current position.Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyIterator
getPropertyPointer, prepareForIndividualProperty, reset
-
Constructor Details
-
BeanAttributeIterator
Create a new BeanAttributeIterator.- Parameters:
parent- parent pointername- name of this bean
-
-
Method Details
-
getNodePointer
Description copied from interface:NodeIteratorGet the NodePointer at the current position.- Specified by:
getNodePointerin interfaceNodeIterator- Overrides:
getNodePointerin classPropertyIterator- Returns:
- NodePointer
-
getPosition
Description copied from interface:NodeIteratorGet the current iterator position.- Specified by:
getPositionin interfaceNodeIterator- Overrides:
getPositionin classPropertyIterator- Returns:
- int position
-
setPosition
Description copied from interface:NodeIteratorSet the new current position.- Specified by:
setPositionin interfaceNodeIterator- Overrides:
setPositionin classPropertyIterator- Parameters:
position- the position to set- Returns:
trueif there is a node atposition.
-