org.apache.beehive.controls.api.properties
Class AnnotatedElementMap

Object
  extended by BaseMap
      extended by AnnotatedElementMap
All Implemented Interfaces:
Serializable, PropertyMap

public class AnnotatedElementMap
extends BaseMap
implements PropertyMap, Serializable

The AnnotatedElementMap represents a read-only PropertyMap where property values are derived from Java 5.0 (JSR-175) annotations.

See Also:
Serialized Form

Constructor Summary
AnnotatedElementMap(AnnotatedElement annotElem)
          Creates a new PropertyMap that is initialized based upon the type and annotations associated with an AnnotatedElement.
 
Method Summary
 boolean containsPropertySet(Class<? extends Annotation> propertySet)
          Returns true if the PropertyMap contains one or more values for the specified PropertySet, false otherwise
 AnnotatedElement getAnnotatedElement()
          Returns the AnnotatedElement used for PropertyMap values.
 Object getProperty(PropertyKey key)
          Returns the property value specified by 'key' within this map.
 void setProperty(PropertyKey key, Object value)
          Sets the property specifed by 'key' within this map.
 
Methods inherited from class BaseMap
getDelegateMap, getMapClass, getPropertySet, isValidKey, setDelegateMap, setMapClass
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface PropertyMap
getDelegateMap, getMapClass, getPropertySet, setDelegateMap
 

Constructor Detail

AnnotatedElementMap

public AnnotatedElementMap(AnnotatedElement annotElem)
Creates a new PropertyMap that is initialized based upon the type and annotations associated with an AnnotatedElement.

Method Detail

setProperty

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

Specified by:
setProperty in interface PropertyMap

getProperty

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

Specified by:
getProperty in interface PropertyMap
Overrides:
getProperty in class BaseMap

containsPropertySet

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

Specified by:
containsPropertySet in interface PropertyMap
Overrides:
containsPropertySet in class BaseMap

getAnnotatedElement

public AnnotatedElement getAnnotatedElement()
Returns the AnnotatedElement used for PropertyMap values.