java.lang.Object | ||
↳ | org.springframework.beans.PropertyEditorRegistrySupport | |
↳ | org.springframework.beans.AbstractPropertyAccessor |
Known Direct Subclasses |
Abstract implementation of the PropertyAccessor
interface.
Provides base implementations of all convenience methods, with the
implementation of actual property access left to subclasses.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.beans.PropertyAccessor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert the value to the required type (if necessary from a String).
| |||||||||||
Determine the property type for the given property path.
| |||||||||||
Actually get the value of a property.
| |||||||||||
Return whether to extract the old property value when applying a
property editor to a new value for a property.
| |||||||||||
Set whether to extract the old property value when applying a
property editor to a new value for a property.
| |||||||||||
Set the specified value as current property value.
| |||||||||||
Actually set a property value.
| |||||||||||
Perform a batch update with full control over behavior.
| |||||||||||
The preferred way to perform a batch update.
| |||||||||||
Perform a batch update from a Map.
| |||||||||||
Perform a batch update with more control over behavior.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.PropertyEditorRegistrySupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.ConfigurablePropertyAccessor
| |||||||||||
From interface
org.springframework.beans.PropertyAccessor
| |||||||||||
From interface
org.springframework.beans.PropertyEditorRegistry
| |||||||||||
From interface
org.springframework.beans.TypeConverter
|
Convert the value to the required type (if necessary from a String).
Conversions from String to any type will typically use the setAsText
method of the PropertyEditor class. Note that a PropertyEditor must be registered
for the given class for this to work; this is a standard JavaBeans API.
A number of PropertyEditors are automatically registered.
value | the value to convert |
---|---|
requiredType | the type we must convert to
(or null if not known, for example in case of a collection element) |
TypeMismatchException |
---|
Determine the property type for the given property path.
Called by findCustomEditor(Class, String)
if no required type has been specified,
to be able to find a type-specific editor even if just given a property path.
The default implementation always returns null
.
BeanWrapperImpl overrides this with the standard getPropertyType
method as defined by the BeanWrapper interface.
propertyPath | the property path to determine the type for |
---|
null
if not determinableActually get the value of a property.
propertyName | name of the property to get the value of |
---|
InvalidPropertyException | if there is no such property or if the property isn't readable |
---|---|
PropertyAccessException | if the property was valid but the accessor method failed |
BeansException |
Return whether to extract the old property value when applying a property editor to a new value for a property.
Set whether to extract the old property value when applying a property editor to a new value for a property.
Set the specified value as current property value.
pv | an object containing the new property value |
---|
BeansException |
---|
Actually set a property value.
propertyName | name of the property to set value of |
---|---|
value | the new value |
InvalidPropertyException | if there is no such property or if the property isn't writable |
---|---|
PropertyAccessException | if the property was valid but the accessor method failed or a type mismatch occured |
BeansException |
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
PropertyBatchUpdateException
containing all the individual errors.
This exception can be examined later to see all binding errors.
Properties that were successfully updated remain changed.
pvs | PropertyValues to set on the target object |
---|---|
ignoreUnknown | should we ignore unknown properties (not found in the bean) |
ignoreInvalid | should we ignore invalid properties (found but not accessible) |
BeansException |
---|
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
PropertyBatchUpdateException
containing all the individual errors.
This exception can be examined later to see all binding errors.
Properties that were successfully updated remain changed.
Does not allow unknown fields or invalid fields.
pvs | PropertyValues to set on the target object |
---|
BeansException |
---|
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(PropertyValues)
method.
map | Map to take properties from. Contains property value objects, keyed by property name |
---|
BeansException |
---|
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
PropertyBatchUpdateException
containing all the individual errors.
This exception can be examined later to see all binding errors.
Properties that were successfully updated remain changed.
pvs | PropertyValues to set on the target object |
---|---|
ignoreUnknown | should we ignore unknown properties (not found in the bean) |
BeansException |
---|