Package com.yahoo.language
Enum Linguistics.Component
- java.lang.Object
-
- java.lang.Enum<Linguistics.Component>
-
- com.yahoo.language.Linguistics.Component
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Linguistics.Component>
- Enclosing interface:
- Linguistics
public static enum Linguistics.Component extends java.lang.Enum<Linguistics.Component>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARACTER_CLASSES
DETECTOR
GRAM_SPLITTER
NORMALIZER
SEGMENTER
STEMMER
TOKENIZER
TRANSFORMER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Linguistics.Component
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Linguistics.Component[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STEMMER
public static final Linguistics.Component STEMMER
-
TOKENIZER
public static final Linguistics.Component TOKENIZER
-
NORMALIZER
public static final Linguistics.Component NORMALIZER
-
TRANSFORMER
public static final Linguistics.Component TRANSFORMER
-
SEGMENTER
public static final Linguistics.Component SEGMENTER
-
DETECTOR
public static final Linguistics.Component DETECTOR
-
GRAM_SPLITTER
public static final Linguistics.Component GRAM_SPLITTER
-
CHARACTER_CLASSES
public static final Linguistics.Component CHARACTER_CLASSES
-
-
Method Detail
-
values
public static Linguistics.Component[] 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 (Linguistics.Component c : Linguistics.Component.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Linguistics.Component valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-