Class VATidSICheckDigit

All Implemented Interfaces:
Serializable, CheckDigit

public final class VATidSICheckDigit extends Modulus11iWeightCheckDigit
Slovenian TIN and VAT identification number (VATIN) Check Digit calculation/validation.

davčna številka (DDV)

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.
    • 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 handle charValue 10.

      Override because charValue 0 is an invalid check digit value and X is mapped to 0.

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