MessageSourceResolvables.
org.springframework.validation.Errors by the subclass
ParameterErrors.
When the method parameter is a container such as a List, array,
or java., then a separate ParameterValidationResult
is created for each element with errors. In that case, the properties
container, containerIndex,
and containerKey provide additional context.
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final Object | |
| private final Integer | |
| private final Object | |
| private final MethodParameter | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | ParameterValidationResult(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors, Object container, Integer index, Object key)
Create a |
| public | ParameterValidationResult(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors)
Deprecated
for removal since 6.1.3. in favor of
Create a ParameterValidationResult#ParameterValidationResult(MethodParameter, Object, Collection, Object, Integer, Object)
ParameterValidationResult.
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public Object | |
| public Object | getContainer()
When |
| public Integer | getContainerIndex()
When |
| public Object | getContainerKey()
When |
| public MethodParameter | |
| public List | getResolvableErrors()
List of |
| public int | |
| public String |
| argument | back to summary |
|---|---|
| private final Object argument
| |
| container | back to summary |
|---|---|
| private final Object container
| |
| containerIndex | back to summary |
|---|---|
| private final Integer containerIndex
| |
| containerKey | back to summary |
|---|---|
| private final Object containerKey
| |
| methodParameter | back to summary |
|---|---|
| private final MethodParameter methodParameter | |
| resolvableErrors | back to summary |
|---|---|
| private final List<MessageSourceResolvable> resolvableErrors | |
| ParameterValidationResult | back to summary |
|---|---|
| public ParameterValidationResult(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors, Object container, Integer index, Object key) Create a | |
| ParameterValidationResult | back to summary |
|---|---|
| public ParameterValidationResult(MethodParameter param, Object arg, Collection<? extends MessageSourceResolvable> errors)
Deprecated for removal since 6.1.3. Create a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getArgument | back to summary |
|---|---|
| public Object getArgument() The method argument value that was validated.
| |
| getContainer | back to summary |
|---|---|
| public Object getContainer() When
| |
| getContainerIndex | back to summary |
|---|---|
| public Integer getContainerIndex() When
| |
| getContainerKey | back to summary |
|---|---|
| public Object getContainerKey() When
| |
| getMethodParameter | back to summary |
|---|---|
| public MethodParameter getMethodParameter() The method parameter the validation results are for. | |
| getResolvableErrors | back to summary |
|---|---|
| public List List of
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |