Class TravelDocumentValidator.Validator

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

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

    • Validator

      public Validator(TravelDocumentValidator.Type t, String cc, int maxLength, String regex, CheckDigit routine)
      Creates the validator.
      Parameters:
      t - the ICAO document type
      cc - the ICAO country code
      maxLength - the max length of the codument number for the country
      regex - the regex to use to check the format.
      routine - the Check Digit routine
  • Method Details

    • getRegexValidator

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