atg.beans
Interface DynamicPropertyMapper

All Known Implementing Classes:
BeanPropertyMapper, DynamicBeanStateMapper, FilteredCommerceItemPropertyMapper

public interface DynamicPropertyMapper

This interface describes a DynamicPropertyMapper: an object that can get and set dynamic properties of dynamic beans belonging to Java classes or interfaces for which it has registered.

A DynamicPropertyMapper may also return a DynamicBeanInfo that describes some instance of a dynamic bean.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 DynamicBeanInfo getBeanInfo(java.lang.Object pBean)
          Gets a DynamicBeanInfo that describes the given dynamic bean.
 java.lang.Object getPropertyValue(java.lang.Object pBean, java.lang.String pName)
          Gets the value of the dynamic property from the specified object.
 void setPropertyValue(java.lang.Object pBean, java.lang.String pName, java.lang.Object pValue)
          Sets the value of the dynamic property from the specified object.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

getPropertyValue

java.lang.Object getPropertyValue(java.lang.Object pBean,
                                  java.lang.String pName)
                                  throws PropertyNotFoundException
Gets the value of the dynamic property from the specified object.

Throws:
PropertyNotFoundException

setPropertyValue

void setPropertyValue(java.lang.Object pBean,
                      java.lang.String pName,
                      java.lang.Object pValue)
                      throws PropertyNotFoundException
Sets the value of the dynamic property from the specified object.

Throws:
PropertyNotFoundException

getBeanInfo

DynamicBeanInfo getBeanInfo(java.lang.Object pBean)
                            throws java.beans.IntrospectionException
Gets a DynamicBeanInfo that describes the given dynamic bean.

Returns:
the DynamicBeanInfo describing the bean.
Throws:
java.beans.IntrospectionException - if no information is available.