Class VATINValidator.Validator

java.lang.Object
org.apache.commons.validator.routines.VATINValidator.Validator
Enclosing class:
VATINValidator

public static class VATINValidator.Validator extends Object
The validation class
  • Constructor Details

    • Validator

      public Validator(String cc, int maxLength, String regex, CheckDigit routine)
      Creates the validator.
      Parameters:
      cc - the country code
      maxLength - the max length of the VATIN including country code
      regex - the regex to use to check the format, MUST start with the country code.
      routine - the Check Digit routine
  • Method Details

    • getRegexValidator

      public RegexValidator getRegexValidator()
      Gets the RegexValidator.
      Returns:
      the RegexValidator.