Class AbstractOrganizableObject

    • Constructor Detail

      • AbstractOrganizableObject

        public AbstractOrganizableObject()
    • Method Detail

      • getAttributes

        public Map<String,​String> getAttributes()
        Returns:
        the attributes that identify this object's instance
      • setAttributes

        public void setAttributes​(Map<String,​String> attributes)
        Sets the attributes used to identify this object's instance
        Parameters:
        attributes - the object's attributes as key-value pairs
      • addAttribute

        public void addAttribute​(String key,
                                 String value)
        Add an attribute to the attribute. This will initialize the map if it is null This method is not thread safe
        Parameters:
        key - the name of the attribute
        value - the value
      • hasAttribute

        public boolean hasAttribute​(String key)