Example usage for Java org.springframework.beans BeanWrapper fields, constructors, methods, implement or subclass
The text is from its open source code.
T | convertIfNecessary(@Nullable Object value, @Nullable Class Convert the value to the required type (if necessary from a String). |
PropertyEditor | findCustomEditor(@Nullable Class> requiredType, @Nullable String propertyPath) Find a custom property editor for the given type and property. |
ConversionService | getConversionService() Return the associated ConversionService, if any. |
PropertyDescriptor | getPropertyDescriptor(String propertyName) Obtain the property descriptor for a specific property of the wrapped object. |
PropertyDescriptor[] | getPropertyDescriptors() Obtain the PropertyDescriptors for the wrapped object (as determined by standard JavaBeans introspection). |
Class> | getPropertyType(String propertyName) 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. |
TypeDescriptor | getPropertyTypeDescriptor(String propertyName) Return a type descriptor for the specified property: preferably from the read method, falling back to the write method. |
Object | getPropertyValue(String propertyName) Get the current value of the specified property. |
Class> | getWrappedClass() Return the type of the wrapped bean instance. |
Object | getWrappedInstance() Return the bean instance wrapped by this object. |
boolean | isReadableProperty(String propertyName) Determine whether the specified property is readable. |
boolean | isWritableProperty(String propertyName) Determine whether the specified property is writable. |
void | registerCustomEditor(Class> requiredType, PropertyEditor propertyEditor) Register the given custom property editor for all properties of the given type. |
void | registerCustomEditor(@Nullable Class> requiredType, @Nullable String propertyPath, PropertyEditor propertyEditor) Register the given custom property editor for the given type and property, or for all properties of the given type. |
void | setConversionService(@Nullable ConversionService conversionService) Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors. |
void | setExtractOldValueForEditor(boolean extractOldValueForEditor) Set whether to extract the old property value when applying a property editor to a new value for a property. |
void | setPropertyValue(PropertyValue pv) Set the specified value as current property value. |
void | setPropertyValue(String propertyName, @Nullable Object value) Set the specified value as current property value. |
void | setPropertyValues(Map, ?> map) Perform a batch update from a Map. |
void | setPropertyValues(PropertyValues pvs, boolean ignoreUnknown) Perform a batch update with more control over behavior. |
void | setPropertyValues(PropertyValues pvs, boolean ignoreUnknown, boolean ignoreInvalid) Perform a batch update with full control over behavior. |