org.hibernate.beanvalidation.tck.tests.xmlconfiguration.ConsistentUserValidator Maven / Gradle / Ivy
/**
* Bean Validation TCK
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.beanvalidation.tck.tests.xmlconfiguration;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* @author Hardy Ferentschik
*/
public class ConsistentUserValidator implements ConstraintValidator {
@Override
public boolean isValid(User user, ConstraintValidatorContext constraintValidatorContext) {
return user.isConsistent();
}
}