Package de.intarsys.tools.attribute
Interface IAttributeSupport
- All Known Implementing Classes:
AttributeMap
,FunctorFieldHandler
,FunctorMethodHandler
public interface IAttributeSupport
This interface declares support for "generic attributes".
This means the object implementing this interface may be extended transparently by its clients with name/value pairs. These attributes and their values are stored but not interpreted by the object that implements this interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(Object key) Get an attribute value from the contextremoveAttribute
(Object key) Remove an attribute binding in the contextsetAttribute
(Object key, Object value) Set the value of an attribute in the context
-
Method Details
-
getAttribute
Get an attribute value from the context- Parameters:
key
- the name of the attribute to get- Returns:
- The value of the attribute
key
-
removeAttribute
Remove an attribute binding in the context- Parameters:
key
- the name of the attribute to remove- Returns:
- The previously associated value for
key
-
setAttribute
Set the value of an attribute in the context- Parameters:
key
- the name of the attribute to setvalue
- the new value the attribute- Returns:
- The previously associated value for
key
-