Uses of Interface
org.hibernate.validator.cfg.context.ConstraintDefinitionContext
Packages that use ConstraintDefinitionContext
Package
Description
Entry point for the programmatic constraint definition API.
Contains facet and creational context interfaces forming the API for programmatic constraint definition.
-
Uses of ConstraintDefinitionContext in org.hibernate.validator.cfg
Methods in org.hibernate.validator.cfg that return ConstraintDefinitionContextModifier and TypeMethodDescription<A extends Annotation>
ConstraintDefinitionContext<A>ConstraintMapping.constraintDefinition(Class<A> annotationClass) Starts definingConstraintValidators to be executed for the specified constraint (i.e. annotation class). -
Uses of ConstraintDefinitionContext in org.hibernate.validator.cfg.context
Methods in org.hibernate.validator.cfg.context that return ConstraintDefinitionContextModifier and TypeMethodDescription<A extends Annotation>
ConstraintDefinitionContext<A>ConstraintDefinitionTarget.constraintDefinition(Class<A> annotationType) Selects the constraint (i.e. annotation type) to which the next operations shall apply.ConstraintDefinitionContext.includeExistingValidators(boolean includeExistingValidators) Specifies whether validators already mapped to this constraint (i.e. defined in the annotation declaration throughConstraint.validatedBy()or the validation engine defaults) should be included or not.ConstraintDefinitionContext.validatedBy(Class<? extends ConstraintValidator<A, ?>> validator) Adds a new validator to validate this constraint.ConstraintDefinitionContext.ConstraintValidatorDefinitionContext.with(ConstraintDefinitionContext.ValidationCallable<T> vc) Applies the given Lambda expression or referenced method to values to be validated.