Class Attributes

  • All Implemented Interfaces:
    IAttributes

    public class Attributes
    extends java.lang.Object
    implements IAttributes
    Simple implementation of IAttributes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Attributes()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String name)  
      java.util.Set<java.lang.String> getAttributeNames()  
      java.lang.Object removeAttribute​(java.lang.String name)
      Remove the attribute
      void setAttribute​(java.lang.String name, java.lang.Object value)
      Set a custom attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Attributes

        public Attributes()
    • Method Detail

      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface IAttributes
        Parameters:
        name - The name of the attribute to return
      • getAttributeNames

        public java.util.Set<java.lang.String> getAttributeNames()
        Specified by:
        getAttributeNames in interface IAttributes
        Returns:
        all the attributes names.
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Description copied from interface: IAttributes
        Set a custom attribute.
        Specified by:
        setAttribute in interface IAttributes
      • removeAttribute

        public java.lang.Object removeAttribute​(java.lang.String name)
        Description copied from interface: IAttributes
        Remove the attribute
        Specified by:
        removeAttribute in interface IAttributes
        Returns:
        the attribute value if found, null otherwise