|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.engine.ValidatorImpl
public class ValidatorImpl
The main Bean Validation class. This is the core processing class of Hibernate Validator.
| Constructor Summary | |
|---|---|
ValidatorImpl(javax.validation.ConstraintValidatorFactory constraintValidatorFactory,
javax.validation.MessageInterpolator messageInterpolator,
javax.validation.TraversableResolver traversableResolver,
BeanMetaDataManager beanMetaDataManager,
boolean failFast)
|
|
| Method Summary | ||
|---|---|---|
javax.validation.metadata.BeanDescriptor |
getConstraintsForClass(Class<?> clazz)
|
|
TypeDescriptor |
getConstraintsForType(Class<?> clazz)
Returns a descriptor providing access to constraint-related meta data for the given type. |
|
|
unwrap(Class<T> type)
|
|
|
validate(T object,
Class<?>... groups)
|
|
|
validateAllParameters(T object,
Method method,
Object[] parameterValues,
Class<?>... groups)
Validates all parameters of a given method. |
|
|
validateParameter(T object,
Method method,
Object parameterValue,
int parameterIndex,
Class<?>... groups)
Validates a given parameter of a given method. |
|
|
validateProperty(T object,
String propertyName,
Class<?>... groups)
|
|
|
validateReturnValue(T object,
Method method,
Object returnValue,
Class<?>... groups)
Validates the return value of a given method. |
|
|
validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatorImpl(javax.validation.ConstraintValidatorFactory constraintValidatorFactory,
javax.validation.MessageInterpolator messageInterpolator,
javax.validation.TraversableResolver traversableResolver,
BeanMetaDataManager beanMetaDataManager,
boolean failFast)
| Method Detail |
|---|
public final <T> Set<javax.validation.ConstraintViolation<T>> validate(T object,
Class<?>... groups)
validate in interface javax.validation.Validator
public final <T> Set<javax.validation.ConstraintViolation<T>> validateProperty(T object,
String propertyName,
Class<?>... groups)
validateProperty in interface javax.validation.Validator
public final <T> Set<javax.validation.ConstraintViolation<T>> validateValue(Class<T> beanType,
String propertyName,
Object value,
Class<?>... groups)
validateValue in interface javax.validation.Validator
public final <T> Set<MethodConstraintViolation<T>> validateParameter(T object,
Method method,
Object parameterValue,
int parameterIndex,
Class<?>... groups)
MethodValidator
validateParameter in interface MethodValidatorT - The type hosting the invoked method.object - The object on which the given method was invoked.method - The invoked method for which the given parameter shall be
validated.parameterValue - The value provided by the caller for the given method.parameterIndex - The index of the parameter to be validated within the given
method's parameter array.groups - A - potentially empty - number of validation groups for which
the validation shall be performed. The @link Default
group will be validated if no group is given.
public final <T> Set<MethodConstraintViolation<T>> validateAllParameters(T object,
Method method,
Object[] parameterValues,
Class<?>... groups)
MethodValidator
validateAllParameters in interface MethodValidatorT - The type hosting the invoked method.object - The object on which the given method was invoked.method - The invoked method for which the given parameter shall be
validated.parameterValues - The values provided by the caller for the given method's
parameters.groups - A - potentially empty - number of validation groups for which
the validation shall be performed. The @link Default
group will be validated if no group is given.
public <T> Set<MethodConstraintViolation<T>> validateReturnValue(T object,
Method method,
Object returnValue,
Class<?>... groups)
MethodValidator
validateReturnValue in interface MethodValidatorT - The type hosting the invoked method.object - The object on which the given method was invoked.method - The invoked method for which the given return value shall be
validated.returnValue - The value returned by the invoked method.groups - A - potentially empty - number of validation groups for which
the validation shall be performed. The @link Default
group will be validated if no group is given.
public final javax.validation.metadata.BeanDescriptor getConstraintsForClass(Class<?> clazz)
getConstraintsForClass in interface javax.validation.Validatorpublic final TypeDescriptor getConstraintsForType(Class<?> clazz)
MethodValidator
getConstraintsForType in interface MethodValidatorclazz - The type of interest.
public final <T> T unwrap(Class<T> type)
unwrap in interface javax.validation.Validator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||