org.springframework.binding
Interface MutablePropertyAccessStrategy

All Superinterfaces:
PropertyAccessStrategy
All Known Implementing Classes:
AbstractPropertyAccessStrategy, AnnotationAwareBeanPropertyAccessStrategy, BeanPropertyAccessStrategy, ClassPropertyAccessStrategy, ObjectPropertyAccessStrategy

public interface MutablePropertyAccessStrategy
extends PropertyAccessStrategy

An extension of the base property access strategy interface that allows for mutable operations. Specifically, this interface allows:

Author:
Keith Donald

Method Summary
 ValueModel getDomainObjectHolder()
          Get the ValueModel used to access the domainObject.
 MutablePropertyAccessStrategy getPropertyAccessStrategyForPath(String propertyPath)
          Get a MutablePropertyAccessStrategy for the given property.
 ValueModel getPropertyValueModel(String propertyPath)
          Get the ValueModel to access the given property.
 MutablePropertyAccessStrategy newPropertyAccessStrategy(ValueModel domainObjectHolder)
          Return a new MutablePropertyAccessStrategy for the given valueModel.
 
Methods inherited from interface org.springframework.binding.PropertyAccessStrategy
getDomainObject, getMetadataAccessStrategy, getPropertyValue
 

Method Detail

getDomainObjectHolder

ValueModel getDomainObjectHolder()
Get the ValueModel used to access the domainObject.

Returns:
the ValueModel of the domainObject.

getPropertyValueModel

ValueModel getPropertyValueModel(String propertyPath)
                                 throws BeansException
Get the ValueModel to access the given property. Possibly creating the valueModel if needed.

Parameters:
propertyPath - property to access.
Returns:
ValueModel that handles the given property.
Throws:
BeansException

getPropertyAccessStrategyForPath

MutablePropertyAccessStrategy getPropertyAccessStrategyForPath(String propertyPath)
                                                               throws BeansException
Get a MutablePropertyAccessStrategy for the given property. TODO check why this exists and where this is used.

Parameters:
propertyPath - property.
Returns:
MutablePropertyAccessStrategy for the given property.
Throws:
BeansException

newPropertyAccessStrategy

MutablePropertyAccessStrategy newPropertyAccessStrategy(ValueModel domainObjectHolder)
Return a new MutablePropertyAccessStrategy for the given valueModel. TODO check why this exists and where this is used.

Parameters:
domainObjectHolder - a ValueModel containing the domainObject.
Returns:
a newly created MutablePropertyAccessStrategy.


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