- All Implemented Interfaces:
- javax.validation.ConstraintValidator<T,java.lang.CharSequence>
- Direct Known Subclasses:
- NIPValidator, REGONValidator
public abstract class PolishNumberValidator<T extends java.lang.annotation.Annotation>
extends ModCheckBase
implements javax.validation.ConstraintValidator<T,java.lang.CharSequence>
A base class validator for different Polish identification numbers. They differs in the lengths and weights used to calculate the mod sum.
In order to implement one you need to provide a method that gives an array of weights
and ConstraintValidator.initialize(Annotation)
methods.
- Author:
- Marko Bekhta