org.dozer
Interface Mapper

All Known Implementing Classes:
DozerBeanMapper, MappingProcessor

public interface Mapper

Public root interface for performing Dozer mappings from application code.

Author:
tierney.matt, garsombke.franz

Method Summary
<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
 

Method Detail

map

<T> T map(Object source,
          Class<T> destinationClass)
      throws MappingException
Constructs new instance of destinationClass and performs mapping between from source

Type Parameters:
T -
Parameters:
source -
destinationClass -
Returns:
Throws:
MappingException

map

void map(Object source,
         Object destination)
         throws MappingException
Performs mapping between source and destination objects

Parameters:
source -
destination -
Throws:
MappingException

map

<T> T map(Object source,
          Class<T> destinationClass,
          String mapId)
      throws MappingException
Constructs new instance of destinationClass and performs mapping between from source

Type Parameters:
T -
Parameters:
source -
destinationClass -
mapId -
Returns:
Throws:
MappingException

map

void map(Object source,
         Object destination,
         String mapId)
         throws MappingException
Performs mapping between source and destination objects

Parameters:
source -
destination -
mapId -
Throws:
MappingException


Copyright © 2005-2011 dozer. All Rights Reserved.