Class DefaultMapper
java.lang.Object
org.springframework.binding.mapping.impl.DefaultMapper
- All Implemented Interfaces:
Mapper
Generic mapper implementation that allows mappings to be configured programatically.
- Author:
- Keith Donald
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMapping
(DefaultMapping mapping) Add a mapping to this mapper.Mapping[]
Returns this mapper's list of mappings.Map state from a source object to a target object.toString()
-
Constructor Details
-
DefaultMapper
public DefaultMapper()
-
-
Method Details
-
addMapping
Add a mapping to this mapper.- Parameters:
mapping
- the mapping to add (required)- Returns:
- this, to support convenient call chaining
-
getMappings
Returns this mapper's list of mappings.- Returns:
- the list of mappings
-
map
Description copied from interface:Mapper
Map state from a source object to a target object. -
toString
-