Package it.uniroma1.lcl.kb
Enum SynsetType
- java.lang.Object
-
- java.lang.Enum<SynsetType>
-
- it.uniroma1.lcl.kb.SynsetType
-
- All Implemented Interfaces:
Tag<SynsetType>
,Serializable
,Comparable<SynsetType>
public enum SynsetType extends Enum<SynsetType> implements Tag<SynsetType>
A kind ofSynset
-- namely, named entity, concept or unknown.- Author:
- navigli
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONCEPT
A concept is an abstraction or generalization from experienceNAMED_ENTITY
Named Entity is a word that clearly identifies one item.UNKNOWN
Unknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SynsetType
getValue()
Returns the tag value.String
toString()
static SynsetType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SynsetType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAMED_ENTITY
public static final SynsetType NAMED_ENTITY
Named Entity is a word that clearly identifies one item.
-
CONCEPT
public static final SynsetType CONCEPT
A concept is an abstraction or generalization from experience
-
UNKNOWN
public static final SynsetType UNKNOWN
Unknown.
-
-
Method Detail
-
values
public static SynsetType[] 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 (SynsetType c : SynsetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SynsetType 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<SynsetType>
-
getValue
public SynsetType getValue()
Description copied from interface:Tag
Returns the tag value.- Specified by:
getValue
in interfaceTag<SynsetType>
- Returns:
- the tag value
-
-