Class TidVATidSKCheckDigi

All Implemented Interfaces:
Serializable, CheckDigit, IsoIecConstants

public final class TidVATidSKCheckDigi extends Modulus31CheckDigit
Slovakian TIN and VAT identification number (VATIN) Check Digit calculation/validation.

Daňové identifikačné číslo (DIČ) is the TIN. Identifikačné číslo pre daň z pridanej hodnoty (IČ DPH). The IČ DPH is a 10-digit number used for VAT purposes. It has a straightforward checksum.

See Wikipedia - TIN or Wikipedia - VATIN 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()

      Override because there is no checkdigit.

      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 because charValue 0 is the only valid check digit value and there is no checkdigit.

      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