Package org.kuali.rice.krad.web.bind
Class UifBeanWrapper
java.lang.Object
org.springframework.beans.PropertyEditorRegistrySupport
org.springframework.beans.TypeConverterSupport
org.springframework.beans.AbstractPropertyAccessor
org.springframework.beans.AbstractNestablePropertyAccessor
org.springframework.beans.BeanWrapperImpl
org.kuali.rice.krad.web.bind.UifBeanWrapper
- All Implemented Interfaces:
org.springframework.beans.BeanWrapper,org.springframework.beans.ConfigurablePropertyAccessor,org.springframework.beans.PropertyAccessor,org.springframework.beans.PropertyEditorRegistry,org.springframework.beans.TypeConverter
- Direct Known Subclasses:
UifViewBeanWrapper
public class UifBeanWrapper
extends org.springframework.beans.BeanWrapperImpl
Bean wrapper that will auto grow paths for setting the value but not grow paths for getting
a value.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.beans.AbstractNestablePropertyAccessor
org.springframework.beans.AbstractNestablePropertyAccessor.PropertyHandler, org.springframework.beans.AbstractNestablePropertyAccessor.PropertyTokenHolder -
Field Summary
Fields inherited from interface org.springframework.beans.PropertyAccessor
NESTED_PROPERTY_SEPARATOR, NESTED_PROPERTY_SEPARATOR_CHAR, PROPERTY_KEY_PREFIX, PROPERTY_KEY_PREFIX_CHAR, PROPERTY_KEY_SUFFIX, PROPERTY_KEY_SUFFIX_CHAR -
Constructor Summary
ConstructorsConstructorDescriptionUifBeanWrapper(Object object) UifBeanWrapper(Object object, String nestedPath, UifBeanWrapper superBw) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.AbstractNestablePropertyAccessorgetPropertyAccessorForPropertyPath(String propertyPath) Override to set auto grown on the nested bean wrapper to the setting of the root bean wrapper.getPropertyValue(String propertyName) Overridden to set auto grow nested paths to false for getting the value.protected ObjectgetPropertyValue(String propertyName, boolean autoGrowNestedPaths) Returns the value for the given property growing nested paths depending on the parameter.org.springframework.beans.BeanWrapperImplBean wrapper for the root data object, used for setting auto grows on nested bean wrappers.protected org.springframework.beans.BeanWrapperImplnewNestedPropertyAccessor(Object object, String nestedPath) Override to instantiate a UIF bean wrapper for nested bean wrappers.voidsetPropertyValue(String propertyName, Object value) Override to set auto grow to true for setting property values.voidsetPropertyValue(org.springframework.beans.PropertyValue pv) Override to set auto grow to true for setting property values.voidsetRootBeanWrapper(org.springframework.beans.BeanWrapperImpl rootBeanWrapper) Methods inherited from class org.springframework.beans.BeanWrapperImpl
convertForProperty, createNotWritablePropertyException, getLocalPropertyHandler, getPropertyDescriptor, getPropertyDescriptors, getSecurityContext, setBeanInstance, setIntrospectionClass, setSecurityContext, setWrappedInstanceMethods inherited from class org.springframework.beans.AbstractNestablePropertyAccessor
convertForProperty, getAutoGrowCollectionLimit, getFinalPath, getNestedPath, getPropertyHandler, getPropertyType, getPropertyTypeDescriptor, getPropertyValue, getRootClass, getRootInstance, getWrappedClass, getWrappedInstance, isReadableProperty, isWritableProperty, setAutoGrowCollectionLimit, setPropertyValue, setWrappedInstance, toStringMethods inherited from class org.springframework.beans.AbstractPropertyAccessor
isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setExtractOldValueForEditor, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValuesMethods inherited from class org.springframework.beans.TypeConverterSupport
convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessaryMethods inherited from class org.springframework.beans.PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, setConversionService, useConfigValueEditorsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.beans.BeanWrapper
getAutoGrowCollectionLimit, getWrappedClass, getWrappedInstance, setAutoGrowCollectionLimitMethods inherited from interface org.springframework.beans.ConfigurablePropertyAccessor
getConversionService, isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setConversionService, setExtractOldValueForEditorMethods inherited from interface org.springframework.beans.PropertyAccessor
getPropertyType, getPropertyTypeDescriptor, isReadableProperty, isWritableProperty, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValuesMethods inherited from interface org.springframework.beans.PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditorMethods inherited from interface org.springframework.beans.TypeConverter
convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary
-
Constructor Details
-
UifBeanWrapper
-
UifBeanWrapper
-
-
Method Details
-
getPropertyValue
Overridden to set auto grow nested paths to false for getting the value.- Specified by:
getPropertyValuein interfaceorg.springframework.beans.PropertyAccessor- Overrides:
getPropertyValuein classorg.springframework.beans.AbstractNestablePropertyAccessor- Throws:
org.springframework.beans.BeansException
-
getPropertyValue
Returns the value for the given property growing nested paths depending on the parameter.- Parameters:
propertyName- name of the property to get value forautoGrowNestedPaths- whether nested paths should be grown (initialized if null)- Returns:
- value for property
-
setPropertyValue
public void setPropertyValue(org.springframework.beans.PropertyValue pv) throws org.springframework.beans.BeansException Override to set auto grow to true for setting property values.- Specified by:
setPropertyValuein interfaceorg.springframework.beans.PropertyAccessor- Overrides:
setPropertyValuein classorg.springframework.beans.AbstractNestablePropertyAccessor- Throws:
org.springframework.beans.BeansException
-
setPropertyValue
public void setPropertyValue(String propertyName, Object value) throws org.springframework.beans.BeansException Override to set auto grow to true for setting property values.- Specified by:
setPropertyValuein interfaceorg.springframework.beans.PropertyAccessor- Overrides:
setPropertyValuein classorg.springframework.beans.AbstractNestablePropertyAccessor- Throws:
org.springframework.beans.BeansException
-
newNestedPropertyAccessor
protected org.springframework.beans.BeanWrapperImpl newNestedPropertyAccessor(Object object, String nestedPath) Override to instantiate a UIF bean wrapper for nested bean wrappers.- Overrides:
newNestedPropertyAccessorin classorg.springframework.beans.BeanWrapperImpl
-
getPropertyAccessorForPropertyPath
protected org.springframework.beans.AbstractNestablePropertyAccessor getPropertyAccessorForPropertyPath(String propertyPath) Override to set auto grown on the nested bean wrapper to the setting of the root bean wrapper.This is necessary because the nested bean wrapper could have been cached, and its auto-grow setting reflect an earler get or set call
- Overrides:
getPropertyAccessorForPropertyPathin classorg.springframework.beans.AbstractNestablePropertyAccessor
-
getRootBeanWrapper
public org.springframework.beans.BeanWrapperImpl getRootBeanWrapper()Bean wrapper for the root data object, used for setting auto grows on nested bean wrappers.- Returns:
- bean wrapper impl for root data object
-
setRootBeanWrapper
public void setRootBeanWrapper(org.springframework.beans.BeanWrapperImpl rootBeanWrapper) - See Also:
-