public interface Mapper
| Modifier and Type | Method and Description |
|---|---|
MapperModelContext |
getMapperModelContext()
Returns
MapperModelContext which allows readonly access to the Mapper model |
default MappingMetadata |
getMappingMetadata()
The
MappingMetadata interface can be used to query information about the current
mapping definitions. |
<T> T |
map(Object source,
Class<T> destinationClass)
Constructs new instance of destinationClass and performs mapping between from source
|
<T> T |
map(Object source,
Class<T> destinationClass,
String mapId)
Constructs new instance of destinationClass and performs mapping between from source
|
void |
map(Object source,
Object destination)
Performs mapping between source and destination objects
|
void |
map(Object source,
Object destination,
String mapId)
Performs mapping between source and destination objects
|
<T> T map(Object source, Class<T> destinationClass) throws MappingException
T - type to convert tosource - object to convert fromdestinationClass - type to convert toMappingException - mapping failurevoid map(Object source, Object destination) throws MappingException
source - object to convert fromdestination - object to convert toMappingException - mapping failure<T> T map(Object source, Class<T> destinationClass, String mapId) throws MappingException
T - type to convert tosource - object to convert fromdestinationClass - type to convert tomapId - id in configuration for mappingMappingException - mapping failurevoid map(Object source, Object destination, String mapId) throws MappingException
source - object to convert fromdestination - object to convert tomapId - id in configuration for mappingMappingException - mapping failuredefault MappingMetadata getMappingMetadata()
MappingMetadata interface can be used to query information about the current
mapping definitions. It provides read only access to all important classes and field
mapping properties. When first called, initializes all mappings if map() has not yet been called.MappingMetadata which serves starting point
for querying mapping information.MapperModelContext getMapperModelContext()
MapperModelContext which allows readonly access to the Mapper modelMapperModelContextCopyright © 2005–2021 dozer. All rights reserved.