MethodValidationResult, and methods that
handle the results, by default raising MethodValidationException.
| Modifier and Type | Method and Description |
|---|---|
| public default void | applyArgumentValidation(Object target, Method method, MethodParameter[] parameters, Object[] arguments, Class<?>[] groups)
Delegate to |
| public default void | applyReturnValueValidation(Object target, Method method, MethodParameter returnType, Object returnValue, Class<?>[] groups)
Delegate to |
| public Class | Returns: the applicable validation groups as aClass arraythe target Object target, Method the target method method)Determine the applicable validation groups. |
| public MethodValidationResult | Returns: the result of validationthe target Object target, Method the target method method, MethodParameter[] the parameters, if already created and available parameters, Object[] the candidate argument values to validate arguments, Class<?>[] validation groups from groups)determineValidationGroupsValidate the given method arguments and return validation results. |
| public MethodValidationResult | Returns: the result of validationthe target Object target, Method the target method method, MethodParameter the return parameter, if already created and available returnType, Object the return value to validate returnValue, Class<?>[] validation groups from groups)determineValidationGroupsValidate the given return value and return validation results. |
| applyArgumentValidation | back to summary |
|---|---|
| public default void applyArgumentValidation(Object target, Method method, MethodParameter[] parameters, Object[] arguments, Class<?>[] groups) Delegate to
| |
| applyReturnValueValidation | back to summary |
|---|---|
| public default void applyReturnValueValidation(Object target, Method method, MethodParameter returnType, Object returnValue, Class<?>[] groups) Delegate to
| |
| determineValidationGroups | back to summary |
|---|---|
| public Class Determine the applicable validation groups. By default, obtained from an
| |
| validateArguments | back to summary |
|---|---|
| public MethodValidationResult validateArguments(Object target, Method method, MethodParameter[] parameters, Object[] arguments, Class<?>[] groups) Validate the given method arguments and return validation results.
| |
| validateReturnValue | back to summary |
|---|---|
| public MethodValidationResult validateReturnValue(Object target, Method method, MethodParameter returnType, Object returnValue, Class<?>[] groups) Validate the given return value and return validation results.
| |