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, JSR-175 annotation, 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
 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.
 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.


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