Package org.springframework.validation.method
@NonNullApi
@NonNullFields
package org.springframework.validation.method
Abstractions and support classes for method validation, independent of the
underlying validation library.
The main abstractions:
MethodValidatorto apply method validation, and return or handle the results.MethodValidationResultand related types to represent the results.MethodValidationExceptionto expose method validation results.
-
ClassDescriptionException that is a
MethodValidationResult.Container for method validation results with validation errors from the underlying library adapted toMessageSourceResolvables and grouped by method parameter asParameterValidationResult.Contract to apply method validation and handle the results.Extension ofParameterValidationResultcreated for Object method parameters or return values with nested errors on their properties.Store and expose the results of method validation for a method parameter.