org.apache.commons.jxpath.ri.model.beans
Class BeanPropertyPointer
- Cloneable, Comparable, Pointer, Serializable
public class BeanPropertyPointer
Pointer pointing to a property of a JavaBean.
$Revision: 1.17 $ $Date: 2004/04/04 22:06:36 $
compareChildNodePointers, createChild, createChild, createPath, createPath, equals, getBean, getImmediateNode, getImmediateValuePointer, getLength, getName, getPropertyCount, getPropertyIndex, getPropertyName, getPropertyNames, hashCode, isActual, isActualProperty, isCollection, isLeaf, setPropertyIndex, setPropertyName |
asPath, attributeIterator, childIterator, clone, compareChildNodePointers, compareTo, createAttribute, createChild, createChild, createPath, createPath, getBaseValue, getDefaultNamespaceURI, getImmediateNode, getImmediateParentPointer, getImmediateValuePointer, getIndex, getLength, getLocale, getName, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isActual, isAttribute, isCollection, isContainer, isDefaultNamespace, isLanguage, isLeaf, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, remove, setAttribute, setIndex, setNamespaceResolver, setValue, testNode, toString |
getBaseValue
public Object getBaseValue()
The value of the currently selected property.
- getBaseValue in interface NodePointer
getImmediateNode
public Object getImmediateNode()
If index == WHOLE_COLLECTION, the value of the property, otherwise
the value of the index'th element of the collection represented by the
property. If the property is not a collection, index should be zero
and the value will be the property itself.
- getImmediateNode in interface PropertyPointer
getLength
public int getLength()
If the property contains a collection, then the length of that
collection, otherwise - 1.
- getLength in interface PropertyPointer
getPropertyDescriptors
protected PropertyDescriptor[] getPropertyDescriptors()
setPropertyIndex
public void setPropertyIndex(int index)
Selects a property by its offset in the alphabetically sorted list.
- setPropertyIndex in interface PropertyPointer
setValue
public void setValue(Object value)
If index == WHOLE_COLLECTION, change the value of the property, otherwise
change the value of the index'th element of the collection
represented by the property.
- setValue in interface Pointer
- setValue in interface NodePointer