public interface MappingResult
code
, and provides context about the result
of a single data mapping operation.Modifier and Type | Method and Description |
---|---|
String |
getCode()
The mapping result code; for example, "success" , "typeMismatch", "propertyNotFound", or "evaluationException".
|
Throwable |
getErrorCause()
Get the cause of the error result
|
Object |
getMappedValue()
The actual value that was mapped to the target object.
|
Mapping |
getMapping()
The mapping that executed for which this result pertains to.
|
Object |
getOriginalValue()
The original value of the source object that was to be mapped.
|
boolean |
isError()
Indicates if this result is an error result.
|
Mapping getMapping()
String getCode()
boolean isError()
Throwable getErrorCause()
Object getOriginalValue()
Object getMappedValue()