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
ConstructorsConstructorDescriptionDefaultMappingResults(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.booleanWhether 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:MappingResultsThe source object that was mapped from.- Specified by:
getSourcein interfaceMappingResults
-
getTarget
Description copied from interface:MappingResultsThe target object that was mapped to.- Specified by:
getTargetin interfaceMappingResults
-
getAllResults
Description copied from interface:MappingResultsA list of all the mapping results between the source and target.- Specified by:
getAllResultsin interfaceMappingResults
-
hasErrorResults
public boolean hasErrorResults()Description copied from interface:MappingResultsWhether some results were errors. Returns true if mapping errors occurred.- Specified by:
hasErrorResultsin interfaceMappingResults
-
getErrorResults
Description copied from interface:MappingResultsA list of all error results that occurred.- Specified by:
getErrorResultsin interfaceMappingResults
-
getResults
Description copied from interface:MappingResultsGet all results that meet the given result criteria.- Specified by:
getResultsin interfaceMappingResults- Parameters:
criteria- the mapping result criteria
-
toString
-