Class VATidLUCheckDigit

All Implemented Interfaces:
Serializable, CheckDigit, IsoIecConstants

public final class VATidLUCheckDigit extends Modulus31CheckDigit
Luxembourg VAT identification number (VATIN) Check Digit calculation/validation.

Numéro d'identification à la taxe sur la valeur ajoutée 123456pp.

The check digits are calculated as MOD 89

See Wikipedia - VAT IN for more details.

Since:
1.10.0
See Also:
  • Method Details

    • getInstance

      public static CheckDigit getInstance()
      Gets the singleton instance of this validator.
      Returns:
      A singleton instance of the class.
    • getCheckdigitLength

      protected int getCheckdigitLength()
      Overrides:
      getCheckdigitLength in class ModulusCheckDigit
    • toCheckDigit

      protected String toCheckDigit(int charValue) throws CheckDigitException
      Convert an integer value to a check digit.

      Note: this implementation only handles single-digit numeric values For non-numeric characters, override this method to provide integer-->character conversion.

      Override to map charValue to alphanumerics.

      Override to handle charValues between 0 and 88.

      Overrides:
      toCheckDigit in class Modulus31CheckDigit
      Parameters:
      charValue - The integer value of the character
      Returns:
      The converted character
      Throws:
      CheckDigitException - if integer character value doesn't represent a numeric character