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

org.holmes.Statement Maven / Gradle / Ivy

Go to download

Holmes is a library that provides a simple and fluent API for writing business rules validations on Java projects.

The newest version!
package org.holmes;

/**
 * Statements are the multiple components of a {@link Rule}. There are complex
 * statements, which have other statements; and there are simple statements,
 * which have a single {@link Evaluator}.
 * 
 * @author diegossilveira
 */
public interface Statement {

	/**
	 * Evaluates the statement. A statement evaluation can be delegated to its
	 * inner statements or even to the related evaluator.
	 * 
	 * @return true if the statement conforms to the logic,
	 *         false otherwise.
	 */
	boolean evaluate();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy