Class ContradictingFieldAnnotation
- java.lang.Object
-
- dev.morphia.mapping.validation.fieldrules.FieldConstraint
-
- dev.morphia.mapping.validation.fieldrules.ContradictingFieldAnnotation
-
- All Implemented Interfaces:
ClassConstraint
public class ContradictingFieldAnnotation extends FieldConstraint
- Author:
- Uwe Schaefer, (us@thomas-daily.de)
-
-
Constructor Summary
Constructors Constructor Description ContradictingFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> a1, java.lang.Class<? extends java.lang.annotation.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, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
-
Methods inherited from class dev.morphia.mapping.validation.fieldrules.FieldConstraint
check
-
-
-
-
Constructor Detail
-
ContradictingFieldAnnotation
public ContradictingFieldAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> a1, java.lang.Class<? extends java.lang.annotation.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, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
- Specified by:
check
in classFieldConstraint
-
-