Class ContradictingAnnotations
- java.lang.Object
-
- dev.morphia.mapping.validation.fieldrules.PropertyConstraint
-
- dev.morphia.mapping.validation.fieldrules.ContradictingAnnotations
-
- All Implemented Interfaces:
ClassConstraint
public class ContradictingAnnotations extends PropertyConstraint
Checks that contradicting annotations aren't defined.
-
-
Constructor Summary
Constructors Constructor Description ContradictingAnnotations(Class<? extends Annotation> a1, Class<? extends Annotation> a2)
Creates a ContradictingFieldAnnotation validation with the two incompatible annotations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
-
Methods inherited from class dev.morphia.mapping.validation.fieldrules.PropertyConstraint
check
-
-
-
-
Constructor Detail
-
ContradictingAnnotations
public ContradictingAnnotations(Class<? extends Annotation> a1, Class<? extends Annotation> a2)
Creates a ContradictingFieldAnnotation validation with the two incompatible annotations.- Parameters:
a1
- the first annotationa2
- the second annotation
-
-
Method Detail
-
check
protected final void check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
- Specified by:
check
in classPropertyConstraint
-
-