| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| private final Mod11CheckValidator | |
| private final Mod11CheckValidator | |
| private final Mod11CheckValidator | |
| private final Mod11CheckValidator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(CNPJ
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(CharSequence
object to validate value, ConstraintValidatorContext context in which the constraint is evaluated context)Implements jakarta. |
| DIGITS_ONLY | back to summary |
|---|---|
| private static final Pattern DIGITS_ONLY | |
| withoutSeparatorMod11Validator1 | back to summary |
|---|---|
| private final Mod11CheckValidator withoutSeparatorMod11Validator1 | |
| withoutSeparatorMod11Validator2 | back to summary |
|---|---|
| private final Mod11CheckValidator withoutSeparatorMod11Validator2 | |
| withSeparatorMod11Validator1 | back to summary |
|---|---|
| private final Mod11CheckValidator withSeparatorMod11Validator1 | |
| withSeparatorMod11Validator2 | back to summary |
|---|---|
| private final Mod11CheckValidator withSeparatorMod11Validator2 | |
| CNPJValidator | back to summary |
|---|---|
| public CNPJValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(CNPJ constraintAnnotation) Overrides default jakarta. Doc from jakarta. Initializes the validator in preparation for
This method is guaranteed to be called before any use of this instance for validation. The default implementation is a no-op. | |
| isValid | back to summary |
|---|---|
| public boolean isValid(CharSequence value, ConstraintValidatorContext context) Implements jakarta. Doc from jakarta. Implements the validation logic.
The state of This method can be accessed concurrently, thread-safety must be ensured by the implementation.
| |