Package eu.clarin.sru.client.fcs
Enum DataViewLex.FieldType
- java.lang.Object
-
- java.lang.Enum<DataViewLex.FieldType>
-
- eu.clarin.sru.client.fcs.DataViewLex.FieldType
-
- All Implemented Interfaces:
Serializable,Comparable<DataViewLex.FieldType>
- Enclosing class:
- DataViewLex
public static enum DataViewLex.FieldType extends Enum<DataViewLex.FieldType>
All validtypevalues for the<Field/>element of an Lex Data View<Entry/>.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANTONYMBASEFORMCASECITATIONDEFINITIONDEGREEENTRY_IDETYMOLOGYFREQUENCYGENDERGRAMMARHOLONYMHYPERNYMHYPONYMLEMMAMERONYMMOODNUMBERPHONETICPOSREFRELATEDSEGMENTATIONSENSEREFSENTIMENTSYNONYMTENSETRANSCRIPTIONTRANSLATION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataViewLex.FieldTypefromString(String type)Retrive the enum value for a given type string.StringgetType()static DataViewLex.FieldTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DataViewLex.FieldType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENTRY_ID
public static final DataViewLex.FieldType ENTRY_ID
-
LEMMA
public static final DataViewLex.FieldType LEMMA
-
PHONETIC
public static final DataViewLex.FieldType PHONETIC
-
TRANSCRIPTION
public static final DataViewLex.FieldType TRANSCRIPTION
-
TRANSLATION
public static final DataViewLex.FieldType TRANSLATION
-
DEFINITION
public static final DataViewLex.FieldType DEFINITION
-
ETYMOLOGY
public static final DataViewLex.FieldType ETYMOLOGY
-
GRAMMAR
public static final DataViewLex.FieldType GRAMMAR
-
CASE
public static final DataViewLex.FieldType CASE
-
DEGREE
public static final DataViewLex.FieldType DEGREE
-
GENDER
public static final DataViewLex.FieldType GENDER
-
MOOD
public static final DataViewLex.FieldType MOOD
-
NUMBER
public static final DataViewLex.FieldType NUMBER
-
POS
public static final DataViewLex.FieldType POS
-
TENSE
public static final DataViewLex.FieldType TENSE
-
BASEFORM
public static final DataViewLex.FieldType BASEFORM
-
SEGMENTATION
public static final DataViewLex.FieldType SEGMENTATION
-
SENTIMENT
public static final DataViewLex.FieldType SENTIMENT
-
FREQUENCY
public static final DataViewLex.FieldType FREQUENCY
-
ANTONYM
public static final DataViewLex.FieldType ANTONYM
-
HOLONYM
public static final DataViewLex.FieldType HOLONYM
-
HYPERNYM
public static final DataViewLex.FieldType HYPERNYM
-
HYPONYM
public static final DataViewLex.FieldType HYPONYM
-
MERONYM
public static final DataViewLex.FieldType MERONYM
-
SYNONYM
public static final DataViewLex.FieldType SYNONYM
-
RELATED
public static final DataViewLex.FieldType RELATED
-
REF
public static final DataViewLex.FieldType REF
-
SENSEREF
public static final DataViewLex.FieldType SENSEREF
-
CITATION
public static final DataViewLex.FieldType CITATION
-
-
Method Detail
-
values
public static DataViewLex.FieldType[] 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 (DataViewLex.FieldType c : DataViewLex.FieldType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataViewLex.FieldType 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
-
getType
public String getType()
-
fromString
public static DataViewLex.FieldType fromString(String type)
Retrive the enum value for a given type string. Is case-sensitive.- Parameters:
type- string type value of an enum value- Returns:
- corresponding enum value
- Throws:
IllegalArgumentException- iftypeparameter does not specify a known enum value
-
-