Package opennlp.tools.stemmer.hunspell
Enum Class HunspellDictionary.FlagMode
java.lang.Object
java.lang.Enum<HunspellDictionary.FlagMode>
opennlp.tools.stemmer.hunspell.HunspellDictionary.FlagMode
- All Implemented Interfaces:
Serializable,Comparable<HunspellDictionary.FlagMode>,Constable
- Enclosing class:
HunspellDictionary
The flag encodings a dictionary may declare with the
FLAG directive.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HunspellDictionary.FlagModeReturns the enum constant of this class with the specified name.static HunspellDictionary.FlagMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAR
The default: each single character is one flag. Also whatFLAG UTF-8declares, which asks for single-character flags in a file theSETdeclaration already had decoded. -
LONG
Declared asFLAG long: each pair of characters is one flag. -
NUM
Declared asFLAG num: comma-separated decimal numbers are flags.
-
-
Constructor Details
-
FlagMode
private FlagMode()
-
-
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
-