org.holmes.Statement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of holmes-validation Show documentation
Show all versions of holmes-validation Show documentation
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