Package org.icij.datashare.text
Enum NamedEntity.Category
- java.lang.Object
-
- java.lang.Enum<NamedEntity.Category>
-
- org.icij.datashare.text.NamedEntity.Category
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntity.Category>
- Enclosing class:
- NamedEntity
public static enum NamedEntity.Category extends Enum<NamedEntity.Category> implements Serializable
-
-
Field Summary
Fields Modifier and Type Field Description static ThrowingFunction<List<String>,List<NamedEntity.Category>>parseAll
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbbreviation()static NamedEntity.Categoryparse(String entityCategory)static NamedEntity.CategoryvalueOf(String name)Returns the enum constant of this type with the specified name.static NamedEntity.Category[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERSON
public static final NamedEntity.Category PERSON
-
ORGANIZATION
public static final NamedEntity.Category ORGANIZATION
-
LOCATION
public static final NamedEntity.Category LOCATION
-
EMAIL
public static final NamedEntity.Category EMAIL
-
DATE
public static final NamedEntity.Category DATE
-
MONEY
public static final NamedEntity.Category MONEY
-
NUMBER
public static final NamedEntity.Category NUMBER
-
NONE
public static final NamedEntity.Category NONE
-
UNKNOWN
public static final NamedEntity.Category UNKNOWN
-
-
Field Detail
-
parseAll
public static ThrowingFunction<List<String>,List<NamedEntity.Category>> parseAll
-
-
Method Detail
-
values
public static NamedEntity.Category[] 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 (NamedEntity.Category c : NamedEntity.Category.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamedEntity.Category 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
-
getAbbreviation
public String getAbbreviation()
-
parse
public static NamedEntity.Category parse(String entityCategory)
-
-