Package org.passay.data
Enum EnglishCharacterData
- All Implemented Interfaces:
Serializable,Comparable<EnglishCharacterData>,CharacterData
English language character data.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlphabetical characters (upper and lower case).Digit characters.Lower case characters.Special characters.Special ascii characters.Special latin characters.Special unicode characters.Upper case characters. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEnglishCharacterData(String code, String charString) Creates a new english character data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the characters.Return the error code used for message resolution.static EnglishCharacterDataReturns the enum constant of this type with the specified name.static EnglishCharacterData[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LowerCase
Lower case characters. -
UpperCase
Upper case characters. -
Digit
Digit characters. -
Alphabetical
Alphabetical characters (upper and lower case). -
SpecialAscii
Special ascii characters. -
SpecialUnicode
Special unicode characters. -
SpecialLatin
Special latin characters. -
Special
Special characters.
-
-
Field Details
-
errorCode
Error code. -
characters
Characters.
-
-
Constructor Details
-
EnglishCharacterData
Creates a new english character data.- Parameters:
code- Error code.charString- Characters as string.
-
-
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
-
getErrorCode
Description copied from interface:CharacterDataReturn the error code used for message resolution.- Specified by:
getErrorCodein interfaceCharacterData- Returns:
- error code
-
getCharacters
Description copied from interface:CharacterDataReturns the characters.- Specified by:
getCharactersin interfaceCharacterData- Returns:
- characters
-