org.richfaces.validator.BeanValidatorService Maven / Gradle / Ivy
The newest version!
package org.richfaces.validator;
import java.util.Collection;
import javax.el.ValueExpression;
import javax.faces.context.FacesContext;
/**
*
* This interface describes service that gets Bean Validator constrains for EL-expressions
*
*
* @author [email protected]
*
*/
public interface BeanValidatorService {
/**
*
* Get all constrains for given EL-expression
*
*
* @param context
* @param expression
* @param message TODO
*/
Collection getConstrains(FacesContext context, ValueExpression expression, String message,
Class>... groups);
/**
*
* Validate expression for a new value.
*
*
* @param context
* @param expression
* @param newValue
* @param groups
*/
Collection validateExpression(FacesContext context, ValueExpression expression, Object newValue, Class>... groups);
/**
*
* Validate entire object.
*
*
* @param context
* @param object
* @param groups
*/
Collection validateObject(FacesContext context, Object object, Class>... groups);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy