Enum Class KorRRN.ValidateCheckDigit
java.lang.Object
java.lang.Enum<KorRRN.ValidateCheckDigit>
org.hibernate.validator.constraints.kor.KorRRN.ValidateCheckDigit
- All Implemented Interfaces:
Serializable,Comparable<KorRRN.ValidateCheckDigit>,Constable
- Enclosing class:
KorRRN
Defines the validation rules this constraint applies to the Korean resident registration number.
Each type specifies which particular checks will be applied.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPerform the checks on: The length of an RRN The validity of the Gender-Digit in an RRN The validity of the date in an RRN The Validity of check-digit in RRNPerform the checks on: The length of an RRN The validity of the Gender-Digit in an RRN The validity of the date in an RRN -
Method Summary
Modifier and TypeMethodDescriptionstatic KorRRN.ValidateCheckDigitReturns the enum constant of this class with the specified name.static KorRRN.ValidateCheckDigit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Perform the checks on:- The length of an RRN
- The validity of the Gender-Digit in an RRN
- The validity of the date in an RRN
-
ALWAYS
Perform the checks on:- The length of an RRN
- The validity of the Gender-Digit in an RRN
- The validity of the date in an RRN
- The Validity of check-digit in RRN
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-