org.springframework.binding
Interface PropertyMetadataAccessStrategy

Show UML class diagram

public interface PropertyMetadataAccessStrategy

Simple interface for accessing metadata about a particular property.

Author:
Keith Donald

Method Summary
 Map getAllUserMetadata(String propertyName)
          Returns all custom metadata associated with the specified property in the form of a Map.
 Class getPropertyType(String propertyName)
          Get the type of the given property.
 Object getUserMetadata(String propertyName, String key)
          Returns custom metadata that may be associated with the specified property path.
 boolean isReadable(String propertyName)
          Determine if the given property is readable.
 boolean isWriteable(String propertyName)
          Determine if the given property is writeable.
 

Method Detail

isReadable

boolean isReadable(String propertyName)
Determine if the given property is readable.

Parameters:
propertyName - property to examine.
Returns:
true if the property is readable.

isWriteable

boolean isWriteable(String propertyName)
Determine if the given property is writeable.

Parameters:
propertyName - property to examine.
Returns:
true if the property is writeable.

getPropertyType

Class getPropertyType(String propertyName)
Get the type of the given property.

Parameters:
propertyName - property to examine.
Returns:
the type of the property.

getUserMetadata

Object getUserMetadata(String propertyName,
                       String key)
Returns custom metadata that may be associated with the specified property path.

Parameters:
propertyName - property to examine.
key - used to retreive the metadata.
Returns:
Object stored under the given key.

getAllUserMetadata

Map getAllUserMetadata(String propertyName)
Returns all custom metadata associated with the specified property in the form of a Map.

Parameters:
propertyName - property to examine.
Returns:
Map containing String keys - this method may or may not return null if there is no custom metadata associated with the property.


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