Typically not used directly but rather implicitly via a
org. or a
org..
Provides operations to analyze and manipulate standard JavaBeans: the ability to get and set property values (individually or in bulk), get property descriptors, and query the readability/writability of properties.
This interface supports nested properties enabling the setting of properties on subproperties to an unlimited depth.
A BeanWrapper's default for the "extractOldValueForEditor" setting is "false", to avoid side effects caused by getter method invocations. Turn this to "true" to expose present property values to custom editors.
PropertyAccessor, PropertyEditorRegistry, PropertyAccessorFactory#forBeanPropertyAccess, org.springframework.beans.factory.BeanFactory , org.springframework.validation.BeanPropertyBindingResult , org.springframework.validation.DataBinder#initBeanPropertyAccess()
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public PropertyDescriptor | Returns: the property descriptor for the specified propertythe property to obtain the descriptor for
(may be a nested path, but not an indexed/mapped property) propertyName)Obtain the property descriptor for a specific property of the wrapped object. |
| public PropertyDescriptor[] | Returns: the PropertyDescriptors for the wrapped objectObtain the PropertyDescriptors for the wrapped object (as determined by standard JavaBeans introspection). |
| public Class | |
| public Object | |
| public void | setAutoGrowCollectionLimit(int autoGrowCollectionLimit)
Specify a limit for array and collection auto-growing. |
| getAutoGrowCollectionLimit | back to summary |
|---|---|
| public int getAutoGrowCollectionLimit() Return the limit for array and collection auto-growing.
| |
| getPropertyDescriptor | back to summary |
|---|---|
| public PropertyDescriptor getPropertyDescriptor(String propertyName) throws InvalidPropertyException Obtain the property descriptor for a specific property of the wrapped object.
| |
| getPropertyDescriptors | back to summary |
|---|---|
| public PropertyDescriptor[] getPropertyDescriptors() Obtain the PropertyDescriptors for the wrapped object (as determined by standard JavaBeans introspection).
| |
| getWrappedClass | back to summary |
|---|---|
| public Class Return the type of the wrapped bean instance. | |
| getWrappedInstance | back to summary |
|---|---|
| public Object getWrappedInstance() Return the bean instance wrapped by this object. | |
| setAutoGrowCollectionLimit | back to summary |
|---|---|
| public void setAutoGrowCollectionLimit(int autoGrowCollectionLimit) Specify a limit for array and collection auto-growing. Default is unlimited on a plain BeanWrapper.
| |