Class TagInfo

    • Field Detail

      • m_Name

        protected String m_Name
        the name.
      • m_Information

        protected String m_Information
        the information.
      • m_DataType

        protected TagDataType m_DataType
        the data type.
      • m_AppliesTo

        protected Class[] m_AppliesTo
        the classes this tag applies to.
    • Constructor Detail

      • TagInfo

        public TagInfo​(String name,
                       String info,
                       TagDataType dataType,
                       Class[] appliesTo)
        Initializes the tag.
        Parameters:
        name - the name, ie., the string to use when tagging an object
        info - the help text
        dataType - the data type
        appliesTo - the classes this tag applies to
    • Method Detail

      • getName

        public String getName()
        Returns the name of the tag.
        Returns:
        the name
      • getInformation

        public String getInformation()
        Returns the help for the tag.
        Returns:
        the help text
      • getDataType

        public TagDataType getDataType()
        Returns the data type of the tag.
        Returns:
        the data type
      • getAppliesTo

        public Class[] getAppliesTo()
        Returns the classes that this tag applies to.
        Returns:
        the classes
      • compareTo

        public int compareTo​(TagInfo o)
        Simply compares the names of the tags.
        Specified by:
        compareTo in interface Comparable<TagInfo>
        Parameters:
        o - the other tag to compare with
        Returns:
        less than 0, equal to 0 or greater than 0 if this name is less than, equal to or greater than the other one
      • equals

        public boolean equals​(Object obj)
        Checks whether to the objects are identical.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare with
        Returns:
        true if the same (ie name)
      • hashCode

        public int hashCode()
        Returns the hashcode of the tag (ie name).
        Overrides:
        hashCode in class Object
        Returns:
        the hashcode
      • toString

        public String toString()
        Returns a short description of the tag.
        Overrides:
        toString in class Object
        Returns:
        the description