Enum Class CaseProcessingMode

java.lang.Object
java.lang.Enum<CaseProcessingMode>
org.egothor.stemmer.CaseProcessingMode
All Implemented Interfaces:
Serializable, Comparable<CaseProcessingMode>, Constable

public enum CaseProcessingMode extends Enum<CaseProcessingMode>
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.

  • Enum Constant Details

    • AS_IS

      public static final CaseProcessingMode AS_IS
      Preserves input character casing exactly as provided by the dictionary source.
    • LOWERCASE_WITH_LOCALE_ROOT

      public static final CaseProcessingMode LOWERCASE_WITH_LOCALE_ROOT
      Normalizes all dictionary content to lower case using Locale.ROOT.
  • Method Details

    • values

      public static CaseProcessingMode[] 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 CaseProcessingMode 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