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 CONCEPTA concept is an abstraction or generalization from experienceNAMED_ENTITYNamed Entity is a word that clearly identifies one item.UNKNOWNUnknown.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SynsetTypegetValue()Returns the tag value.StringtoString()static SynsetTypevalueOf(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:
toStringin classEnum<SynsetType>
-
getValue
public SynsetType getValue()
Description copied from interface:TagReturns the tag value.- Specified by:
getValuein interfaceTag<SynsetType>- Returns:
- the tag value
-
-