public class ContradictingFieldAnnotation extends FieldConstraint
| Constructor and Description |
|---|
ContradictingFieldAnnotation(Class<? extends Annotation> a1,
Class<? extends Annotation> a2)
Creates a ContradictingFieldAnnotation validation with the two incompatible annotations.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(Mapper mapper,
MappedClass mc,
MappedField mf,
Set<ConstraintViolation> ve) |
checkpublic ContradictingFieldAnnotation(Class<? extends Annotation> a1, Class<? extends Annotation> a2)
a1 - the first annotationa2 - the second annotationprotected final void check(Mapper mapper, MappedClass mc, MappedField mf, Set<ConstraintViolation> ve)
check in class FieldConstraint