|
Seam Core JSF2 2.3.0.Final | |||||||||
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, classDependencies="org.jboss.seam.core.ClassValidator") 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()
|
|
Set<javax.validation.ConstraintViolation<Object>> |
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> ClassValidator<T> getValidator(T model)
model
- the object to be validatedpublic <T> ClassValidator<T> getValidator(Class<T> modelClass)
modelClass
- the class to be validatedprotected <T> ClassValidator<T> createValidator(Class<T> modelClass)
modelClass
- the class to be validatedpublic Set<javax.validation.ConstraintViolation<Object>> 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()
|
Seam Core JSF2 2.3.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |