| Modifier and Type | Class and Description |
|---|---|
| private static class | ConstraintDescriptorImpl.ClassIndexWrapper
A wrapper class to keep track for which composing constraints (class and index) a given attribute override applies to. |
| private static enum | ConstraintDescriptorImpl.ComposingConstraintAnnotationLocation
The location of a composing constraint. |
| public static enum | ConstraintDescriptorImpl.ConstraintType
The type of a constraint. |
| Modifier and Type | Field and Description |
|---|---|
| private final ConstraintAnnotationDescriptor | annotationDescriptor
The annotation descriptor - accessing the annotation information has a cost so we do it only once. |
| private final Set | composingConstraints
The composing constraints for this constraint. |
| private final CompositionType | compositionType
Type indicating how composing constraints should be combined. |
| private final ConstraintLocation. | constraintLocationKind
Describes on which level ( |
| private final ConstraintDescriptorImpl. | constraintType
The type of this constraint. |
| private final List | constraintValidatorClasses
The set of classes implementing the validation for this constraint. |
| private final ConstraintOrigin | definedOn
The origin of the constraint. |
| private final Set | groups
The groups for which to apply this constraint. |
| private final int | |
| private final boolean | isReportAsSingleInvalidConstraint
Flag indicating if in case of a composing constraint a single error or multiple errors should be raised. |
| private static final Log | |
| private final transient List | matchingConstraintValidatorDescriptors
This field is transient as the implementations of |
| private static final List | NON_COMPOSING_CONSTRAINT_ANNOTATIONS
A list of annotations which can be ignored when investigating for composing constraints. |
| private static final int | |
| private final Set | payloads
The specified payload of the constraint. |
| private static final long | |
| private final ConstraintTarget | validationAppliesTo
The target of the constraint. |
| private final ValidateUnwrappedValue | valueUnwrapping
The unwrapping behavior defined on the constraint. |
| Access | Constructor and Description |
|---|---|
| public | ConstraintDescriptorImpl(ConstraintHelper constraintHelper, Constrainable constrainable, ConstraintAnnotationDescriptor<T> annotationDescriptor, ConstraintLocation.
|
| public | ConstraintDescriptorImpl(ConstraintHelper constraintHelper, Constrainable constrainable, ConstraintAnnotationDescriptor<T> annotationDescriptor, ConstraintLocation.
|
| public | ConstraintDescriptorImpl(ConstraintHelper constraintHelper, Constrainable constrainable, ConstraintAnnotationDescriptor<T> annotationDescriptor, ConstraintLocation.
|
| Modifier and Type | Method and Description |
|---|---|
| private void | addOverrideAttributes(Map<ConstraintDescriptorImpl.
|
| private static Set | |
| private static Set | |
| private <U extends Annotation> ConstraintDescriptorImpl | createComposingConstraintDescriptor(ConstraintHelper constraintHelper, Constrainable constrainable, Map<ConstraintDescriptorImpl.
|
| private ConstraintDescriptorImpl. | Returns: The type of this constraintThe annotated member constrainable, boolean Whether the constraint has at least one generic validator or
not hasGenericValidators, boolean Whether the constraint has a cross-parameter validator hasCrossParameterValidator, ConstraintDescriptorImpl.constraint type as derived from external context, e.g. for
constraints declared in XML via externalConstraintType<return-value/gt;Determines the type of this constraint. |
| private static ConstraintTarget | |
| private static ValidateUnwrappedValue | determineValueUnwrapping(Set<Class<? extends Payload>> payloads, Constrainable constrainable, Class<? extends Annotation> annotationType)
|
| private void | ensureAttributeIsOverridable(Method m, OverridesAttribute overridesAttribute, String overridesAttributeName)
|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public T | getAnnotation()
Implements jakarta. |
| public ConstraintAnnotationDescriptor | |
| public Class | |
| public Map | getAttributes()
Implements jakarta. |
| public Set | |
| public Set | getComposingConstraints()
Implements jakarta. ConstraintDescriptors where each
descriptor describes a composing constraint.
|
| public CompositionType | |
| public ConstraintLocation. | |
| public ConstraintDescriptorImpl. | |
| public List | getConstraintValidatorClasses()
Implements jakarta. |
| public ConstraintOrigin | |
| public Set | getGroups()
Implements jakarta. |
| public List | Returns: The constraint validator descriptors applying to type of this constraint.Return all constraint validator descriptors (either generic or cross-parameter) which are registered for the constraint of this descriptor. |
| public String | getMessageTemplate()
Implements jakarta. |
| public Set | getPayload()
Implements jakarta. |
| public ConstraintTarget | getValidationAppliesTo()
Implements jakarta. ConstraintTarget value of validationAppliesTo if the constraint
hosts it or null otherwise.
|
| public ValidateUnwrappedValue | |
| public int | |
| public boolean | |
| private Set | parseComposingConstraints(ConstraintHelper constraintHelper, Constrainable constrainable, ConstraintDescriptorImpl.
|
| private CompositionType | |
| private Map | |
| private static <P> P | run(PrivilegedAction<P> action)
Runs the given privileged action, using a privileged block if required. |
| public String | |
| public <U> U | unwrap(Class<U>
the class of the object to be returned type)Implements jakarta. |
| private void | validateComposingConstraintTypes()
Asserts that this constraint and all its composing constraints share the same constraint type (generic or cross-parameter). |
| private void | validateCrossParameterConstraintType(Constrainable constrainable, boolean hasCrossParameterValidator)
|