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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.Object key)
      Get an attribute value from the context
      java.lang.Object removeAttribute​(java.lang.Object key)
      Remove an attribute binding in the context
      java.lang.Object setAttribute​(java.lang.Object key, java.lang.Object value)
      Set the value of an attribute in the context
    • Method Detail

      • getAttribute

        java.lang.Object getAttribute​(java.lang.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

        java.lang.Object removeAttribute​(java.lang.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

        java.lang.Object setAttribute​(java.lang.Object key,
                                      java.lang.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