Package org.egothor.stemmer
Enum Class CaseProcessingMode
- All Implemented Interfaces:
Serializable,Comparable<CaseProcessingMode>,Constable
Defines how dictionary items are normalized with respect to letter casing.
The mode is applied while parsing dictionary sources and can be persisted in trie metadata so that compiled artifacts remain self-describing.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPreserves input character casing exactly as provided by the dictionary source.Normalizes all dictionary content to lower case usingLocale.ROOT. -
Method Summary
Modifier and TypeMethodDescriptionstatic CaseProcessingModeReturns the enum constant of this class with the specified name.static CaseProcessingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AS_IS
Preserves input character casing exactly as provided by the dictionary source. -
LOWERCASE_WITH_LOCALE_ROOT
Normalizes all dictionary content to lower case usingLocale.ROOT.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-