Class DriverLicenseDEValidator

java.lang.Object
org.apache.commons.validator.routines.DriverLicenseDEValidator
All Implemented Interfaces:
Serializable

public final class DriverLicenseDEValidator extends Object implements 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 Details

    • getInstance

      public static DriverLicenseDEValidator getInstance()
      Gets the singleton instance of this validator.
      Returns:
      A singleton instance of the Card Number validator.
    • isValid

      public boolean isValid(String code)
      Tests whether the code is a valid driver card number.
      Parameters:
      code - The code to validate.
      Returns:
      true if a valid number, otherwise false.
    • validate

      public Object validate(String code)
      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.