Package it.uniroma1.lcl.babelnet.data
Enum Usage
- java.lang.Object
-
- java.lang.Enum<Usage>
-
- it.uniroma1.lcl.babelnet.data.Usage
-
- All Implemented Interfaces:
Tag<Usage>
,Serializable
,Comparable<Usage>
public enum Usage extends Enum<Usage> implements Tag<Usage>
Enumeration describing usage information
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Usage
getValue()
Returns the tag value.static Usage
valueOf(String name)
Returns the enum constant of this type with the specified name.static Usage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static Usage[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Usage c : Usage.values()) System.out.println(c);
- 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 nameNullPointerException
- if the argument is null
-
-