MessageSourceResolvables and grouped
by method parameter as ParameterValidationResult. For method parameters
with nested validation errors, the validation result is of type
ParameterErrors and implements Errors.
| Modifier and Type | Method and Description |
|---|---|
| public static MethodValidationResult | Returns: the created instancethe target Object target, Method the target method method, List<ParameterValidationResult> method validation results, expected to be non-empty results)Factory method to create a |
| public static MethodValidationResult | emptyResult()
Factory method to create a |
| public default List | |
| public List | |
| public default List | getBeanResults()
Return the subset of |
| public Method | |
| public Object | |
| public default List | getValueResults()
Return the subset of |
| public default boolean | |
| public boolean |
| create | back to summary |
|---|---|
| public static MethodValidationResult create(Object target, Method method, List<ParameterValidationResult> results) Factory method to create a
| |
| emptyResult | back to summary |
|---|---|
| public static MethodValidationResult emptyResult() Factory method to create a | |
| getAllErrors | back to summary |
|---|---|
| public default List Return a single list with all errors from all validation results. | |
| getAllValidationResults | back to summary |
|---|---|
| public List Return all validation results. This includes both method parameters with errors directly on them, and Object method parameters with nested errors on their fields and properties.
| |
| getBeanResults | back to summary |
|---|---|
| public default List Return the subset of | |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Return the method to which validation was applied. | |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Return the target of the method invocation to which validation was applied. | |
| getValueResults | back to summary |
|---|---|
| public default List Return the subset of | |
| hasErrors | back to summary |
|---|---|
| public default boolean hasErrors() Whether the result contains any validation errors. | |
| isForReturnValue | back to summary |
|---|---|
| public boolean isForReturnValue() Whether the violations are for a return value. If true the violations are from validating a return value. If false the violations are from validating method arguments. | |