org.apache.beehive.controls.api.properties
Interface PropertyMap

All Known Implementing Classes:
AnnotatedElementMap, BaseMap, BeanPropertyMap

public interface PropertyMap

The PropertyMap interface represents a collection of ControlBean properties. Concrete implementations of this interface might derive property values from a local Map, Java 5.0 annotations, external configuration, or other property sources.


Method Summary
 boolean containsPropertySet(Class<? extends Annotation> propertySet)
          Returns true if the PropertyMap contains one or more values for the specified PropertySet, false otherwise
 PropertyMap getDelegateMap()
          Returns a delegate base property map from which values will be derived if not found within the local property map.
 Class getMapClass()
          Returns the PropertySet or Control interface class associated with the PropertyMap.
 Object getProperty(PropertyKey key)
          Returns the property value specified by 'key' within this map.
<T extends Annotation>
T
getPropertySet(Class<T> propertySet)
          Returns a PropertySet proxy instance that derives its data from the contents of the property map.
 void setDelegateMap(PropertyMap delegateMap)
          Sets a delegate base property map from which values will be derived if not found within the local property map.
 void setProperty(PropertyKey key, Object value)
          Sets the property specifed by 'key' within this map.
 

Method Detail

getMapClass

Class getMapClass()
Returns the PropertySet or Control interface class associated with the PropertyMap.


setDelegateMap

void setDelegateMap(PropertyMap delegateMap)
Sets a delegate base property map from which values will be derived if not found within the local property map.


getDelegateMap

PropertyMap getDelegateMap()
Returns a delegate base property map from which values will be derived if not found within the local property map.


setProperty

void setProperty(PropertyKey key,
                 Object value)
Sets the property specifed by 'key' within this map.


getProperty

Object getProperty(PropertyKey key)
Returns the property value specified by 'key' within this map.


containsPropertySet

boolean containsPropertySet(Class<? extends Annotation> propertySet)
Returns true if the PropertyMap contains one or more values for the specified PropertySet, false otherwise


getPropertySet

<T extends Annotation> T getPropertySet(Class<T> propertySet)
Returns a PropertySet proxy instance that derives its data from the contents of the property map. Will return null if the PropertyMap does not contain any properties associated with the specified PropertySet.