|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.commons.jxpath.ri.model.NodePointer
|
+--org.apache.commons.jxpath.ri.model.beans.PropertyPointer
|
+--org.apache.commons.jxpath.ri.model.dynabeans.DynaBeanPropertyPointer
Pointer pointing to a property of a DynaBean.
| Fields inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyPointer |
bean, propertyIndex, UNSPECIFIED_PROPERTY |
| Fields inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION |
| Constructor Summary | |
DynaBeanPropertyPointer(NodePointer parent,
org.apache.commons.beanutils.DynaBean dynaBean)
|
|
| Method Summary | |
java.lang.Object |
getBaseValue()
Returns the value represented by the pointer before indexing. |
java.lang.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. |
int |
getPropertyCount()
Number of the DP object's properties. |
int |
getPropertyIndex()
Index of the currently selected property in the list of all properties sorted alphabetically. |
java.lang.String |
getPropertyName()
Returns the name of the currently selected property or "*" if none has been selected. |
java.lang.String[] |
getPropertyNames()
Names of all properties, sorted alphabetically |
protected boolean |
isActualProperty()
Returns true if the bean has the currently selected property |
boolean |
isContainer()
This type of node is auxiliary. |
protected boolean |
isIndexedProperty()
|
void |
remove()
Remove the node of the object graph this pointer points to. |
void |
setPropertyIndex(int index)
Index a property by its index in the list of all properties sorted alphabetically. |
void |
setPropertyName(java.lang.String propertyName)
Select a property by name. |
void |
setValue(java.lang.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. |
| Methods inherited from class org.apache.commons.jxpath.ri.model.beans.PropertyPointer |
compareChildNodePointers, createChild, createChild, createPath, createPath, equals, getBean, getImmediateValuePointer, getLength, getName, hashCode, isActual, isCollection, isLeaf |
| Methods inherited from class org.apache.commons.jxpath.ri.model.NodePointer |
asPath, attributeIterator, childIterator, clone, compareTo, createAttribute, getDefaultNamespaceURI, getExpandedName, getIndex, getLocale, getNamespaceURI, getNamespaceURI, getNode, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isAttribute, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setIndex, testNode, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DynaBeanPropertyPointer(NodePointer parent,
org.apache.commons.beanutils.DynaBean dynaBean)
| Method Detail |
public java.lang.Object getBaseValue()
NodePointergetBaseValue in class NodePointerpublic boolean isContainer()
isContainer in class NodePointerpublic int getPropertyCount()
getPropertyCount in class PropertyPointerpublic java.lang.String[] getPropertyNames()
getPropertyNames in class PropertyPointerpublic java.lang.String getPropertyName()
getPropertyName in class PropertyPointerpublic void setPropertyName(java.lang.String propertyName)
setPropertyName in class PropertyPointerpublic int getPropertyIndex()
getPropertyIndex in class PropertyPointerpublic void setPropertyIndex(int index)
setPropertyIndex in class PropertyPointerpublic java.lang.Object getImmediateNode()
getImmediateNode in class PropertyPointerprotected boolean isActualProperty()
isActualProperty in class PropertyPointerprotected boolean isIndexedProperty()
public void setValue(java.lang.Object value)
setValue in class NodePointerpublic void remove()
NodePointerremove in class NodePointer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||