Class IBANValidator.Validator
- java.lang.Object
-
- org.apache.commons.validator.routines.IBANValidator.Validator
-
- Enclosing class:
- IBANValidator
public static class IBANValidator.Validator extends java.lang.Object
The validation class
-
-
Constructor Summary
Constructors Constructor Description Validator(java.lang.String countryCode, int ibanLength, java.lang.String regexWithCC)Creates the validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIbanLength()Gets the length.RegexValidatorgetRegexValidator()Gets the RegexValidator.
-
-
-
Constructor Detail
-
Validator
public Validator(java.lang.String countryCode, int ibanLength, java.lang.String regexWithCC)
Creates the validator.- Parameters:
countryCode- the country codeibanLength- the length of the IBANregexWithCC- the regex to use to check the format, the regex MUST start with the country code.
-
-
Method Detail
-
getIbanLength
public int getIbanLength()
Gets the length.- Returns:
- the length.
- Since:
- 1.10.0
-
getRegexValidator
public RegexValidator getRegexValidator()
Gets the RegexValidator.- Returns:
- the RegexValidator.
- Since:
- 1.8
-
-