Package it.uniroma1.lcl.babelnet.data
Enum EntityType
- java.lang.Object
-
- java.lang.Enum<EntityType>
-
- it.uniroma1.lcl.babelnet.data.EntityType
-
- All Implemented Interfaces:
Tag<EntityType>
,Serializable
,Comparable<EntityType>
public enum EntityType extends Enum<EntityType> implements Tag<EntityType>
Enumeration describing entity type information
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANIMAL
BIOLOGY
CELESTIAL_BODY
DISEASE
EVENT
FOOD
INSTRUMENT
LOCATION
MEDIA
MONETARY
NUMBER
ORGANIZATION
PERSON
PHYSICAL_PHENOMENON
PLANT
SUPERNATURAL
TIME
VEHICLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityType
getValue()
Returns the tag value.static EntityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANIMAL
public static final EntityType ANIMAL
-
BIOLOGY
public static final EntityType BIOLOGY
-
CELESTIAL_BODY
public static final EntityType CELESTIAL_BODY
-
DISEASE
public static final EntityType DISEASE
-
EVENT
public static final EntityType EVENT
-
FOOD
public static final EntityType FOOD
-
INSTRUMENT
public static final EntityType INSTRUMENT
-
LOCATION
public static final EntityType LOCATION
-
MEDIA
public static final EntityType MEDIA
-
MONETARY
public static final EntityType MONETARY
-
NUMBER
public static final EntityType NUMBER
-
ORGANIZATION
public static final EntityType ORGANIZATION
-
PERSON
public static final EntityType PERSON
-
PHYSICAL_PHENOMENON
public static final EntityType PHYSICAL_PHENOMENON
-
PLANT
public static final EntityType PLANT
-
SUPERNATURAL
public static final EntityType SUPERNATURAL
-
TIME
public static final EntityType TIME
-
VEHICLE
public static final EntityType VEHICLE
-
-
Method Detail
-
values
public static EntityType[] 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 (EntityType c : EntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityType 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
-
getValue
public EntityType getValue()
Description copied from interface:Tag
Returns the tag value.- Specified by:
getValue
in interfaceTag<EntityType>
- Returns:
- the tag value
-
-