Interface Taggable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean containsTag​(java.lang.String tag)
      Returns true if there is a tag with key tag associated with this object.
      void deleteAllTags()
      Remove all tags from this object.
      java.lang.String getTag​(java.lang.String tag)
      Return the value of the tag with key tag from this object.
      java.util.Map<java.lang.String,​java.lang.String> getTagMap()
      Returns a Map containing all tags and their values associated with this object.
      boolean hasTags()
      Returns true if there are any tags associated with this object.
      java.lang.String putTag​(java.lang.String tag, java.lang.String value)
      Add a tag with key tag and value value to this object.
      java.lang.String removeTag​(java.lang.String tag)
      Removes the value for the key tag from this object.
    • Method Detail

      • hasTags

        boolean hasTags()
        Returns true if there are any tags associated with this object.
      • containsTag

        boolean containsTag​(java.lang.String tag)
        Returns true if there is a tag with key tag associated with this object.
        Parameters:
        tag -
      • putTag

        java.lang.String putTag​(java.lang.String tag,
                                java.lang.String value)
        Add a tag with key tag and value value to this object.
        Parameters:
        tag -
        value -
      • getTag

        java.lang.String getTag​(java.lang.String tag)
        Return the value of the tag with key tag from this object.
        Parameters:
        tag -
        Returns:
        The value of the tag tag or null if no such tag exists.
      • removeTag

        java.lang.String removeTag​(java.lang.String tag)
        Removes the value for the key tag from this object.
        Parameters:
        tag -
      • deleteAllTags

        void deleteAllTags()
        Remove all tags from this object.
      • getTagMap

        java.util.Map<java.lang.String,​java.lang.String> getTagMap()
        Returns a Map containing all tags and their values associated with this object.