Package | Description |
---|---|
org.hibernate.validator.internal.engine.constraintdefinition | |
org.hibernate.validator.internal.engine.constraintvalidation |
Classes dealing with the representation of constraints and the management/instantitation of constraint
validators.
|
org.hibernate.validator.internal.metadata.core |
Core classes of the internal model used for representing constraints and related metadata.
|
org.hibernate.validator.internal.metadata.descriptor |
Implementation of the Bean Validation meta data API.
|
org.hibernate.validator.internal.util |
Independent helper classes.
|
Modifier and Type | Method and Description |
---|---|
List<ConstraintValidatorDescriptor<A>> |
ConstraintDefinitionContribution.getValidatorDescriptors()
Returns a list of constraint validator descriptors for the constraint type of this instance.
|
Constructor and Description |
---|
ConstraintDefinitionContribution(Class<A> constraintType,
List<ConstraintValidatorDescriptor<A>> validatorDescriptors,
boolean includeExisting) |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
ConstraintValidatorDescriptor.forClass(Class<? extends ConstraintValidator<A,?>> validatorClass,
Class<? extends Annotation> constraintAnnotationType) |
static <A extends Annotation,T> |
ConstraintValidatorDescriptor.forLambda(Class<A> annotationType,
Type validatedType,
ConstraintDefinitionContext.ValidationCallable<T> lambda) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
ConstraintHelper.findValidatorDescriptors(Class<A> annotationType,
ValidationTarget validationTarget)
Returns those validator descriptors for the given constraint annotation
matching the given target.
|
<A extends Annotation> |
ConstraintHelper.getAllValidatorDescriptors(Class<A> annotationType)
Returns the constraint validator classes for the given constraint
annotation type, as retrieved from
Constraint.validatedBy() ,
internally registered validators for built-in constraints
XML configuration and
programmatically registered validators (see
ConstraintMapping.constraintDefinition(Class) ).
The result is cached internally. |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
ConstraintHelper.putValidatorDescriptors(Class<A> annotationType,
List<ConstraintValidatorDescriptor<A>> validatorDescriptors,
boolean keepExistingClasses)
Registers the given validator descriptors with the given constraint
annotation type.
|
Modifier and Type | Method and Description |
---|---|
List<ConstraintValidatorDescriptor<T>> |
ConstraintDescriptorImpl.getMatchingConstraintValidatorDescriptors()
Return all constraint validator descriptors (either generic or cross-parameter) which are registered for the
constraint of this descriptor.
|
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
TypeHelper.getValidatorTypes(Class<A> annotationType,
List<ConstraintValidatorDescriptor<A>> validators) |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
TypeHelper.getValidatorTypes(Class<A> annotationType,
List<ConstraintValidatorDescriptor<A>> validators) |
Copyright © 2020 JBoss by Red Hat. All rights reserved.