package org.mongodb.morphia.mapping.validation;


import org.mongodb.morphia.mapping.MappedClass;
import org.mongodb.morphia.mapping.Mapper;

import java.util.Set;


Author:Uwe Schaefer, (us@thomas-daily.de)
/** * @author Uwe Schaefer, (us@thomas-daily.de) */
public interface ClassConstraint {
Check that a MappedClass meets the constraint
Params:
  • mc – the MappedClass to check
  • ve – the set of violations
  • mapper – the Mapper to use for validation
/** * Check that a MappedClass meets the constraint * * @param mc the MappedClass to check * @param ve the set of violations * @param mapper the Mapper to use for validation */
void check(final Mapper mapper, MappedClass mc, Set<ConstraintViolation> ve); }