ma.glasnost.orika.impl
Class MapperFacadeImpl

java.lang.Object
  extended by ma.glasnost.orika.impl.MapperFacadeImpl
All Implemented Interfaces:
MapperFacade

public class MapperFacadeImpl
extends Object
implements MapperFacade

MapperFacadeImpl is the base implementation of MapperFacade


Constructor Summary
MapperFacadeImpl(MapperFactory mapperFactory, MappingContextFactory contextFactory, UnenhanceStrategy unenhanceStrategy)
          Constructs a new MapperFacadeImpl
 
Method Summary
<S,D> D
convert(S source, Class<D> destinationClass, String converterId)
           
<S,D> D
convert(S source, Type<S> sourceType, Type<D> destinationType, String converterId)
          Convert the source object into the appropriate destination type
protected  Class<?> getClass(Object object)
          Get the class for the specified object, accounting for unwrapping
<S,D> D
map(S sourceObject, Class<D> destinationClass)
          Create and return a new instance of type D mapped with the properties of sourceObject.
<S,D> D
map(S sourceObject, Class<D> destinationClass, MappingContext context)
          Create and return a new instance of type D mapped with the properties of sourceObject.
<S,D> void
map(S sourceObject, D destinationObject)
          Maps the properties of sourceObject onto destinationObject.
<S,D> void
map(S sourceObject, D destinationObject, MappingContext context)
          Maps the properties of sourceObject onto destinationObject.
<S,D> void
map(S sourceObject, D destinationObject, Type<S> sourceType, Type<D> destinationType)
          Maps the properties of sourceObject onto destinationObject, using sourceType and destinationType to specify the parameterized types of the source and destination object.
<S,D> void
map(S sourceObject, D destinationObject, Type<S> sourceType, Type<D> destinationType, MappingContext context)
          Maps the properties of sourceObject onto destinationObject, using sourceType and destinationType to specify the parameterized types of the source and destination object.
<S,D> D
map(S sourceObject, Type<S> sourceType, Type<D> destinationClass)
           
<S,D> D
map(S sourceObject, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<S,D> D[]
mapAsArray(D[] destination, Iterable<S> source, Class<D> destinationClass)
          Maps the source Array into a new Array of typeD.
<S,D> D[]
mapAsArray(D[] destination, Iterable<S> source, Class<D> destinationClass, MappingContext context)
           
<S,D> D[]
mapAsArray(D[] destination, Iterable<S> source, Type<S> sourceType, Type<D> destinationType)
           
<S,D> D[]
mapAsArray(D[] destination, Iterable<S> source, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<Sk,Sv,D> D[]
mapAsArray(D[] destination, Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<D> destinationType)
           
<Sk,Sv,D> D[]
mapAsArray(D[] destination, Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<D> destinationType, MappingContext context)
           
<S,D> D[]
mapAsArray(D[] destination, S[] source, Class<D> destinationClass)
           
<S,D> D[]
mapAsArray(D[] destination, S[] source, Class<D> destinationClass, MappingContext context)
           
<S,D> D[]
mapAsArray(D[] destination, S[] source, Type<S> sourceType, Type<D> destinationType)
           
<S,D> D[]
mapAsArray(D[] destination, S[] source, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<S,D> void
mapAsCollection(Iterable<S> source, Collection<D> destination, Class<D> destinationClass)
          Map an iterable onto an existing collection
<S,D> void
mapAsCollection(Iterable<S> source, Collection<D> destination, Class<D> destinationClass, MappingContext context)
          Map an iterable onto an existing collection
<S,D> void
mapAsCollection(Iterable<S> source, Collection<D> destination, Type<S> sourceType, Type<D> destinationType)
          Map an iterable onto an existing collection
<S,D> void
mapAsCollection(Iterable<S> source, Collection<D> destination, Type<S> sourceType, Type<D> destinationType, MappingContext context)
          Map an iterable onto an existing collection
<S,D> void
mapAsCollection(S[] source, Collection<D> destination, Class<D> destinationClass)
          Map an array onto an existing collection
<S,D> void
mapAsCollection(S[] source, Collection<D> destination, Class<D> destinationClass, MappingContext context)
          Map an array onto an existing collection
<S,D> void
mapAsCollection(S[] source, Collection<D> destination, Type<S> sourceType, Type<D> destinationType)
          Map an array onto an existing collection
<S,D> void
mapAsCollection(S[] source, Collection<D> destination, Type<S> sourceType, Type<D> destinationType, MappingContext context)
          Map an array onto an existing collection
<S,D> List<D>
mapAsList(Iterable<S> source, Class<D> destinationClass)
          Maps the source Iterable into a new List parameterized by destinationClass.
<S,D> List<D>
mapAsList(Iterable<S> source, Class<D> destinationClass, MappingContext context)
          Maps the source Iterable into a new List parameterized by destinationClass.
<S,D> List<D>
mapAsList(Iterable<S> source, Type<S> sourceType, Type<D> destinationType)
           
<S,D> List<D>
mapAsList(Iterable<S> source, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<Sk,Sv,D> List<D>
mapAsList(Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<D> destinationType)
           
<Sk,Sv,D> List<D>
mapAsList(Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<D> destinationType, MappingContext context)
           
<S,D> List<D>
mapAsList(S[] source, Class<D> destinationClass)
          Maps the source Array into a new List parameterized by destinationClass.
<S,D> List<D>
mapAsList(S[] source, Class<D> destinationClass, MappingContext context)
          Maps the source Array into a new List parameterized by destinationClass.
<S,D> List<D>
mapAsList(S[] source, Type<S> sourceType, Type<D> destinationType)
           
<S,D> List<D>
mapAsList(S[] source, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<S,Dk,Dv> Map<Dk,Dv>
mapAsMap(Iterable<S> source, Type<S> sourceType, Type<? extends Map<Dk,Dv>> destinationType)
           
<S,Dk,Dv> Map<Dk,Dv>
mapAsMap(Iterable<S> source, Type<S> sourceType, Type<? extends Map<Dk,Dv>> destinationType, MappingContext context)
           
<Sk,Sv,Dk,Dv>
Map<Dk,Dv>
mapAsMap(Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<? extends Map<Dk,Dv>> destinationType)
          Map from one instance of java.util.Map to another.
<Sk,Sv,Dk,Dv>
Map<Dk,Dv>
mapAsMap(Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<? extends Map<Dk,Dv>> destinationType, MappingContext context)
          Map from one instance of java.util.Map to another.
<S,Dk,Dv> Map<Dk,Dv>
mapAsMap(S[] source, Type<S> sourceType, Type<? extends Map<Dk,Dv>> destinationType)
           
<S,Dk,Dv> Map<Dk,Dv>
mapAsMap(S[] source, Type<S> sourceType, Type<? extends Map<Dk,Dv>> destinationType, MappingContext context)
           
<S,D> Set<D>
mapAsSet(Iterable<S> source, Class<D> destinationClass)
          Maps the source iterable into a new Set parameterized by destinationClass.
<S,D> Set<D>
mapAsSet(Iterable<S> source, Class<D> destinationClass, MappingContext context)
          Maps the source iterable into a new Set parameterized by destinationClass.
<S,D> Set<D>
mapAsSet(Iterable<S> source, Type<S> sourceType, Type<D> destinationType)
           
<S,D> Set<D>
mapAsSet(Iterable<S> source, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<Sk,Sv,D> Set<D>
mapAsSet(Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<D> destinationType)
           
<Sk,Sv,D> Set<D>
mapAsSet(Map<Sk,Sv> source, Type<? extends Map<Sk,Sv>> sourceType, Type<D> destinationType, MappingContext context)
           
<S,D> Set<D>
mapAsSet(S[] source, Class<D> destinationClass)
          Maps the source Array into a new Set parameterized by destinationClass.
<S,D> Set<D>
mapAsSet(S[] source, Class<D> destinationClass, MappingContext context)
          Maps the source Array into a new Set parameterized by destinationClass.
<S,D> Set<D>
mapAsSet(S[] source, Type<S> sourceType, Type<D> destinationType)
           
<S,D> Set<D>
mapAsSet(S[] source, Type<S> sourceType, Type<D> destinationType, MappingContext context)
           
<S,D> D
newObject(S sourceObject, Type<? extends D> destinationType, MappingContext context)
          Create new instance of a destination class.
<S,D> MappingStrategy
resolveMappingStrategy(S sourceObject, Type initialSourceType, Type initialDestinationType, boolean mapInPlace, MappingContext context)
          Resolves a reusable MappingStrategy for the given set of inputs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapperFacadeImpl

public MapperFacadeImpl(MapperFactory mapperFactory,
                        MappingContextFactory contextFactory,
                        UnenhanceStrategy unenhanceStrategy)
Constructs a new MapperFacadeImpl

Parameters:
mapperFactory -
contextFactory -
unenhanceStrategy -
Method Detail

map

public <S,D> D map(S sourceObject,
                   Type<S> sourceType,
                   Type<D> destinationClass)
Specified by:
map in interface MapperFacade

getClass

protected Class<?> getClass(Object object)
Get the class for the specified object, accounting for unwrapping

Parameters:
object -
Returns:
the unwrapped class for the specified target object

resolveMappingStrategy

public <S,D> MappingStrategy resolveMappingStrategy(S sourceObject,
                                                    Type initialSourceType,
                                                    Type initialDestinationType,
                                                    boolean mapInPlace,
                                                    MappingContext context)
Resolves a reusable MappingStrategy for the given set of inputs.

Specified by:
resolveMappingStrategy in interface MapperFacade
Parameters:
sourceObject -
rawAType -
rawBType -
context -
Returns:
a MappingStrategy suitable to map the source and destination object

map

public <S,D> D map(S sourceObject,
                   Type<S> sourceType,
                   Type<D> destinationType,
                   MappingContext context)
Specified by:
map in interface MapperFacade

map

public <S,D> void map(S sourceObject,
                      D destinationObject,
                      Type<S> sourceType,
                      Type<D> destinationType,
                      MappingContext context)
Description copied from interface: MapperFacade
Maps the properties of sourceObject onto destinationObject, using sourceType and destinationType to specify the parameterized types of the source and destination object.

Specified by:
map in interface MapperFacade
Parameters:
sourceObject - the object from which to read the properties
destinationObject - the object onto which the properties should be mapped
sourceType - the parameterized type of the source object
destinationType - the parameterized type of the destination object
context - the context from the current mapping request

map

public <S,D> void map(S sourceObject,
                      D destinationObject,
                      Type<S> sourceType,
                      Type<D> destinationType)
Description copied from interface: MapperFacade
Maps the properties of sourceObject onto destinationObject, using sourceType and destinationType to specify the parameterized types of the source and destination object.

Specified by:
map in interface MapperFacade
Parameters:
sourceObject - the object from which to read the properties
destinationObject - the object onto which the properties should be mapped
sourceType - the parameterized type of the source object
destinationType - the parameterized type of the destination object

map

public <S,D> void map(S sourceObject,
                      D destinationObject,
                      MappingContext context)
Description copied from interface: MapperFacade
Maps the properties of sourceObject onto destinationObject.

Specified by:
map in interface MapperFacade
Parameters:
sourceObject - the object from which to read the properties
destinationObject - the object onto which the properties should be mapped
context - the context from the current mapping request

map

public <S,D> void map(S sourceObject,
                      D destinationObject)
Description copied from interface: MapperFacade
Maps the properties of sourceObject onto destinationObject.

Specified by:
map in interface MapperFacade
Parameters:
sourceObject - the object from which to read the properties
destinationObject - the object onto which the properties should be mapped

mapAsSet

public final <S,D> Set<D> mapAsSet(Iterable<S> source,
                                   Type<S> sourceType,
                                   Type<D> destinationType)
Specified by:
mapAsSet in interface MapperFacade

mapAsSet

public final <S,D> Set<D> mapAsSet(Iterable<S> source,
                                   Type<S> sourceType,
                                   Type<D> destinationType,
                                   MappingContext context)
Specified by:
mapAsSet in interface MapperFacade

mapAsList

public final <S,D> List<D> mapAsList(Iterable<S> source,
                                     Type<S> sourceType,
                                     Type<D> destinationType)
Specified by:
mapAsList in interface MapperFacade

mapAsList

public final <S,D> List<D> mapAsList(Iterable<S> source,
                                     Type<S> sourceType,
                                     Type<D> destinationType,
                                     MappingContext context)
Specified by:
mapAsList in interface MapperFacade

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            Iterable<S> source,
                            Type<S> sourceType,
                            Type<D> destinationType)
Specified by:
mapAsArray in interface MapperFacade

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            S[] source,
                            Type<S> sourceType,
                            Type<D> destinationType)
Specified by:
mapAsArray in interface MapperFacade

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            Iterable<S> source,
                            Type<S> sourceType,
                            Type<D> destinationType,
                            MappingContext context)
Specified by:
mapAsArray in interface MapperFacade

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            S[] source,
                            Type<S> sourceType,
                            Type<D> destinationType,
                            MappingContext context)
Specified by:
mapAsArray in interface MapperFacade

mapAsList

public <S,D> List<D> mapAsList(S[] source,
                               Type<S> sourceType,
                               Type<D> destinationType)
Specified by:
mapAsList in interface MapperFacade

mapAsList

public <S,D> List<D> mapAsList(S[] source,
                               Type<S> sourceType,
                               Type<D> destinationType,
                               MappingContext context)
Specified by:
mapAsList in interface MapperFacade

mapAsSet

public <S,D> Set<D> mapAsSet(S[] source,
                             Type<S> sourceType,
                             Type<D> destinationType)
Specified by:
mapAsSet in interface MapperFacade

mapAsSet

public <S,D> Set<D> mapAsSet(S[] source,
                             Type<S> sourceType,
                             Type<D> destinationType,
                             MappingContext context)
Specified by:
mapAsSet in interface MapperFacade

mapAsCollection

public <S,D> void mapAsCollection(Iterable<S> source,
                                  Collection<D> destination,
                                  Type<S> sourceType,
                                  Type<D> destinationType,
                                  MappingContext context)
Map an iterable onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source iterable
destination - the destination into which the results will be mapped
sourceType - the type of
destinationType -
context -

mapAsCollection

public <S,D> void mapAsCollection(S[] source,
                                  Collection<D> destination,
                                  Type<S> sourceType,
                                  Type<D> destinationType,
                                  MappingContext context)
Map an array onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source -
destination -
sourceType -
destinationType -
context -

newObject

public <S,D> D newObject(S sourceObject,
                         Type<? extends D> destinationType,
                         MappingContext context)
Description copied from interface: MapperFacade
Create new instance of a destination class. Abstract types are unsupported.

Specified by:
newObject in interface MapperFacade
Returns:
new instance of destinationClass

convert

public <S,D> D convert(S source,
                       Type<S> sourceType,
                       Type<D> destinationType,
                       String converterId)
Description copied from interface: MapperFacade
Convert the source object into the appropriate destination type

Specified by:
convert in interface MapperFacade
Parameters:
source - the source object to map
sourceType - the type of the source object
destinationType - the type of the destination object to produce
converterId - the specific converter to use; if null, the first compatible global converter is used
Returns:

map

public <S,D> D map(S sourceObject,
                   Class<D> destinationClass)
Description copied from interface: MapperFacade
Create and return a new instance of type D mapped with the properties of sourceObject.

Specified by:
map in interface MapperFacade
Parameters:
sourceObject - the object to map from
destinationClass - the type of the new object to return
Returns:
a new instance of type D mapped with the properties of sourceObject

map

public <S,D> D map(S sourceObject,
                   Class<D> destinationClass,
                   MappingContext context)
Description copied from interface: MapperFacade
Create and return a new instance of type D mapped with the properties of sourceObject.

Specified by:
map in interface MapperFacade
Parameters:
sourceObject - the object to map from
destinationClass - the type of the new object to return
context - the context from the current mapping request
Returns:
a new instance of type D mapped with the properties of sourceObject

mapAsSet

public <S,D> Set<D> mapAsSet(Iterable<S> source,
                             Class<D> destinationClass)
Description copied from interface: MapperFacade
Maps the source iterable into a new Set parameterized by destinationClass.

Specified by:
mapAsSet in interface MapperFacade
Parameters:
source - the Iterable from which to map
destinationClass - the type of elements to be contained in the returned Set.
Returns:
a new Set containing elements of type destinationClass mapped from the elements of source.

mapAsSet

public <S,D> Set<D> mapAsSet(Iterable<S> source,
                             Class<D> destinationClass,
                             MappingContext context)
Description copied from interface: MapperFacade
Maps the source iterable into a new Set parameterized by destinationClass.

Specified by:
mapAsSet in interface MapperFacade
Parameters:
source - the Iterable from which to map
destinationClass - the type of elements to be contained in the returned Set.
context - the context from the current mapping request
Returns:
a new Set containing elements of type destinationClass mapped from the elements of source.

mapAsSet

public <S,D> Set<D> mapAsSet(S[] source,
                             Class<D> destinationClass)
Description copied from interface: MapperFacade
Maps the source Array into a new Set parameterized by destinationClass.

Specified by:
mapAsSet in interface MapperFacade
Parameters:
source - the Array from which to map
destinationClass - the type of elements to be contained in the returned Set.
Returns:
a new Set containing elements of type destinationClass mapped from the elements of source.

mapAsSet

public <S,D> Set<D> mapAsSet(S[] source,
                             Class<D> destinationClass,
                             MappingContext context)
Description copied from interface: MapperFacade
Maps the source Array into a new Set parameterized by destinationClass.

Specified by:
mapAsSet in interface MapperFacade
Parameters:
source - the Array from which to map
destinationClass - the type of elements to be contained in the returned Set.
context - the context from the current mapping request
Returns:
a new Set containing elements of type destinationClass mapped from the elements of source.

mapAsList

public <S,D> List<D> mapAsList(Iterable<S> source,
                               Class<D> destinationClass)
Description copied from interface: MapperFacade
Maps the source Iterable into a new List parameterized by destinationClass.

Specified by:
mapAsList in interface MapperFacade
Parameters:
source - the Iterable from which to map
destinationClass - the type of elements to be contained in the returned Set.
Returns:
a new List containing elements of type destinationClass mapped from the elements of source.

mapAsList

public <S,D> List<D> mapAsList(Iterable<S> source,
                               Class<D> destinationClass,
                               MappingContext context)
Description copied from interface: MapperFacade
Maps the source Iterable into a new List parameterized by destinationClass.

Specified by:
mapAsList in interface MapperFacade
Parameters:
source - the Iterable from which to map
destinationClass - the type of elements to be contained in the returned Set.
context - the context from the current mapping request
Returns:
a new List containing elements of type destinationClass mapped from the elements of source.

mapAsList

public <S,D> List<D> mapAsList(S[] source,
                               Class<D> destinationClass)
Description copied from interface: MapperFacade
Maps the source Array into a new List parameterized by destinationClass.

Specified by:
mapAsList in interface MapperFacade
Parameters:
source - the Array from which to map
destinationClass - the type of elements to be contained in the returned Set.
Returns:
a new List containing elements of type destinationClass mapped from the elements of source.

mapAsList

public <S,D> List<D> mapAsList(S[] source,
                               Class<D> destinationClass,
                               MappingContext context)
Description copied from interface: MapperFacade
Maps the source Array into a new List parameterized by destinationClass.

Specified by:
mapAsList in interface MapperFacade
Parameters:
source - the Array from which to map
destinationClass - the type of elements to be contained in the returned Set.
context - the context from the current mapping request
Returns:
a new List containing elements of type destinationClass mapped from the elements of source.

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            Iterable<S> source,
                            Class<D> destinationClass)
Description copied from interface: MapperFacade
Maps the source Array into a new Array of typeD.

Specified by:
mapAsArray in interface MapperFacade
source - the Array from which to map
destinationClass - the type of elements to be contained in the returned Set.
Returns:
a new Array containing elements of type destinationClass mapped from the elements of source.

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            S[] source,
                            Class<D> destinationClass)
Specified by:
mapAsArray in interface MapperFacade

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            Iterable<S> source,
                            Class<D> destinationClass,
                            MappingContext context)
Specified by:
mapAsArray in interface MapperFacade

mapAsArray

public <S,D> D[] mapAsArray(D[] destination,
                            S[] source,
                            Class<D> destinationClass,
                            MappingContext context)
Specified by:
mapAsArray in interface MapperFacade

convert

public <S,D> D convert(S source,
                       Class<D> destinationClass,
                       String converterId)
Specified by:
convert in interface MapperFacade

mapAsMap

public <Sk,Sv,Dk,Dv> Map<Dk,Dv> mapAsMap(Map<Sk,Sv> source,
                                         Type<? extends Map<Sk,Sv>> sourceType,
                                         Type<? extends Map<Dk,Dv>> destinationType)
Description copied from interface: MapperFacade
Map from one instance of java.util.Map to another.

Specified by:
mapAsMap in interface MapperFacade
Parameters:
source - the source Map
sourceType - the parameterized type of the source Map object
destinationType - the parameterized type of the destination Map object
Returns:
a new Map instance, with key and value types as defined by destinationType

mapAsMap

public <Sk,Sv,Dk,Dv> Map<Dk,Dv> mapAsMap(Map<Sk,Sv> source,
                                         Type<? extends Map<Sk,Sv>> sourceType,
                                         Type<? extends Map<Dk,Dv>> destinationType,
                                         MappingContext context)
Description copied from interface: MapperFacade
Map from one instance of java.util.Map to another.

Specified by:
mapAsMap in interface MapperFacade
context - context the context from the current mapping request
Returns:
a new Map instance, with key and value types as defined by destinationType

mapAsMap

public <S,Dk,Dv> Map<Dk,Dv> mapAsMap(Iterable<S> source,
                                     Type<S> sourceType,
                                     Type<? extends Map<Dk,Dv>> destinationType)
Specified by:
mapAsMap in interface MapperFacade

mapAsMap

public <S,Dk,Dv> Map<Dk,Dv> mapAsMap(Iterable<S> source,
                                     Type<S> sourceType,
                                     Type<? extends Map<Dk,Dv>> destinationType,
                                     MappingContext context)
Specified by:
mapAsMap in interface MapperFacade

mapAsMap

public <S,Dk,Dv> Map<Dk,Dv> mapAsMap(S[] source,
                                     Type<S> sourceType,
                                     Type<? extends Map<Dk,Dv>> destinationType)
Specified by:
mapAsMap in interface MapperFacade

mapAsMap

public <S,Dk,Dv> Map<Dk,Dv> mapAsMap(S[] source,
                                     Type<S> sourceType,
                                     Type<? extends Map<Dk,Dv>> destinationType,
                                     MappingContext context)
Specified by:
mapAsMap in interface MapperFacade

mapAsList

public <Sk,Sv,D> List<D> mapAsList(Map<Sk,Sv> source,
                                   Type<? extends Map<Sk,Sv>> sourceType,
                                   Type<D> destinationType)
Specified by:
mapAsList in interface MapperFacade

mapAsList

public <Sk,Sv,D> List<D> mapAsList(Map<Sk,Sv> source,
                                   Type<? extends Map<Sk,Sv>> sourceType,
                                   Type<D> destinationType,
                                   MappingContext context)
Specified by:
mapAsList in interface MapperFacade

mapAsSet

public <Sk,Sv,D> Set<D> mapAsSet(Map<Sk,Sv> source,
                                 Type<? extends Map<Sk,Sv>> sourceType,
                                 Type<D> destinationType)
Specified by:
mapAsSet in interface MapperFacade

mapAsSet

public <Sk,Sv,D> Set<D> mapAsSet(Map<Sk,Sv> source,
                                 Type<? extends Map<Sk,Sv>> sourceType,
                                 Type<D> destinationType,
                                 MappingContext context)
Specified by:
mapAsSet in interface MapperFacade

mapAsArray

public <Sk,Sv,D> D[] mapAsArray(D[] destination,
                                Map<Sk,Sv> source,
                                Type<? extends Map<Sk,Sv>> sourceType,
                                Type<D> destinationType)
Specified by:
mapAsArray in interface MapperFacade

mapAsArray

public <Sk,Sv,D> D[] mapAsArray(D[] destination,
                                Map<Sk,Sv> source,
                                Type<? extends Map<Sk,Sv>> sourceType,
                                Type<D> destinationType,
                                MappingContext context)
Specified by:
mapAsArray in interface MapperFacade

mapAsCollection

public <S,D> void mapAsCollection(Iterable<S> source,
                                  Collection<D> destination,
                                  Class<D> destinationClass)
Description copied from interface: MapperFacade
Map an iterable onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source iterable
destination - the destination collection
destinationClass - the type of elements in the destination

mapAsCollection

public <S,D> void mapAsCollection(Iterable<S> source,
                                  Collection<D> destination,
                                  Class<D> destinationClass,
                                  MappingContext context)
Description copied from interface: MapperFacade
Map an iterable onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source iterable
destination - the destination collection
destinationClass - the type of elements in the destination
context - the current mapping context

mapAsCollection

public <S,D> void mapAsCollection(S[] source,
                                  Collection<D> destination,
                                  Class<D> destinationClass)
Description copied from interface: MapperFacade
Map an array onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source array
destination - the destination collection

mapAsCollection

public <S,D> void mapAsCollection(S[] source,
                                  Collection<D> destination,
                                  Class<D> destinationClass,
                                  MappingContext context)
Description copied from interface: MapperFacade
Map an array onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source array
destination - the destination collection
context - the current mapping context

mapAsCollection

public <S,D> void mapAsCollection(Iterable<S> source,
                                  Collection<D> destination,
                                  Type<S> sourceType,
                                  Type<D> destinationType)
Description copied from interface: MapperFacade
Map an iterable onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source iterable
destination - the destination collection
sourceType - the type of elements in the source
destinationType - the type of elements in the destination

mapAsCollection

public <S,D> void mapAsCollection(S[] source,
                                  Collection<D> destination,
                                  Type<S> sourceType,
                                  Type<D> destinationType)
Description copied from interface: MapperFacade
Map an array onto an existing collection

Specified by:
mapAsCollection in interface MapperFacade
Parameters:
source - the source array
destination - the destination collection
sourceType - the type of elements in the source
destinationType - the type of elements in the destination


Copyright © 2013 Glasnost. All Rights Reserved.