public abstract class ObjectValidator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ObjectValidator.BasePropertyPair |
protected static class |
ObjectValidator.ValidatorKey
Class for identify validator instance by locale
|
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
INPUT_PARAMETERS_IS_NOT_CORRECT |
static java.lang.String |
VALIDATOR_PARAM |
Constructor and Description |
---|
ObjectValidator() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Locale |
calculateLocale(javax.faces.context.FacesContext context) |
protected static ObjectValidator |
createInstance()
Create BeanValidator instance.
|
protected org.richfaces.validator.ObjectValidator.ValidationResolver |
createValidationResolver(javax.el.ELResolver parent,
java.util.Locale locale,
java.util.Set<java.lang.String> profiles) |
protected java.util.ResourceBundle |
getCurrentResourceBundle(java.util.Locale locale) |
static ObjectValidator |
getInstance(javax.faces.context.FacesContext context)
Return BeanValidator object from a ServletContext attribute.
|
java.lang.String[] |
validate(javax.faces.context.FacesContext context,
javax.el.ValueExpression target,
java.lang.Object value,
java.util.Set<java.lang.String> profiles)
Perform Validation for a new value.
|
protected abstract java.lang.String[] |
validate(java.lang.Object base,
java.lang.String property,
java.lang.Object value,
java.util.Locale locale,
java.util.Set<java.lang.String> profiles)
Validate bean property for a new value.
|
abstract java.lang.String[] |
validateGraph(javax.faces.context.FacesContext context,
java.lang.Object value,
java.util.Set<java.lang.String> profiles) |
protected static final java.lang.String INPUT_PARAMETERS_IS_NOT_CORRECT
public static final java.lang.String VALIDATOR_PARAM
protected static ObjectValidator createInstance()
public static ObjectValidator getInstance(javax.faces.context.FacesContext context)
context
- public abstract java.lang.String[] validateGraph(javax.faces.context.FacesContext context, java.lang.Object value, java.util.Set<java.lang.String> profiles)
public java.lang.String[] validate(javax.faces.context.FacesContext context, javax.el.ValueExpression target, java.lang.Object value, java.util.Set<java.lang.String> profiles)
context
- current faces context.target
- ValueExpression
for a value assignment.value
- new value for validationprofiles
- TODOjavax.faces.FacesException
- if locale or context not properly initializedprotected java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
protected abstract java.lang.String[] validate(java.lang.Object base, java.lang.String property, java.lang.Object value, java.util.Locale locale, java.util.Set<java.lang.String> profiles)
base
- - beanproperty
- - bean property name.value
- new value.profiles
- TODOprotected java.util.ResourceBundle getCurrentResourceBundle(java.util.Locale locale)
protected org.richfaces.validator.ObjectValidator.ValidationResolver createValidationResolver(javax.el.ELResolver parent, java.util.Locale locale, java.util.Set<java.lang.String> profiles)
Copyright © 2015. All Rights Reserved.