Package com.gengoai

Class StringTag

  • All Implemented Interfaces:
    Tag, Serializable

    public class StringTag
    extends Object
    implements Tag, Serializable

    A tag which is represented as a string. Care must be taken in that different string variations will represent different tags.

    Author:
    David B. Bracewell
    See Also:
    Serialized Form
    • Constructor Detail

      • StringTag

        public StringTag​(String tag)
        Default Constructor
        Parameters:
        tag - The tag name
    • Method Detail

      • isInstance

        public boolean isInstance​(Tag tag)
        Description copied from interface: Tag
        Determines if this tag is an instance of a given tag.
        Specified by:
        isInstance in interface Tag
        Parameters:
        tag - The given tag to check if this one is an instance of
        Returns:
        True if this tag is an instance of the given tag
      • name

        public String name()
        Description copied from interface: Tag
        The name of the tag.
        Specified by:
        name in interface Tag
        Returns:
        The name of the tag