org.springframework.binding.form.support
Class FormModelPropertyAccessStrategy

java.lang.Object
  extended by org.springframework.binding.form.support.FormModelPropertyAccessStrategy
All Implemented Interfaces:
PropertyAccessStrategy

public class FormModelPropertyAccessStrategy
extends Object
implements PropertyAccessStrategy

Adapts the properties of FormModel so that they are accessible using the PropertyAccessStrategy interface.

Author:
Oliver Hutchison

Constructor Summary
FormModelPropertyAccessStrategy(FormModel formModel)
           
 
Method Summary
 Object getDomainObject()
          Return the target, backing domain object for which property access requests are targeted against.
 PropertyMetadataAccessStrategy getMetadataAccessStrategy()
          Get a metadata accessor, which can return meta information about particular properties of the backed domain object.
 Object getPropertyValue(String propertyPath)
          Get the value of a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormModelPropertyAccessStrategy

public FormModelPropertyAccessStrategy(FormModel formModel)
Method Detail

getPropertyValue

public Object getPropertyValue(String propertyPath)
                        throws BeansException
Description copied from interface: PropertyAccessStrategy
Get the value of a property.

Specified by:
getPropertyValue in interface PropertyAccessStrategy
Parameters:
propertyPath - name of the property to get the value of
Returns:
the value of the property
Throws:
FatalBeanException - if there is no such property, if the property isn't readable, or if the property getter throws an exception.
BeansException

getMetadataAccessStrategy

public PropertyMetadataAccessStrategy getMetadataAccessStrategy()
Description copied from interface: PropertyAccessStrategy
Get a metadata accessor, which can return meta information about particular properties of the backed domain object.

Specified by:
getMetadataAccessStrategy in interface PropertyAccessStrategy
Returns:
The meta accessor.

getDomainObject

public Object getDomainObject()
Description copied from interface: PropertyAccessStrategy
Return the target, backing domain object for which property access requests are targeted against.

Specified by:
getDomainObject in interface PropertyAccessStrategy
Returns:
The backing target object.


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