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