public enum StringPreparations extends java.lang.Enum<StringPreparations> implements StringPreparation
Enum Constant and Description |
---|
NO_PREPARATION
Implementation of StringPreparation that performs no preparation.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
doNormalize(java.lang.String value) |
java.lang.String |
normalize(java.lang.String value)
Normalize a UTF-8 String according to this String Preparation rules.
|
static StringPreparations |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StringPreparations[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringPreparations NO_PREPARATION
public static StringPreparations[] values()
for (StringPreparations c : StringPreparations.values()) System.out.println(c);
public static StringPreparations valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprotected abstract java.lang.String doNormalize(java.lang.String value) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String normalize(java.lang.String value) throws java.lang.IllegalArgumentException
StringPreparation
normalize
in interface StringPreparation
value
- The String to preparejava.lang.IllegalArgumentException
- If the String to prepare is not valid.