# 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:

- `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.

Related Packages
Package
Description
org.springframework.validation
Provides data binding and validation functionality, for usage in business and/or UI layers.
org.springframework.validation.annotation
Support classes for annotation-based constraint evaluation, for example, using a JSR-303 Bean Validation provider.
org.springframework.validation.beanvalidation
Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.
org.springframework.validation.support
Support classes for handling validation results.
Class
Description
MethodValidationException
Exception that is a `MethodValidationResult`.
MethodValidationResult
Container for method validation results with validation errors from the underlying library adapted to `MessageSourceResolvable`s and grouped by method parameter as `ParameterValidationResult`.
MethodValidator
Contract to apply method validation and handle the results.
ParameterErrors
Extension of `ParameterValidationResult` created for Object method parameters or return values with nested errors on their properties.
ParameterValidationResult
Store and expose the results of method validation for a method parameter.