Top Description Fields Constructors Methods
org.springframework.validation.method

pack-priv final Class DefaultMethodValidationResult

extends Object
implements MethodValidationResult
Class Inheritance
All Implemented Interfaces
org.springframework.validation.method.MethodValidationResult
Imports
java.lang.reflect.Method, java.util.List, org.springframework.util.Assert

Default MethodValidationResult implementation as a simple container.
Author
Rossen Stoyanchev
Since
6.1

Field Summary

Modifier and TypeField and Description
private final List<ParameterValidationResult>
private final boolean
private final Method
private final Object

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public List<ParameterValidationResult>
public Method
getMethod()

Implements org.springframework.validation.method.MethodValidationResult.getMethod.

Return the method to which validation was applied.
public Object
getTarget()

Implements org.springframework.validation.method.MethodValidationResult.getTarget.

Return the target of the method invocation to which validation was applied.
public boolean
isForReturnValue()

Implements org.springframework.validation.method.MethodValidationResult.isForReturnValue.

Whether the violations are for a return value.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

allValidationResultsback to summary
private final List<ParameterValidationResult> allValidationResults
forReturnValueback to summary
private final boolean forReturnValue
methodback to summary
private final Method method
targetback to summary
private final Object target

Constructor Detail

DefaultMethodValidationResultback to summary
pack-priv DefaultMethodValidationResult(Object target, Method method, List<ParameterValidationResult> results)

Method Detail

getAllValidationResultsback to summary
public List<ParameterValidationResult> getAllValidationResults()

Implements org.springframework.validation.method.MethodValidationResult.getAllValidationResults.

Doc from org.springframework.validation.method.MethodValidationResult.getAllValidationResults.

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.

Annotations
@Override
getMethodback to summary
public Method getMethod()

Implements org.springframework.validation.method.MethodValidationResult.getMethod.

Doc from org.springframework.validation.method.MethodValidationResult.getMethod.

Return the method to which validation was applied.

Annotations
@Override
getTargetback to summary
public Object getTarget()

Implements org.springframework.validation.method.MethodValidationResult.getTarget.

Doc from org.springframework.validation.method.MethodValidationResult.getTarget.

Return the target of the method invocation to which validation was applied.

Annotations
@Override
isForReturnValueback to summary
public boolean isForReturnValue()

Implements org.springframework.validation.method.MethodValidationResult.isForReturnValue.

Doc from org.springframework.validation.method.MethodValidationResult.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.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override