Class DriverLicenseDEValidator
java.lang.Object
org.apache.commons.validator.routines.DriverLicenseDEValidator
- All Implemented Interfaces:
Serializable
German Driver License Number validation.
The alphanumeric code is a unique identification used on Driver License Cards.
Check digit calculation is based on modulus 11 and can have a value of "X".
For further information see Wikipedia (de).
- Since:
- 2.10.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DriverLicenseDEValidatorGets the singleton instance of this validator.booleanTests whether the code is a valid driver card number.Checks the code is valid IMO number.
-
Method Details
-
getInstance
Gets the singleton instance of this validator.- Returns:
- A singleton instance of the Card Number validator.
-
isValid
Tests whether the code is a valid driver card number.- Parameters:
code- The code to validate.- Returns:
trueif a valid number, otherwisefalse.
-
validate
Checks the code is valid IMO number.- Parameters:
code- The code to validate.- Returns:
- A IMO number code with prefix removed if valid, otherwise
null.
-