Class EntityCannotBeMapOrIterable
- java.lang.Object
-
- dev.morphia.mapping.validation.classrules.EntityCannotBeMapOrIterable
-
- All Implemented Interfaces:
ClassConstraint
public class EntityCannotBeMapOrIterable extends Object implements ClassConstraint
Checks that a type is not a Map or Iterable subtype
-
-
Constructor Summary
Constructors Constructor Description EntityCannotBeMapOrIterable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
check(Mapper mapper, EntityModel entityModel, Set<ConstraintViolation> ve)
Check that an EntityModel meets the constraint
-
-
-
Method Detail
-
check
public 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
-
-