Interface Tag

    • Method Detail

      • getId

        String getId()
        Get the tag unique id.
        Returns:
        The unique id
      • getName

        String getName()
        Get the tag name.
        Returns:
        The tag name
      • getParent

        <T extends Tag> T getParent()
        Get the parent tag
        Type Parameters:
        T - the tag class
        Returns:
        The parent tag or null if the tag has no parent.
      • addTag

        void addTag​(Tag tag)
        Add a new child tag.
        Parameters:
        tag - The tag to add
      • setTags

        void setTags​(Map<String,​? extends Tag> tags)
        Set the child tags
        Parameters:
        tags - The Map of Tag to set
      • getTags

        Map<String,​? extends TaggetTags()
        Retrieves the Set of child tags
        Returns:
        The child tags in a Map
      • getTag

        <T extends Tag> T getTag​(String tagId)
        Try to get a child tag by its id
        Type Parameters:
        T - the tag class
        Parameters:
        tagId - The id of the child tag
        Returns:
        The child tag or null if not existing
      • hasTag

        boolean hasTag​(String tagId)
        Determines if a tag exists
        Parameters:
        tagId - The tag id
        Returns:
        true if the tag exists