| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public | ComposingConstraintTree(ConstraintValidatorManager constraintValidatorManager, ConstraintDescriptorImpl<B> descriptor, Type validatedValueType)
|
| Modifier and Type | Method and Description |
|---|---|
| private <U extends Annotation> ConstraintTree | createConstraintTree(ConstraintValidatorManager constraintValidatorManager, ConstraintDescriptorImpl<U> composingDescriptor)
|
| private boolean | mainConstraintNeedsEvaluation(ValidationContext<?> validationContext, Collection<ConstraintValidatorContextImpl> violatedConstraintValidatorContexts)
|
| private boolean | passesCompositionTypeRequirement(Collection<?> constraintViolations, ComposingConstraintTree.
|
| private void | prepareFinalConstraintViolations(ValidationContext<?>
meta data about top level validation validationContext, ValueContext<?, ?> meta data for currently validated value valueContext, Collection<ConstraintValidatorContextImpl> used to accumulate constraint validator contexts that cause constraint violations violatedConstraintValidatorContexts, Optional<ConstraintValidatorContextImpl> an optional of constraint violations of top level constraint localConstraintValidatorContext)Before the final constraint violations can be reported back we need to check whether we have a composing constraint whose result should be reported as single violation. |
| private boolean | Returns: true if the current constraint should be reported as single violation, false otherwise.
When using negation, we only report the single top-level violation, as
it is hard, especially for ALL_FALSE to give meaningful reports
|
| private ComposingConstraintTree. | Returns: Returns an instance ofCompositionResult relevant for boolean composition of constraintsMeta data about top level validation validationContext, ValueContext<?, ?> Meta data for currently validated value valueContext, Collection<ConstraintValidatorContextImpl> Used to accumulate constraint validator contexts that cause constraint violations violatedConstraintValidatorContexts)Validates all composing constraints recursively. |
| protected void | validateConstraints(ValidationContext<?> validationContext, ValueContext<?, ?> valueContext, Collection<ConstraintValidatorContextImpl> violatedConstraintValidatorContexts)
Implements abstract org. |
| children | back to summary |
|---|---|
| private final List<ConstraintTree<?>> children
| |
| LOG | back to summary |
|---|---|
| private static final Log LOG Hides org. | |
| ComposingConstraintTree | back to summary |
|---|---|
| public ComposingConstraintTree(ConstraintValidatorManager constraintValidatorManager, ConstraintDescriptorImpl<B> descriptor, Type validatedValueType) | |
| createConstraintTree | back to summary |
|---|---|
| private <U extends Annotation> ConstraintTree | |
| mainConstraintNeedsEvaluation | back to summary |
|---|---|
| private boolean mainConstraintNeedsEvaluation(ValidationContext<?> validationContext, Collection<ConstraintValidatorContextImpl> violatedConstraintValidatorContexts) | |
| passesCompositionTypeRequirement | back to summary |
|---|---|
| private boolean passesCompositionTypeRequirement(Collection<?> constraintViolations, ComposingConstraintTree. | |
| prepareFinalConstraintViolations | back to summary |
|---|---|
| private void prepareFinalConstraintViolations(ValidationContext<?> validationContext, ValueContext<?, ?> valueContext, Collection<ConstraintValidatorContextImpl> violatedConstraintValidatorContexts, Optional<ConstraintValidatorContextImpl> localConstraintValidatorContext) Before the final constraint violations can be reported back we need to check whether we have a composing constraint whose result should be reported as single violation.
| |
| reportAsSingleViolation | back to summary |
|---|---|
private boolean reportAsSingleViolation()
| |
| validateComposingConstraints | back to summary |
|---|---|
| private ComposingConstraintTree. Validates all composing constraints recursively.
| |
| validateConstraints | back to summary |
|---|---|
| protected void validateConstraints(ValidationContext<?> validationContext, ValueContext<?, ?> valueContext, Collection<ConstraintValidatorContextImpl> violatedConstraintValidatorContexts) Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public void | |
| public void |
| allTrue | back to summary |
|---|---|
| private boolean allTrue | |
| atLeastOneTrue | back to summary |
|---|---|
| private boolean atLeastOneTrue | |
| CompositionResult | back to summary |
|---|---|
| pack-priv CompositionResult(boolean allTrue, boolean atLeastOneTrue) | |
| isAllTrue | back to summary |
|---|---|
| public boolean isAllTrue() | |
| isAtLeastOneTrue | back to summary |
|---|---|
| public boolean isAtLeastOneTrue() | |
| setAllTrue | back to summary |
|---|---|
| public void setAllTrue(boolean allTrue) | |
| setAtLeastOneTrue | back to summary |
|---|---|
| public void setAtLeastOneTrue(boolean atLeastOneTrue) | |