public interface MethodValidator
extends javax.validation.Validator
| Modifier and Type | Method and Description |
|---|---|
<T> Set<javax.validation.ConstraintViolation<T>> |
validateParameter(Class<T> clazz,
Constructor<T> constructor,
Object parameterValue,
int parameterIndex,
Class<?>... groups)
Validate the parameter value based on the constraints described on
the parameterIndex-th parameter of
constructor. |
<T> Set<javax.validation.ConstraintViolation<T>> |
validateParameter(Class<T> clazz,
Method method,
Object parameterValue,
int parameterIndex,
Class<?>... groups)
Validate the parameter value based on the constraints described on
the parameterIndex-th parameter of
method. |
<T> Set<javax.validation.ConstraintViolation<T>> |
validateParameters(Class<T> clazz,
Constructor<T> constructor,
Object[] parameterValues,
Class<?>... groups)
Validate each parameter value based on the constraints described on
the parameters of
constructor. |
<T> Set<javax.validation.ConstraintViolation<T>> |
validateParameters(Class<T> clazz,
Method method,
Object[] parameterValues,
Class<?>... groups)
Validate each parameter value based on the constraints described on
the parameters of
method. |
<T> Set<javax.validation.ConstraintViolation<T>> |
validateReturnedValue(Class<T> clazz,
Method method,
Object returnedValue,
Class<?>... groups)
Validate each parameter value based on the constraints described on
method. |
<T> Set<javax.validation.ConstraintViolation<T>> validateParameters(Class<T> clazz, Method method, Object[] parameterValues, Class<?>... groups)
method.clazz - class hosting the methodmethod - the method whose parameters are currectly validatedparameterValues - the parameter values passed to the method for invocationgroups - groups targeted for validationIllegalArgumentException - if the method does not belong to T
or if the Object[] does not match the method signature<T> Set<javax.validation.ConstraintViolation<T>> validateParameter(Class<T> clazz, Method method, Object parameterValue, int parameterIndex, Class<?>... groups)
method.clazz - class hosting the methodmethod - the method whose parameters are currectly validatedparameterValue - the parameter value passed to the parameterIndex-t parameter of methodparameterIndex - parameter index of the parameter validated in methodgroups - groups targeted for validationIllegalArgumentException - if the method does not belong to T
or if parameterIndex is out of bound<T> Set<javax.validation.ConstraintViolation<T>> validateReturnedValue(Class<T> clazz, Method method, Object returnedValue, Class<?>... groups)
method.clazz - class hosting the methodmethod - the method whose result is validatedreturnedValue - the value returned by the method invocationgroups - groups targeted for validationIllegalArgumentException - if the method does not belong to T<T> Set<javax.validation.ConstraintViolation<T>> validateParameters(Class<T> clazz, Constructor<T> constructor, Object[] parameterValues, Class<?>... groups)
constructor.clazz - class hosting the constructorconstructor - the constructor whose parameters are correctly validatedparameterValues - the parameter values passed to the constructor for invocationgroups - groups targeted for validationIllegalArgumentException - if the constructor does not belong to T
or if the Object[] does not match the constructor signature<T> Set<javax.validation.ConstraintViolation<T>> validateParameter(Class<T> clazz, Constructor<T> constructor, Object parameterValue, int parameterIndex, Class<?>... groups)
constructor.clazz - class hosting the constructorconstructor - the method whose parameters are correctly validatedparameterValue - the parameter value passed to the
parameterIndex-th parameter of constructorparameterIndex - parameter index of the parameter validated in constructorgroups - groups targeted for validationIllegalArgumentException - if the constructor does not belong to T
or if prameterIndex is out of boundCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.