org.springframework.richclient.beans
Class DefaultMemberPropertyAccessor

Show UML class diagram
java.lang.Object
  extended by org.springframework.beans.PropertyEditorRegistrySupport
      extended by org.springframework.beans.AbstractPropertyAccessor
          extended by org.springframework.richclient.beans.AbstractMemberPropertyAccessor
              extended by org.springframework.richclient.beans.AbstractNestedMemberPropertyAccessor
                  extended by org.springframework.richclient.beans.DefaultMemberPropertyAccessor
All Implemented Interfaces:
ConfigurablePropertyAccessor, PropertyAccessor, PropertyEditorRegistry, TypeConverter

public class DefaultMemberPropertyAccessor
extends AbstractNestedMemberPropertyAccessor

This class implements actual access to properties for AbstractNestedMemberPropertyAccessor.

Author:
Arne Limburg

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
protected DefaultMemberPropertyAccessor(AbstractNestedMemberPropertyAccessor parent, String baseProperty)
           
  DefaultMemberPropertyAccessor(Class targetClass)
           
  DefaultMemberPropertyAccessor(Class targetClass, Object target, boolean fieldAccessEnabled, boolean strictNullHandlingEnabled)
           
  DefaultMemberPropertyAccessor(Object target)
           
  DefaultMemberPropertyAccessor(Object target, boolean fieldAccessEnabled, boolean strictNullHandlingEnabled)
           
 
Method Summary
 Object convertIfNecessary(Object value, Class requiredType, MethodParameter methodParam)
           
protected  AbstractNestedMemberPropertyAccessor createChildPropertyAccessor(String propertyName)
           
 Object getIndexedPropertyValue(String propertyName)
          Retrieve the value of an indexed property.
 Object getSimplePropertyValue(String propertyName)
          Retrieve the value of a simple property (non-indexed).
 Object getTarget()
           
 void setIndexedPropertyValue(String propertyName, Object value)
          Set the value of an indexed property.
 void setSimplePropertyValue(String propertyName, Object value)
          Set the value of a simple property (non-indexed).
 void setTarget(Object target)
           
 
Methods inherited from class org.springframework.richclient.beans.AbstractNestedMemberPropertyAccessor
clearChildPropertyAccessorCache, getBasePropertyName, getBasePropertyName, getChildPropertyAccessor, getChildPropertyPath, getParentPropertyAccessor, getPropertyType, getPropertyValue, getTargetClass, isReadableProperty, isStrictNullHandlingEnabled, isWritableProperty, setPropertyValue
 
Methods inherited from class org.springframework.richclient.beans.AbstractMemberPropertyAccessor
checkKeyTypes, createNotReadablePropertyException, getIndexedPropertyKeyType, getIndices, getParentPropertyName, getPropertyAccessor, getPropertyName, getReadPropertyAccessor, getRootPropertyName, getWritePropertyAccessor, isFieldAccessEnabled, setAssemblageValue, setTargetClass
 
Methods inherited from class org.springframework.beans.AbstractPropertyAccessor
convertIfNecessary, isExtractOldValueForEditor, setExtractOldValueForEditor, setPropertyValue, setPropertyValues, setPropertyValues, setPropertyValues, setPropertyValues
 
Methods inherited from class org.springframework.beans.PropertyEditorRegistrySupport
copyCustomEditorsTo, copyDefaultEditorsTo, findCustomEditor, getDefaultEditor, guessPropertyTypeFromEditors, hasCustomEditorForElement, isSharedEditor, registerCustomEditor, registerCustomEditor, registerDefaultEditors, registerSharedEditor, useConfigValueEditors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.PropertyEditorRegistry
findCustomEditor, registerCustomEditor, registerCustomEditor
 

Constructor Detail

DefaultMemberPropertyAccessor

public DefaultMemberPropertyAccessor(Class targetClass)

DefaultMemberPropertyAccessor

public DefaultMemberPropertyAccessor(Object target)

DefaultMemberPropertyAccessor

public DefaultMemberPropertyAccessor(Object target,
                                     boolean fieldAccessEnabled,
                                     boolean strictNullHandlingEnabled)

DefaultMemberPropertyAccessor

public DefaultMemberPropertyAccessor(Class targetClass,
                                     Object target,
                                     boolean fieldAccessEnabled,
                                     boolean strictNullHandlingEnabled)

DefaultMemberPropertyAccessor

protected DefaultMemberPropertyAccessor(AbstractNestedMemberPropertyAccessor parent,
                                        String baseProperty)
Method Detail

getTarget

public Object getTarget()
Overrides:
getTarget in class AbstractNestedMemberPropertyAccessor

setTarget

public void setTarget(Object target)

getIndexedPropertyValue

public Object getIndexedPropertyValue(String propertyName)
                               throws BeansException
Description copied from class: AbstractMemberPropertyAccessor
Retrieve the value of an indexed property.

Specified by:
getIndexedPropertyValue in class AbstractMemberPropertyAccessor
Parameters:
propertyName - name of the property.
Returns:
value of the property.
Throws:
BeansException

getSimplePropertyValue

public Object getSimplePropertyValue(String propertyName)
                              throws BeansException
Description copied from class: AbstractMemberPropertyAccessor
Retrieve the value of a simple property (non-indexed).

Specified by:
getSimplePropertyValue in class AbstractMemberPropertyAccessor
Parameters:
propertyName - name of the property.
Returns:
value of the property.
Throws:
BeansException

setIndexedPropertyValue

public void setIndexedPropertyValue(String propertyName,
                                    Object value)
                             throws BeansException
Description copied from class: AbstractMemberPropertyAccessor
Set the value of an indexed property.

Specified by:
setIndexedPropertyValue in class AbstractMemberPropertyAccessor
Parameters:
propertyName - name of the property.
value - new value for the property.
Throws:
BeansException

setSimplePropertyValue

public void setSimplePropertyValue(String propertyName,
                                   Object value)
                            throws BeansException
Description copied from class: AbstractMemberPropertyAccessor
Set the value of a simple property (non-indexed).

Specified by:
setSimplePropertyValue in class AbstractMemberPropertyAccessor
Parameters:
propertyName - name of the property.
value - new value for the property.
Throws:
BeansException

createChildPropertyAccessor

protected AbstractNestedMemberPropertyAccessor createChildPropertyAccessor(String propertyName)
Specified by:
createChildPropertyAccessor in class AbstractNestedMemberPropertyAccessor

convertIfNecessary

public Object convertIfNecessary(Object value,
                                 Class requiredType,
                                 MethodParameter methodParam)
                          throws TypeMismatchException
Throws:
TypeMismatchException


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.