public abstract class AbstractMappingResult extends java.lang.Object implements MappingResult
MappingResult implementations.| Constructor and Description |
|---|
AbstractMappingResult(Mapping mapping)
Creates a new mapping result.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getCode()
The mapping result code; for example, "success" , "typeMismatch", "propertyNotFound", or "evaluationException".
|
abstract java.lang.Throwable |
getErrorCause()
Get the cause of the error result
|
abstract java.lang.Object |
getMappedValue()
The actual value that was mapped to the target object.
|
Mapping |
getMapping()
The mapping that executed for which this result pertains to.
|
abstract java.lang.Object |
getOriginalValue()
The original value of the source object that was to be mapped.
|
abstract boolean |
isError()
Indicates if this result is an error result.
|
java.lang.String |
toString() |
public AbstractMappingResult(Mapping mapping)
mapping - the mapping this result is for.public Mapping getMapping()
MappingResultgetMapping in interface MappingResultpublic abstract java.lang.String getCode()
MappingResultgetCode in interface MappingResultpublic abstract boolean isError()
MappingResultisError in interface MappingResultpublic abstract java.lang.Throwable getErrorCause()
MappingResultgetErrorCause in interface MappingResultpublic abstract java.lang.Object getOriginalValue()
MappingResultgetOriginalValue in interface MappingResultpublic abstract java.lang.Object getMappedValue()
MappingResultgetMappedValue in interface MappingResultpublic java.lang.String toString()
toString in class java.lang.Object