org.modelmapper.spi
Interface MappingEngine

All Known Implementing Classes:
MappingEngineImpl

public interface MappingEngine

Engine that performs mapping operations.

Author:
Jonathan Halterman

Method Summary
<S,D> D
createDestination(MappingContext<S,D> context)
          Creates an instance of the destination type for the context, capturing any errors that may occur during instantiation.
<S,D> D
map(MappingContext<S,D> context)
          Maps an instance of type D for the context.
 

Method Detail

map

<S,D> D map(MappingContext<S,D> context)
Maps an instance of type D for the context.

Type Parameters:
S - source type
D - 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 the context, capturing any errors that may occur during instantiation.



Copyright © 2011. All Rights Reserved.