org.springframework.richclient.beans
Class AbstractNestedMemberPropertyAccessor

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
All Implemented Interfaces:
ConfigurablePropertyAccessor, PropertyAccessor, PropertyEditorRegistry, TypeConverter
Direct Known Subclasses:
DefaultMemberPropertyAccessor

public abstract class AbstractNestedMemberPropertyAccessor
extends AbstractMemberPropertyAccessor

This implementation extends AbstractMemberPropertyAccessor with the functionality of nested property handling.

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
  AbstractNestedMemberPropertyAccessor(AbstractNestedMemberPropertyAccessor parent, String baseProperty)
           
protected AbstractNestedMemberPropertyAccessor(Class targetClass, boolean fieldAccessEnabled, boolean strictNullHandlingEnabled)
           
 
Method Summary
protected  void clearChildPropertyAccessorCache()
           
protected abstract  AbstractNestedMemberPropertyAccessor createChildPropertyAccessor(String propertyName)
           
protected  String getBasePropertyName()
           
protected  String getBasePropertyName(String propertyPath)
           
protected  PropertyAccessor getChildPropertyAccessor(String propertyName)
           
protected  String getChildPropertyPath(String propertyPath)
           
protected  AbstractNestedMemberPropertyAccessor getParentPropertyAccessor()
           
 Class getPropertyType(String propertyPath)
          
 Object getPropertyValue(String propertyPath)
          
 Object getTarget()
           
 Class getTargetClass()
          Returns the class used to introspect members.
 boolean isReadableProperty(String propertyPath)
          
 boolean isStrictNullHandlingEnabled()
           
 boolean isWritableProperty(String propertyPath)
          
 void setPropertyValue(String propertyPath, Object value)
          
 
Methods inherited from class org.springframework.richclient.beans.AbstractMemberPropertyAccessor
checkKeyTypes, createNotReadablePropertyException, getIndexedPropertyKeyType, getIndexedPropertyValue, getIndices, getParentPropertyName, getPropertyAccessor, getPropertyName, getReadPropertyAccessor, getRootPropertyName, getSimplePropertyValue, getWritePropertyAccessor, isFieldAccessEnabled, setAssemblageValue, setIndexedPropertyValue, setSimplePropertyValue, 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
 
Methods inherited from interface org.springframework.beans.TypeConverter
convertIfNecessary
 

Constructor Detail

AbstractNestedMemberPropertyAccessor

protected AbstractNestedMemberPropertyAccessor(Class targetClass,
                                               boolean fieldAccessEnabled,
                                               boolean strictNullHandlingEnabled)

AbstractNestedMemberPropertyAccessor

public AbstractNestedMemberPropertyAccessor(AbstractNestedMemberPropertyAccessor parent,
                                            String baseProperty)
Method Detail

isStrictNullHandlingEnabled

public boolean isStrictNullHandlingEnabled()

getParentPropertyAccessor

protected AbstractNestedMemberPropertyAccessor getParentPropertyAccessor()

getBasePropertyName

protected String getBasePropertyName()

getTarget

public Object getTarget()

getTargetClass

public Class getTargetClass()
Description copied from class: AbstractMemberPropertyAccessor
Returns the class used to introspect members.

Overrides:
getTargetClass in class AbstractMemberPropertyAccessor

isReadableProperty

public boolean isReadableProperty(String propertyPath)
Description copied from class: AbstractMemberPropertyAccessor

Specified by:
isReadableProperty in interface PropertyAccessor
Overrides:
isReadableProperty in class AbstractMemberPropertyAccessor

isWritableProperty

public boolean isWritableProperty(String propertyPath)
Description copied from class: AbstractMemberPropertyAccessor

Specified by:
isWritableProperty in interface PropertyAccessor
Overrides:
isWritableProperty in class AbstractMemberPropertyAccessor

getPropertyType

public Class getPropertyType(String propertyPath)
Description copied from class: AbstractMemberPropertyAccessor

Specified by:
getPropertyType in interface PropertyAccessor
Overrides:
getPropertyType in class AbstractMemberPropertyAccessor

getPropertyValue

public Object getPropertyValue(String propertyPath)
Description copied from class: AbstractMemberPropertyAccessor

Specified by:
getPropertyValue in interface PropertyAccessor
Overrides:
getPropertyValue in class AbstractMemberPropertyAccessor

setPropertyValue

public void setPropertyValue(String propertyPath,
                             Object value)
Description copied from class: AbstractMemberPropertyAccessor

Specified by:
setPropertyValue in interface PropertyAccessor
Overrides:
setPropertyValue in class AbstractMemberPropertyAccessor

getBasePropertyName

protected String getBasePropertyName(String propertyPath)

getChildPropertyPath

protected String getChildPropertyPath(String propertyPath)

getChildPropertyAccessor

protected PropertyAccessor getChildPropertyAccessor(String propertyName)

createChildPropertyAccessor

protected abstract AbstractNestedMemberPropertyAccessor createChildPropertyAccessor(String propertyName)

clearChildPropertyAccessorCache

protected void clearChildPropertyAccessorCache()


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