public class DefaultConstraintMapping extends Object implements ConstraintMapping
ConstraintMapping.| Constructor and Description |
|---|
DefaultConstraintMapping() |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
constraintDefinition(Class<A> annotationClass)
Starts defining
ConstraintValidators to be executed for the specified constraint (i.e. |
AnnotationProcessingOptionsImpl |
getAnnotationProcessingOptions() |
Set<BeanConfiguration<?>> |
getBeanConfigurations(ConstraintHelper constraintHelper,
ParameterNameProvider parameterNameProvider)
Returns all bean configurations configured through this constraint mapping.
|
Set<Class<?>> |
getConfiguredTypes() |
Set<ConstraintDefinitionContribution<?>> |
getConstraintDefinitionContributions() |
<C> TypeConstraintMappingContext<C> |
type(Class<C> type)
Starts defining constraints on the specified bean class.
|
public final <C> TypeConstraintMappingContext<C> type(Class<C> type)
ConstraintMappingtype in interface ConstraintMappingC - The type to be configured.type - The bean class on which to define constraints. All constraints defined after calling this method
are added to the bean of the type beanClass until the next call of type or annotation.public final AnnotationProcessingOptionsImpl getAnnotationProcessingOptions()
public Set<BeanConfiguration<?>> getBeanConfigurations(ConstraintHelper constraintHelper, ParameterNameProvider parameterNameProvider)
constraintHelper - constraint helper required for building constraint descriptorsparameterNameProvider - parameter name provider required for building parameter elementsBeanConfigurations with an element for each type configured through this mappingpublic <A extends Annotation> ConstraintDefinitionContext<A> constraintDefinition(Class<A> annotationClass)
ConstraintMappingConstraintValidators to be executed for the specified constraint (i.e. annotation class).
Each constraint may only be configured once within all constraint mappings used for configuring one validator
factory.constraintDefinition in interface ConstraintMappingA - The annotation type to be configured.annotationClass - The annotation class on which to define the validators. This type must be an
@interface annotated with javax.validation.Constraint. All validators defined after calling
this method are added to the annotation of the type annotationClass until the next call
of type or annotation.public Set<ConstraintDefinitionContribution<?>> getConstraintDefinitionContributions()
Copyright © 2007-2019 Red Hat, Inc. All Rights Reserved