public abstract class BeanWrapperBase
extends org.springframework.beans.BeanWrapperImpl
| Modifier and Type | Field and Description |
|---|---|
protected List |
customEditors |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BeanWrapperBase() |
BeanWrapperBase(Object object) |
BeanWrapperBase(Object object,
String nestedPath,
Object rootObject) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.beans.BeanWrapper |
constructWrapper(Object propertyValue,
String nestedProperty) |
protected org.springframework.beans.BeanWrapper |
createNestedWrapper(String parentPath,
String nestedProperty) |
PropertyEditor |
findCustomEditor(Class requiredType,
String propertyPath) |
protected org.springframework.beans.BeanWrapper |
getBeanWrapperForPropertyPath(String propertyPath) |
protected String |
getFinalPath(String nestedPath)
Get the last component of the path.
|
protected org.springframework.beans.BeanWrapper |
getNestedBeanWrapper(String nestedProperty) |
Object |
getPropertyValue(String propertyName) |
<T> T |
getPropertyValue(String propertyName,
Class<T> propertyType) |
protected boolean |
isNestedProperty(String path)
Is the property nested? That is, does it contain the nested
property separator (usually ".").
|
void |
registerCustomEditor(Class requiredType,
String propertyPath,
PropertyEditor propertyEditor) |
void |
setPropertyValue(String propertyName,
Object value) |
convertForProperty, createNotWritablePropertyException, getLocalPropertyHandler, getPropertyDescriptor, getPropertyDescriptors, getSecurityContext, newNestedPropertyAccessor, setBeanInstance, setIntrospectionClass, setSecurityContext, setWrappedInstanceconvertForProperty, getAutoGrowCollectionLimit, getFinalPath, getNestedPath, getPropertyAccessorForPropertyPath, getPropertyHandler, getPropertyType, getPropertyTypeDescriptor, getPropertyValue, getRootClass, getRootInstance, getWrappedClass, getWrappedInstance, isReadableProperty, isWritableProperty, setAutoGrowCollectionLimit, setPropertyValue, setPropertyValue, setWrappedInstance, toStringisAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setExtractOldValueForEditor, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValuesconvertIfNecessary, convertIfNecessary, convertIfNecessarycopyCustomEditorsTo, copyDefaultEditorsTo, getConversionService, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, overrideDefaultEditor, registerCustomEditor, registerDefaultEditors, setConversionService, useConfigValueEditorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAutoGrowCollectionLimit, getWrappedClass, getWrappedInstance, setAutoGrowCollectionLimitgetConversionService, isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setConversionService, setExtractOldValueForEditorgetPropertyType, getPropertyTypeDescriptor, isReadableProperty, isWritableProperty, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValuesprotected final org.slf4j.Logger logger
protected List customEditors
public BeanWrapperBase()
public BeanWrapperBase(Object object)
public <T> T getPropertyValue(String propertyName, Class<T> propertyType) throws org.springframework.beans.BeansException
org.springframework.beans.BeansExceptionpublic Object getPropertyValue(String propertyName) throws org.springframework.beans.BeansException
getPropertyValue in interface org.springframework.beans.PropertyAccessorgetPropertyValue in class org.springframework.beans.AbstractNestablePropertyAccessororg.springframework.beans.BeansExceptionprotected org.springframework.beans.BeanWrapper getBeanWrapperForPropertyPath(String propertyPath)
protected org.springframework.beans.BeanWrapper getNestedBeanWrapper(String nestedProperty)
protected org.springframework.beans.BeanWrapper createNestedWrapper(String parentPath, String nestedProperty)
protected org.springframework.beans.BeanWrapper constructWrapper(Object propertyValue, String nestedProperty)
public void registerCustomEditor(Class requiredType, String propertyPath, PropertyEditor propertyEditor)
registerCustomEditor in interface org.springframework.beans.PropertyEditorRegistryregisterCustomEditor in class org.springframework.beans.PropertyEditorRegistrySupportpublic void setPropertyValue(String propertyName, Object value) throws org.springframework.beans.BeansException
setPropertyValue in interface org.springframework.beans.PropertyAccessorsetPropertyValue in class org.springframework.beans.AbstractNestablePropertyAccessororg.springframework.beans.BeansExceptionprotected boolean isNestedProperty(String path)
path - property pathprotected String getFinalPath(String nestedPath)
nestedPath - property path we know is nestedpublic PropertyEditor findCustomEditor(Class requiredType, String propertyPath)
findCustomEditor in interface org.springframework.beans.PropertyEditorRegistryfindCustomEditor in class org.springframework.beans.PropertyEditorRegistrySupportCopyright © 2019. All rights reserved.