Class FieldConstraint
- java.lang.Object
-
- dev.morphia.mapping.validation.fieldrules.FieldConstraint
-
- All Implemented Interfaces:
ClassConstraint
- Direct Known Subclasses:
ContradictingFieldAnnotation
,IdDoesNotMix
,LazyReferenceMissingDependencies
,LazyReferenceOnArray
,MapKeyDifferentFromString
,MapNotSerializable
,MisplacedProperty
,ReferenceToUnidentifiable
,VersionMisuse
public abstract class FieldConstraint extends java.lang.Object implements ClassConstraint
- Author:
- Uwe Schaefer, (us@thomas-daily.de)
-
-
Constructor Summary
Constructors Constructor Description FieldConstraint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
void
check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
Check that a MappedClass meets the constraint
-
-
-
Method Detail
-
check
public final void check(Mapper mapper, MappedClass mc, java.util.Set<ConstraintViolation> ve)
Description copied from interface:ClassConstraint
Check that a MappedClass meets the constraint- Specified by:
check
in interfaceClassConstraint
- Parameters:
mapper
- the Mapper to use for validationmc
- the MappedClass to checkve
- the set of violations
-
check
protected abstract void check(Mapper mapper, MappedClass mc, MappedField mf, java.util.Set<ConstraintViolation> ve)
-
-