PropertyAccessor interface.
Provides base implementations of all convenience methods, with the
implementation of actual property access left to subclasses.
getPropertyValue, setPropertyValue
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | getPropertyType(String
the property to check
(may be a nested path and/or an indexed/mapped property) propertyPath)Overrides org. Implements org. Determine the property type for the specified property, either checking the property descriptor or checking the value in case of an indexed or mapped element. |
| public abstract Object | Returns: the value of the propertyname of the property to get the value of propertyName)Redeclares org. Actually get the value of a property. |
| public boolean | isAutoGrowNestedPaths()
Implements org. Return whether "auto-growing" of nested paths has been activated. |
| public boolean | isExtractOldValueForEditor()
Implements org. Return whether to extract the old property value when applying a property editor to a new value for a property. |
| public void | setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Implements org. Set whether this instance should attempt to "auto-grow" a
nested path that contains a |
| public void | setExtractOldValueForEditor(boolean extractOldValueForEditor)
Implements org. Set whether to extract the old property value when applying a property editor to a new value for a property. |
| public void | setPropertyValue(PropertyValue
an object containing the new property value pv)Implements org. Set the specified value as current property value. |
| public abstract void | setPropertyValue(String
name of the property to set value of propertyName, Object the new value value)Redeclares org. Actually set a property value. |
| public void | setPropertyValues(Map<?, ?>
a Map to take properties from. Contains property value objects,
keyed by property name map)Implements org. Perform a batch update from a Map. |
| public void | setPropertyValues(PropertyValues
a PropertyValues to set on the target object pvs)Implements org. The preferred way to perform a batch update. |
| public void | setPropertyValues(PropertyValues
a PropertyValues to set on the target object pvs, boolean should we ignore unknown properties (not found in the bean) ignoreUnknown)Implements org. Perform a batch update with more control over behavior. |
| public void | setPropertyValues(PropertyValues
a PropertyValues to set on the target object pvs, boolean should we ignore unknown properties (not found in the bean) ignoreUnknown, boolean should we ignore invalid properties (found but not accessible) ignoreInvalid)Implements org. Perform a batch update with full control over behavior. |
| autoGrowNestedPaths | back to summary |
|---|---|
| private boolean autoGrowNestedPaths | |
| extractOldValueForEditor | back to summary |
|---|---|
| private boolean extractOldValueForEditor | |
| suppressNotWritablePropertyException | back to summary |
|---|---|
| pack-priv boolean suppressNotWritablePropertyException | |
| AbstractPropertyAccessor | back to summary |
|---|---|
| public AbstractPropertyAccessor() | |
| getPropertyType | back to summary |
|---|---|
| public Class Overrides org. Implements org. Doc from org. Determine the property type for the specified property, either checking the property descriptor or checking the value in case of an indexed or mapped element. | |
| getPropertyValue | back to summary |
|---|---|
| public abstract Object getPropertyValue(String propertyName) throws BeansException Redeclares org. Actually get the value of a property.
| |
| isAutoGrowNestedPaths | back to summary |
|---|---|
| public boolean isAutoGrowNestedPaths() Implements org. Doc from org. Return whether "auto-growing" of nested paths has been activated.
| |
| isExtractOldValueForEditor | back to summary |
|---|---|
| public boolean isExtractOldValueForEditor() Implements org. Doc from org. Return whether to extract the old property value when applying a property editor to a new value for a property.
| |
| setAutoGrowNestedPaths | back to summary |
|---|---|
| public void setAutoGrowNestedPaths(boolean autoGrowNestedPaths) Implements org. Doc from org. Set whether this instance should attempt to "auto-grow" a
nested path that contains a If Default is
| |
| setExtractOldValueForEditor | back to summary |
|---|---|
| public void setExtractOldValueForEditor(boolean extractOldValueForEditor) Implements org. Doc from org. Set whether to extract the old property value when applying a property editor to a new value for a property.
| |
| setPropertyValue | back to summary |
|---|---|
| public void setPropertyValue(PropertyValue pv) throws BeansException Implements org. Doc from org. Set the specified value as current property value.
| |
| setPropertyValue | back to summary |
|---|---|
| public abstract void setPropertyValue(String propertyName, Object value) throws BeansException Redeclares org. Actually set a property value.
| |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(Map<?, ?> map) throws BeansException Implements org. Doc from org. Perform a batch update from a Map. Bulk updates from PropertyValues are more powerful: This method is
provided for convenience. Behavior will be identical to that of
the | |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(PropertyValues pvs) throws BeansException Implements org. Doc from org. The preferred way to perform a batch update. Note that performing a batch update differs from performing a single update,
in that an implementation of this class will continue to update properties
if a recoverable error (such as a type mismatch, but not an
invalid field name or the like) is encountered, throwing a
Does not allow unknown fields or invalid fields.
| |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown) throws BeansException Implements org. Doc from org. Perform a batch update with more control over behavior. Note that performing a batch update differs from performing a single update,
in that an implementation of this class will continue to update properties
if a recoverable error (such as a type mismatch, but not an
invalid field name or the like) is encountered, throwing a
| |
| setPropertyValues | back to summary |
|---|---|
| public void setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid) throws BeansException Implements org. Doc from org. Perform a batch update with full control over behavior. Note that performing a batch update differs from performing a single update,
in that an implementation of this class will continue to update properties
if a recoverable error (such as a type mismatch, but not an
invalid field name or the like) is encountered, throwing a
| |