intarsys runtime library

de.intarsys.tools.attribute
Interface IAttributeSupport

All Known Implementing Classes:
AttributeMap, BeanPropertiesNode, CommonNode, DeclaredPropertiesNode, FunctorFieldHandler, FunctorMethodHandler, NoneNode, PropertiesNode, PropertyNode

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
 Object getAttribute(Object key)
          Get an attribute value from the context
 Object removeAttribute(Object key)
          Remove an attribute binding in the context
 Object setAttribute(Object key, Object value)
          Set the value of an attribute in the context
 

Method Detail

getAttribute

Object getAttribute(Object key)
Get an attribute value from the context

Parameters:
key - the name of the attribute to get
Returns:
The value of the attribute key

removeAttribute

Object removeAttribute(Object key)
Remove an attribute binding in the context

Parameters:
key - the name of the attribute to remove
Returns:
The previously associated value for key

setAttribute

Object setAttribute(Object key,
                    Object value)
Set the value of an attribute in the context

Parameters:
key - the name of the attribute to set
value - the new value the attribute
Returns:
The previously associated value for key

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.