Class LabelTag

java.lang.Object
it.uniroma1.lcl.babelnet.data.LabelTag
All Implemented Interfaces:
Tag<String>

public class LabelTag extends Object implements Tag<String>
A label tag associated to a BabelSynset.
  • Constructor Details

    • LabelTag

      public LabelTag(it.uniroma1.lcl.jlt.util.Language language, String label)
      Creates a new instance of LabelTag.
      Parameters:
      language - the language of the tag
      label - the label tag
  • Method Details

    • getValue

      public String getValue()
      Description copied from interface: Tag
      Returns the tag value.
      Specified by:
      getValue in interface Tag<String>
      Returns:
      the tag value
    • getLanguage

      public it.uniroma1.lcl.jlt.util.Language getLanguage()
      Gets the language of this LabelTag.
      Returns:
      the language of this LabelTag.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object