public class DynaBeanPropertyPointer extends PropertyPointer
DynaBean. If the target DynaBean is
Serializable, so should this instance be.bean, propertyIndex, UNSPECIFIED_PROPERTYindex, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION| Constructor and Description |
|---|
DynaBeanPropertyPointer(NodePointer parent,
org.apache.commons.beanutils.DynaBean dynaBean)
Create a new DynaBeanPropertyPointer.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getBaseValue()
Returns the value represented by the pointer before indexing.
|
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()
Count the number of properties represented.
|
int |
getPropertyIndex()
Index of the currently selected property in the list of all
properties sorted alphabetically.
|
String |
getPropertyName()
Returns the name of the currently selected property or "*"
if none has been selected.
|
String[] |
getPropertyNames()
Get the names of the included properties.
|
protected boolean |
isActualProperty()
Returns true if the bean has the currently selected property.
|
boolean |
isContainer()
This type of node is auxiliary.
|
protected boolean |
isIndexedProperty()
Learn whether the property referenced is an indexed property.
|
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(String propertyName)
Select a property by name.
|
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.
|
compareChildNodePointers, createChild, createChild, createPath, createPath, equals, getBean, getImmediateValuePointer, getLength, getName, hashCode, isActual, isCollection, isLeafasPath, attributeIterator, childIterator, clone, compareTo, createAttribute, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isAttribute, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setIndex, setNamespaceResolver, testNode, toStringpublic DynaBeanPropertyPointer(NodePointer parent, org.apache.commons.beanutils.DynaBean dynaBean)
parent - pointerdynaBean - pointedpublic Object getBaseValue()
NodePointergetBaseValue in class NodePointerpublic boolean isContainer()
isContainer in class NodePointerpublic int getPropertyCount()
PropertyPointergetPropertyCount in class PropertyPointerpublic String[] getPropertyNames()
PropertyPointergetPropertyNames in class PropertyPointerpublic String getPropertyName()
getPropertyName in class PropertyPointerpublic void setPropertyName(String propertyName)
setPropertyName in class PropertyPointerpropertyName - to selectpublic int getPropertyIndex()
getPropertyIndex in class PropertyPointerpublic void setPropertyIndex(int index)
setPropertyIndex in class PropertyPointerindex - to setpublic Object getImmediateNode()
getImmediateNode in class PropertyPointerprotected boolean isActualProperty()
isActualProperty in class PropertyPointerprotected boolean isIndexedProperty()
public void setValue(Object value)
setValue in interface PointersetValue in class NodePointervalue - to setpublic void remove()
NodePointerremove in class NodePointerCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.