All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jodd.vtor.ValidationConstraint Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
// 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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy