|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.seam.core.Validators
@Name(value="org.jboss.seam.core.validators") @BypassInterceptors @Scope(value=APPLICATION) @Install(precedence=0) public class Validators
Caches instances of Hibernate Validator ClassValidator
Constructor Summary | |
---|---|
Validators()
|
Method Summary | ||
---|---|---|
protected
|
createValidator(Class<T> modelClass)
Create a new ClassValidator for the given class, using the current Seam ResourceBundle. |
|
|
getValidator(Class<T> modelClass)
Get the cached ClassValidator instance. |
|
|
getValidator(T model)
Get the cached ClassValidator instance. |
|
static Validators |
instance()
|
|
org.hibernate.validator.InvalidValue[] |
validate(javax.el.ValueExpression valueExpression,
javax.el.ELContext elContext,
Object value)
Validate that the given value can be assigned to the property given by the value expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Validators()
Method Detail |
---|
public <T> org.hibernate.validator.ClassValidator<T> getValidator(T model)
model
- the object to be validatedpublic <T> org.hibernate.validator.ClassValidator<T> getValidator(Class<T> modelClass)
modelClass
- the class to be validatedprotected <T> org.hibernate.validator.ClassValidator<T> createValidator(Class<T> modelClass)
modelClass
- the class to be validatedpublic org.hibernate.validator.InvalidValue[] validate(javax.el.ValueExpression valueExpression, javax.el.ELContext elContext, Object value)
valueExpression
- a value expression, referring to a propertyelContext
- the ELContext in which to evaluate the expressionvalue
- a value to be assigned to the property
public static Validators instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |