MethodValidationResult implementation as a simple container.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final boolean | |
| private final Method | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv | DefaultMethodValidationResult(Object target, Method method, List<ParameterValidationResult> results)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | getAllValidationResults()
Implements org. Return all validation results. |
| public Method | getMethod()
Implements org. Return the method to which validation was applied. |
| public Object | getTarget()
Implements org. Return the target of the method invocation to which validation was applied. |
| public boolean | isForReturnValue()
Implements org. Whether the violations are for a return value. |
| public String |
| allValidationResults | back to summary |
|---|---|
| private final List<ParameterValidationResult> allValidationResults | |
| forReturnValue | back to summary |
|---|---|
| private final boolean forReturnValue | |
| method | back to summary |
|---|---|
| private final Method method | |
| target | back to summary |
|---|---|
| private final Object target | |
| DefaultMethodValidationResult | back to summary |
|---|---|
| pack-priv DefaultMethodValidationResult(Object target, Method method, List<ParameterValidationResult> results) | |
| getAllValidationResults | back to summary |
|---|---|
| public List Implements org. Doc from org. 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.
| |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Implements org. Doc from org. Return the method to which validation was applied.
| |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Implements org. Doc from org. Return the target of the method invocation to which validation was applied.
| |
| isForReturnValue | back to summary |
|---|---|
| public boolean isForReturnValue() Implements org. Doc from org. 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |