jodd.vtor.ValidationConstraint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jodd-vtor Show documentation
Show all versions of jodd-vtor Show documentation
Jodd VTor is focused validation framework for any Java object.
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.vtor;
import java.lang.annotation.Annotation;
/**
* Definition of validation constraint.
*/
public interface ValidationConstraint {
/**
* Configures constraint from associated annotation.
*/
void configure(A annotation);
/**
* Performs validation in context of target object on provided value.
* @return true
if validation passes, otherwise false
.
*/
boolean isValid(ValidationConstraintContext vcc, Object value);
}