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

private static enum HunspellDictionary.FlagMode extends Enum<HunspellDictionary.FlagMode>
The flag encodings a dictionary may declare with the FLAG directive.
  • Enum Constant Details

    • CHAR

      public static final HunspellDictionary.FlagMode CHAR
      The default: each single character is one flag. Also what FLAG UTF-8 declares, which asks for single-character flags in a file the SET declaration already had decoded.
    • LONG

      public static final HunspellDictionary.FlagMode LONG
      Declared as FLAG long: each pair of characters is one flag.
    • NUM

      public static final HunspellDictionary.FlagMode NUM
      Declared as FLAG num: comma-separated decimal numbers are flags.
  • Constructor Details

    • FlagMode

      private FlagMode()
  • Method Details

    • values

      public static HunspellDictionary.FlagMode[] 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

      public static HunspellDictionary.FlagMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null