Class DefaultMappingResults
java.lang.Object
org.springframework.binding.mapping.impl.DefaultMappingResults
- All Implemented Interfaces:
Serializable
,MappingResults
Default mapping results implementation.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultMappingResults
(Object source, Object target, List<MappingResult> mappingResults) Creates a new mapping results object. -
Method Summary
Modifier and TypeMethodDescriptionA list of all the mapping results between the source and target.A list of all error results that occurred.getResults
(MappingResultsCriteria criteria) Get all results that meet the given result criteria.The source object that was mapped from.The target object that was mapped to.boolean
Whether some results were errors.toString()
-
Constructor Details
-
DefaultMappingResults
Creates a new mapping results object.- Parameters:
source
- the sourcetarget
- the targetmappingResults
- the actual results produced byDefaultMapper
-
-
Method Details
-
getSource
Description copied from interface:MappingResults
The source object that was mapped from.- Specified by:
getSource
in interfaceMappingResults
-
getTarget
Description copied from interface:MappingResults
The target object that was mapped to.- Specified by:
getTarget
in interfaceMappingResults
-
getAllResults
Description copied from interface:MappingResults
A list of all the mapping results between the source and target.- Specified by:
getAllResults
in interfaceMappingResults
-
hasErrorResults
public boolean hasErrorResults()Description copied from interface:MappingResults
Whether some results were errors. Returns true if mapping errors occurred.- Specified by:
hasErrorResults
in interfaceMappingResults
-
getErrorResults
Description copied from interface:MappingResults
A list of all error results that occurred.- Specified by:
getErrorResults
in interfaceMappingResults
-
getResults
Description copied from interface:MappingResults
Get all results that meet the given result criteria.- Specified by:
getResults
in interfaceMappingResults
- Parameters:
criteria
- the mapping result criteria
-
toString
-