| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private boolean | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv ConstraintDefinitionContribution | |
| public ConstraintDefinitionContext | includeExistingValidators(boolean
Whether or not to use already-mapped validators when validating this constraint. includeExistingValidators)Implements org. jakarta. or the validation engine defaults) should
be included or not.
|
| public ConstraintDefinitionContext | validatedBy(Class<? extends ConstraintValidator<A, ?>>
The validator to add. validator)Implements org. |
| public <T> ConstraintDefinitionContext. | validateType(Class<T>
The type of the value to validate type)Implements org. |
| annotationType | back to summary |
|---|---|
| private final Class<A> annotationType | |
| includeExistingValidators | back to summary |
|---|---|
| private boolean includeExistingValidators | |
| validatorDescriptors | back to summary |
|---|---|
| private final Set<ConstraintValidatorDescriptor<A>> validatorDescriptors | |
| ConstraintDefinitionContextImpl | back to summary |
|---|---|
| pack-priv ConstraintDefinitionContextImpl(DefaultConstraintMapping mapping, Class<A> annotationType) | |
| build | back to summary |
|---|---|
pack-priv ConstraintDefinitionContribution
| |
| includeExistingValidators | back to summary |
|---|---|
| public ConstraintDefinitionContext Implements org. Doc from org. Specifies whether validators already mapped to this constraint (i.e. defined in the annotation declaration
through
| |
| validatedBy | back to summary |
|---|---|
| public ConstraintDefinitionContext Implements org. Doc from org. Adds a new validator to validate this constraint.
| |
| validateType | back to summary |
|---|---|
| public <T> ConstraintDefinitionContext. Implements org. Doc from org. Allows to configure a validation implementation using a Lambda expression or method reference. Useful for simple validations without the need for accessing constraint properties or customization of error messages etc.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ConstraintDefinitionContext | with(ConstraintDefinitionContext.
Implements org. |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| ConstraintValidatorDefinitionContextImpl | back to summary |
|---|---|
| public ConstraintValidatorDefinitionContextImpl(Class<T> type) | |
| with | back to summary |
|---|---|
| public ConstraintDefinitionContext Implements org. Applies the given Lambda expression or referenced method to values to be validated. It is guaranteed that
| |