| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Length
annotation instance for a given constraint declaration parameters)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(CharSequence
object to validate value, ConstraintValidatorContext context in which the constraint is evaluated constraintValidatorContext)Implements jakarta. |
| private void |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| max | back to summary |
|---|---|
| private int max | |
| min | back to summary |
|---|---|
| private int min | |
| LengthValidator | back to summary |
|---|---|
| public LengthValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(Length parameters) 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 constraintValidatorContext) 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.
| |
| validateParameters | back to summary |
|---|---|
| private void validateParameters() | |