Package org.springframework.validation.method
@NullMarked
package org.springframework.validation.method
Abstractions and support classes for method validation, independent of the
underlying validation library.
The main abstractions:
MethodValidator
to apply method validation, and return or handle the results.MethodValidationResult
and related types to represent the results.MethodValidationException
to expose method validation results.
-
ClassDescriptionException that is a
MethodValidationResult
.Container for method validation results with validation errors from the underlying library adapted toMessageSourceResolvable
s and grouped by method parameter asParameterValidationResult
.Contract to apply method validation and handle the results.Extension ofParameterValidationResult
created 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.