Class PropertyConstraint
- java.lang.Object
-
- dev.morphia.mapping.validation.fieldrules.PropertyConstraint
-
- All Implemented Interfaces:
ClassConstraint
- Direct Known Subclasses:
ContradictingAnnotations
,IdDoesNotMix
,LazyReferenceMissingDependencies
,LazyReferenceOnArray
,MapKeyTypeConstraint
,ReferenceToUnidentifiable
,VersionMisuse
public abstract class PropertyConstraint extends Object implements ClassConstraint
Defines a property constraint.
-
-
Constructor Summary
Constructors Constructor Description PropertyConstraint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
void
check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
Check that an EntityModel meets the constraint
-
-
-
Method Detail
-
check
public final void check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
Description copied from interface:ClassConstraint
Check that an EntityModel meets the constraint- Specified by:
check
in interfaceClassConstraint
- Parameters:
mapper
- the Mapper to use for validationentityModel
- the model to checkve
- the set of violations
-
check
protected abstract void check(Mapper mapper, EntityModel entityModel, PropertyModel propertyModel, Set<ConstraintViolation> ve)
-
-