public abstract class ConstraintTree<A extends Annotation> extends Object
Modifier and Type | Field and Description |
---|---|
protected ConstraintDescriptorImpl<A> |
descriptor
The constraint descriptor for the constraint represented by this constraint tree.
|
Modifier | Constructor and Description |
---|---|
protected |
ConstraintTree(ConstraintDescriptorImpl<A> descriptor,
Type validatedValueType) |
Modifier and Type | Method and Description |
---|---|
ConstraintDescriptorImpl<A> |
getDescriptor() |
protected <T> ConstraintValidator<A,?> |
getInitializedConstraintValidator(ValidationContext<T> validationContext,
ValueContext<?,?> valueContext) |
Type |
getValidatedValueType() |
static <U extends Annotation> |
of(ConstraintDescriptorImpl<U> composingDescriptor,
Type validatedValueType) |
String |
toString() |
<T> boolean |
validateConstraints(ValidationContext<T> executionContext,
ValueContext<?,?> valueContext) |
protected abstract <T> void |
validateConstraints(ValidationContext<T> executionContext,
ValueContext<?,?> valueContext,
Set<ConstraintViolation<T>> constraintViolations) |
protected <T,V> Set<ConstraintViolation<T>> |
validateSingleConstraint(ValidationContext<T> executionContext,
ValueContext<?,?> valueContext,
ConstraintValidatorContextImpl constraintValidatorContext,
ConstraintValidator<A,V> validator) |
protected final ConstraintDescriptorImpl<A extends Annotation> descriptor
protected ConstraintTree(ConstraintDescriptorImpl<A> descriptor, Type validatedValueType)
public static <U extends Annotation> ConstraintTree<U> of(ConstraintDescriptorImpl<U> composingDescriptor, Type validatedValueType)
public final <T> boolean validateConstraints(ValidationContext<T> executionContext, ValueContext<?,?> valueContext)
protected abstract <T> void validateConstraints(ValidationContext<T> executionContext, ValueContext<?,?> valueContext, Set<ConstraintViolation<T>> constraintViolations)
public final ConstraintDescriptorImpl<A> getDescriptor()
public final Type getValidatedValueType()
protected final <T> ConstraintValidator<A,?> getInitializedConstraintValidator(ValidationContext<T> validationContext, ValueContext<?,?> valueContext)
protected final <T,V> Set<ConstraintViolation<T>> validateSingleConstraint(ValidationContext<T> executionContext, ValueContext<?,?> valueContext, ConstraintValidatorContextImpl constraintValidatorContext, ConstraintValidator<A,V> validator)
Copyright © 2021 JBoss by Red Hat. All rights reserved.