Enum PhoneticEncoder
- All Implemented Interfaces:
Serializable,Comparable<PhoneticEncoder>,java.lang.constant.Constable
Identifies the type of phonetic encoder to use with a PhoneticTokenFilter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEncodes a token into a Beider-Morse value.Encodes a token into a Caverphone 1.0 value.Encodes a token into a Caverphone 2.0 value.Encodes a token into a Cologne Phonetic value.Encodes a token into a double metaphone value.Encodes a token using the Haase refinement of the Kölner Phonetik algorithm.Encodes a token using the Kölner Phonetik algorithm.Encodes a token into a Metaphone value.Encodes a token into a NYSIIS value.Encodes a token into a Refined Soundex value.Encodes a token into a Soundex value. -
Method Summary
Modifier and TypeMethodDescriptionstatic PhoneticEncoderfromString(String value) Parses a serialized value to a PhoneticEncoder instance.toString()static PhoneticEncoderReturns the enum constant of this type with the specified name.static PhoneticEncoder[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METAPHONE
Encodes a token into a Metaphone value. -
DOUBLE_METAPHONE
Encodes a token into a double metaphone value. -
SOUNDEX
Encodes a token into a Soundex value. -
REFINED_SOUNDEX
Encodes a token into a Refined Soundex value. -
CAVERPHONE1
Encodes a token into a Caverphone 1.0 value. -
CAVERPHONE2
Encodes a token into a Caverphone 2.0 value. -
COLOGNE
Encodes a token into a Cologne Phonetic value. -
NYSIIS
Encodes a token into a NYSIIS value. -
KOELNER_PHONETIK
Encodes a token using the Kölner Phonetik algorithm. -
HAASE_PHONETIK
Encodes a token using the Haase refinement of the Kölner Phonetik algorithm. -
BEIDER_MORSE
Encodes a token into a Beider-Morse value.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Parses a serialized value to a PhoneticEncoder instance.- Parameters:
value- the serialized value to parse.- Returns:
- the parsed PhoneticEncoder object, or null if unable to parse.
-
toString
- Overrides:
toStringin classEnum<PhoneticEncoder>
-