|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.core.Validators
@Name(value="org.jboss.seam.core.validators") @Intercept(value=NEVER) @Scope(value=APPLICATION) @Install(precedence=0) public class Validators
Caches instances of Hibernate Validator ClassValidator
Constructor Summary | |
---|---|
Validators()
|
Method Summary | ||
---|---|---|
protected org.hibernate.validator.ClassValidator |
createValidator(Class modelClass,
String name)
Create a new ClassValidator, or get it from the Component object for the default role of the class. |
|
|
getValidator(Class<T> modelClass)
Get the cached ClassValidator instance. |
|
org.hibernate.validator.ClassValidator |
getValidator(Class modelClass,
String name)
Get the cached ClassValidator instance. |
|
static Validators |
instance()
|
|
org.hibernate.validator.InvalidValue[] |
validate(javax.faces.context.FacesContext context,
String propertyExpression,
Object value)
Validate that a value can be assigned to the property identified by a 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 org.hibernate.validator.ClassValidator getValidator(Class modelClass, String name)
modelClass
- the class to be validatedname
- the component namepublic <T> org.hibernate.validator.ClassValidator<T> getValidator(Class<T> modelClass)
modelClass
- the class to be validatedprotected org.hibernate.validator.ClassValidator createValidator(Class modelClass, String name)
modelClass
- the class to be validatedname
- the component namepublic org.hibernate.validator.InvalidValue[] validate(javax.faces.context.FacesContext context, String propertyExpression, Object value)
context
- the FacesContextpropertyExpression
- a value expressionvalue
- the value that is to be assigned
public static Validators instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |