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

    Constructors
    Constructor
    Description
     
    UifBeanWrapper(Object object, String nestedPath, UifBeanWrapper superBw)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.beans.AbstractNestablePropertyAccessor
    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 Object
    getPropertyValue(String propertyName, boolean autoGrowNestedPaths)
    Returns the value for the given property growing nested paths depending on the parameter.
    org.springframework.beans.BeanWrapperImpl
    Bean wrapper for the root data object, used for setting auto grows on nested bean wrappers.
    protected org.springframework.beans.BeanWrapperImpl
    Override to instantiate a UIF bean wrapper for nested bean wrappers.
    void
    setPropertyValue(String propertyName, Object value)
    Override to set auto grow to true for setting property values.
    void
    setPropertyValue(org.springframework.beans.PropertyValue pv)
    Override to set auto grow to true for setting property values.
    void
    setRootBeanWrapper(org.springframework.beans.BeanWrapperImpl rootBeanWrapper)
     

    Methods inherited from class org.springframework.beans.BeanWrapperImpl

    convertForProperty, createNotWritablePropertyException, getLocalPropertyHandler, getPropertyDescriptor, getPropertyDescriptors, getSecurityContext, setBeanInstance, setIntrospectionClass, setSecurityContext, setWrappedInstance

    Methods inherited from class org.springframework.beans.AbstractNestablePropertyAccessor

    convertForProperty, getAutoGrowCollectionLimit, getFinalPath, getNestedPath, getPropertyHandler, getPropertyType, getPropertyTypeDescriptor, getPropertyValue, getRootClass, getRootInstance, getWrappedClass, getWrappedInstance, isReadableProperty, isWritableProperty, setAutoGrowCollectionLimit, setPropertyValue, setWrappedInstance, toString

    Methods inherited from class org.springframework.beans.AbstractPropertyAccessor

    isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setExtractOldValueForEditor, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues

    Methods inherited from class org.springframework.beans.TypeConverterSupport

    convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary

    Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport

    copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getConversionService, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, overrideDefaultEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, setConversionService, useConfigValueEditors

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.beans.BeanWrapper

    getAutoGrowCollectionLimit, getWrappedClass, getWrappedInstance, setAutoGrowCollectionLimit

    Methods inherited from interface org.springframework.beans.ConfigurablePropertyAccessor

    getConversionService, isAutoGrowNestedPaths, isExtractOldValueForEditor, setAutoGrowNestedPaths, setConversionService, setExtractOldValueForEditor

    Methods inherited from interface org.springframework.beans.PropertyAccessor

    getPropertyType, getPropertyTypeDescriptor, isReadableProperty, isWritableProperty, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues

    Methods inherited from interface org.springframework.beans.PropertyEditorRegistry

    findCustomEditor, registerCustomEditor, registerCustomEditor

    Methods inherited from interface org.springframework.beans.TypeConverter

    convertIfNecessary, convertIfNecessary, convertIfNecessary, convertIfNecessary
  • Constructor Details

  • Method Details

    • getPropertyValue

      public Object getPropertyValue(String propertyName) throws org.springframework.beans.BeansException
      Overridden to set auto grow nested paths to false for getting the value.
      Specified by:
      getPropertyValue in interface org.springframework.beans.PropertyAccessor
      Overrides:
      getPropertyValue in class org.springframework.beans.AbstractNestablePropertyAccessor
      Throws:
      org.springframework.beans.BeansException
    • getPropertyValue

      protected Object getPropertyValue(String propertyName, boolean autoGrowNestedPaths)
      Returns the value for the given property growing nested paths depending on the parameter.
      Parameters:
      propertyName - name of the property to get value for
      autoGrowNestedPaths - 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:
      setPropertyValue in interface org.springframework.beans.PropertyAccessor
      Overrides:
      setPropertyValue in class org.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:
      setPropertyValue in interface org.springframework.beans.PropertyAccessor
      Overrides:
      setPropertyValue in class org.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:
      newNestedPropertyAccessor in class org.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:
      getPropertyAccessorForPropertyPath in class org.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: