public class BeanValidatorServiceImpl extends Object implements BeanValidatorService
Modifier and Type | Class and Description |
---|---|
protected static class |
BeanValidatorServiceImpl.ValidatorKey
Class for identify validator instance by locale
|
Constructor and Description |
---|
BeanValidatorServiceImpl(ValueExpressionAnalayser analayser,
BeanValidatorFactory validatorFactory) |
Modifier and Type | Method and Description |
---|---|
Collection<ValidatorDescriptor> |
getConstrains(javax.faces.context.FacesContext context,
javax.el.ValueExpression expression,
String message,
Class<?>... groups)
Get all constrains for given EL-expression |
protected Collection<String> |
validate(javax.faces.context.FacesContext facesContext,
Class<?> beanType,
String property,
Object value,
Class<?>[] groups) |
Collection<String> |
validateExpression(javax.faces.context.FacesContext context,
javax.el.ValueExpression expression,
Object newValue,
Class<?>... groups)
Validate expression for a new value. |
Collection<String> |
validateObject(javax.faces.context.FacesContext context,
Object value,
Class<?>... groups)
Validate entire object. |
public BeanValidatorServiceImpl(ValueExpressionAnalayser analayser, BeanValidatorFactory validatorFactory)
public Collection<ValidatorDescriptor> getConstrains(javax.faces.context.FacesContext context, javax.el.ValueExpression expression, String message, Class<?>... groups)
BeanValidatorService
Get all constrains for given EL-expression
getConstrains
in interface BeanValidatorService
message
- TODOpublic Collection<String> validateExpression(javax.faces.context.FacesContext context, javax.el.ValueExpression expression, Object newValue, Class<?>... groups)
BeanValidatorService
Validate expression for a new value.
validateExpression
in interface BeanValidatorService
protected Collection<String> validate(javax.faces.context.FacesContext facesContext, Class<?> beanType, String property, Object value, Class<?>[] groups)
public Collection<String> validateObject(javax.faces.context.FacesContext context, Object value, Class<?>... groups)
BeanValidatorService
Validate entire object.
validateObject
in interface BeanValidatorService
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.