Interface AttributesInterface


  • public interface AttributesInterface
    • Method Detail

      • setAttributesMap

        void setAttributesMap​(Map<String,​Map<String,​String>> attributesMap)
        Pass a map of group attributes
        Parameters:
        attributesMap - The map of group attributes
      • getAttributesMap

        Map<String,​Map<String,​String>> getAttributesMap()
        Returns:
        All attributes for all attribute groups in one single map.
      • setAttributes

        void setAttributes​(String groupName,
                           Map<String,​String> attributes)
        Add a map of attributes to an attribute group.
        Parameters:
        groupName - The group to add the attributes to
        attributes - the attributes to add
      • setAttribute

        void setAttribute​(String groupName,
                          String key,
                          String value)
        Add an attribute to an attribute group
        Parameters:
        groupName - The group to add the attribute to
        key - The key of the attribute
        value - the value of the attribute
      • getAttributes

        Map<String,​String> getAttributes​(String groupName)
        Get an attributes map for a group
        Parameters:
        groupName - The name of the attributes group to retrieve
        Returns:
        The map representing the attributes group
      • getAttribute

        String getAttribute​(String groupName,
                            String key)
        Get a value for an attribute in an attribute group
        Parameters:
        groupName - The group to get the attribute from
        key - The attribute key
        Returns:
        The attribute value of null if the group of key doesn't exist