Top Description Constructors Methods
org.springframework.validation.method

pack-priv final Class EmptyMethodValidationResult

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

MethodValidationResult with an empty list of results.
Author
Rossen Stoyanchev
Since
6.1

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

Constructor Detail

EmptyMethodValidationResultback to summary
pack-priv EmptyMethodValidationResult()

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. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override