public class DefaultMappingResults extends Object implements MappingResults
Constructor and Description |
---|
DefaultMappingResults(Object source,
Object target,
List mappingResults)
Creates a new mapping results object.
|
Modifier and Type | Method and Description |
---|---|
List |
getAllResults()
A list of all the mapping results between the source and target.
|
List |
getErrorResults()
A list of all error results that occurred.
|
List |
getResults(MappingResultsCriteria criteria)
Get all results that meet the given result criteria.
|
Object |
getSource()
The source object that was mapped from.
|
Object |
getTarget()
The target object that was mapped to.
|
boolean |
hasErrorResults()
Whether some results were errors.
|
String |
toString() |
public DefaultMappingResults(Object source, Object target, List mappingResults)
source
- the sourcetarget
- the targetmappingResults
- the actual results produced by DefaultMapper
public Object getSource()
MappingResults
getSource
in interface MappingResults
public Object getTarget()
MappingResults
getTarget
in interface MappingResults
public List getAllResults()
MappingResults
getAllResults
in interface MappingResults
public boolean hasErrorResults()
MappingResults
hasErrorResults
in interface MappingResults
public List getErrorResults()
MappingResults
getErrorResults
in interface MappingResults
public List getResults(MappingResultsCriteria criteria)
MappingResults
getResults
in interface MappingResults
criteria
- the mapping result criteria