A
- The annotation type represented by this context.public interface ConstraintDefinitionContext<A extends Annotation> extends ConstraintMappingTarget
Modifier and Type | Method and Description |
---|---|
ConstraintDefinitionContext<A> |
includeExistingValidators(boolean includeExistingValidators)
Specifies whether validators already mapped to this constraint (i.e.
|
ConstraintDefinitionContext<A> |
validatedBy(Class<? extends ConstraintValidator<A,?>> validator)
Adds a new validator to validate this constraint.
|
type
constraintDefinition
ConstraintDefinitionContext<A> includeExistingValidators(boolean includeExistingValidators)
Constraint.validatedBy()
or the validation engine defaults) should
be included or not.includeExistingValidators
- Whether or not to use already-mapped validators when validating this constraint.ConstraintDefinitionContext<A> validatedBy(Class<? extends ConstraintValidator<A,?>> validator)
validator
- The validator to add.Copyright © 2017 JBoss by Red Hat. All rights reserved.