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

public static enum KorRRN.ValidateCheckDigit extends Enum<KorRRN.ValidateCheckDigit>
Defines the validation rules this constraint applies to the Korean resident registration number.

Each type specifies which particular checks will be applied.

  • Enum Constant Details

    • NEVER

      public static final KorRRN.ValidateCheckDigit 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

      public static final KorRRN.ValidateCheckDigit 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

      public static KorRRN.ValidateCheckDigit[] 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 KorRRN.ValidateCheckDigit 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