Enum Usage

java.lang.Object
java.lang.Enum<Usage>
it.uniroma1.lcl.babelnet.data.Usage
All Implemented Interfaces:
Tag<Usage>, Serializable, Comparable<Usage>, java.lang.constant.Constable

public enum Usage extends Enum<Usage> implements Tag<Usage>
Enumeration describing usage information
  • Enum Constant Details

    • KEY_CONCEPT

      public static final Usage KEY_CONCEPT
    • COLOR

      public static final Usage COLOR
    • RARE

      public static final Usage RARE
    • ARCHAIC

      public static final Usage ARCHAIC
    • OFFENSIVE

      public static final Usage OFFENSIVE
    • CULTURAL

      public static final Usage CULTURAL
    • DEROGATORY

      public static final Usage DEROGATORY
    • SEXUAL

      public static final Usage SEXUAL
    • VIOLENCE

      public static final Usage VIOLENCE
    • VULGAR

      public static final Usage VULGAR
    • NETSPEAK

      public static final Usage NETSPEAK
    • PREFIX

      public static final Usage PREFIX
  • Method Details

    • values

      public static Usage[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Usage valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

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