public class NIPValidator extends PolishNumberValidator<NIP>
NIP
.Constructor and Description |
---|
NIPValidator() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
getWeights(List<Integer> digits) |
void |
initialize(NIP constraintAnnotation)
Initializes the validator in preparation for
ConstraintValidator.isValid(Object, ConstraintValidatorContext) calls. |
isCheckDigitValid
extractDigit, initialize, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValid
public void initialize(NIP constraintAnnotation)
ConstraintValidator
ConstraintValidator.isValid(Object, ConstraintValidatorContext)
calls.
The constraint annotation for a given constraint declaration
is passed.
This method is guaranteed to be called before any use of this instance for validation.
The default implementation is a no-op.
constraintAnnotation
- annotation instance for a given constraint declarationprotected int[] getWeights(List<Integer> digits)
getWeights
in class PolishNumberValidator<NIP>
Copyright © 2018 JBoss by Red Hat. All rights reserved.