Class TravelDocumentValidator.Validator
java.lang.Object
org.apache.commons.validator.routines.TravelDocumentValidator.Validator
- Enclosing class:
- TravelDocumentValidator
The validation class
-
Constructor Summary
ConstructorsConstructorDescriptionValidator(TravelDocumentValidator.Type t, String cc, int maxLength, String regex, CheckDigit routine) Creates the validator. -
Method Summary
-
Constructor Details
-
Validator
public Validator(TravelDocumentValidator.Type t, String cc, int maxLength, String regex, CheckDigit routine) Creates the validator.- Parameters:
t- the ICAO document typecc- the ICAO country codemaxLength- the max length of the codument number for the countryregex- the regex to use to check the format.routine- the Check Digit routine
-
-
Method Details
-
getRegexValidator
Gets the RegexValidator.- Returns:
- the RegexValidator.
-