Package org.modelmapper.spi
Interface MappingEngine
-
public interface MappingEngine
Engine that performs mapping operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S,D>
DcreateDestination(MappingContext<S,D> context)
Creates an instance of the destination type for thecontext
, capturing any errors that may occur during instantiation.<S,D>
Dmap(MappingContext<S,D> context)
Maps an instance of typeD
for thecontext
.
-
-
-
Method Detail
-
map
<S,D> D map(MappingContext<S,D> context)
Maps an instance of typeD
for thecontext
.- Type Parameters:
S
- source typeD
- destination type- Parameters:
context
- to map for- Returns:
- fully mapped instance of
D
-
createDestination
<S,D> D createDestination(MappingContext<S,D> context)
Creates an instance of the destination type for thecontext
, capturing any errors that may occur during instantiation.
-
-