ma.glasnost.orika
Interface BoundMapperFacade<A,B>

All Superinterfaces:
MappedTypePair<A,B>
All Known Implementing Classes:
NonCyclicBoundMapperFacade

public interface BoundMapperFacade<A,B>
extends MappedTypePair<A,B>

BoundMapperFacade represents a caching mapper configuration which is bound to a given pair of types.

Author:
matt.deboer@gmail.com

Method Summary
 B map(A instanceA)
          Generates a new instance of the 'B' type based on the specified instance of 'A'
 B map(A instanceA, B instanceB)
          Maps properties (in place) from the instance of 'A' to the provided instance of 'B'
 B map(A instanceA, B instanceB, MappingContext context)
          Maps properties (in place) from the instance of 'A' to the provided instance of 'B'
 B map(A instanceA, MappingContext context)
          Generates a new instance of the 'B' type based on the specified instance of 'A'
 A mapReverse(B instanceB)
          Generates a new instance of the 'A' type based on the specified instance of 'B'
 A mapReverse(B instanceB, A instanceA)
          Maps properties (in place) from the instance of 'B' to the provided instance of 'A'
 A mapReverse(B instanceB, A instanceA, MappingContext context)
          Maps properties (in place) from the instance of 'B' to the provided instance of 'A'
 A mapReverse(B instanceB, MappingContext context)
          Generates a new instance of the 'A' type based on the specified instance of 'B'
 B newObject(A source, MappingContext context)
          Returns a new instance of type B, using source instance of A for context
 A newObjectReverse(B source, MappingContext context)
          Returns a new instance of type A, using source instance of B for context
 
Methods inherited from interface ma.glasnost.orika.MappedTypePair
getAType, getBType
 

Method Detail

map

B map(A instanceA)
Generates a new instance of the 'B' type based on the specified instance of 'A'

Parameters:
instanceA -
Returns:

map

B map(A instanceA,
      MappingContext context)
Generates a new instance of the 'B' type based on the specified instance of 'A'

Parameters:
instanceA -
context -
Returns:

mapReverse

A mapReverse(B instanceB)
Generates a new instance of the 'A' type based on the specified instance of 'B'

Parameters:
instanceB -
Returns:

mapReverse

A mapReverse(B instanceB,
             MappingContext context)
Generates a new instance of the 'A' type based on the specified instance of 'B'

Parameters:
instanceB -
context -
Returns:

map

B map(A instanceA,
      B instanceB)
Maps properties (in place) from the instance of 'A' to the provided instance of 'B'

Parameters:
instanceA -
instanceB -

map

B map(A instanceA,
      B instanceB,
      MappingContext context)
Maps properties (in place) from the instance of 'A' to the provided instance of 'B'

Parameters:
source -
context -
destination -

mapReverse

A mapReverse(B instanceB,
             A instanceA)
Maps properties (in place) from the instance of 'B' to the provided instance of 'A'

Parameters:
destination -
source -

mapReverse

A mapReverse(B instanceB,
             A instanceA,
             MappingContext context)
Maps properties (in place) from the instance of 'B' to the provided instance of 'A'

Parameters:
destination -
context -
source -

newObject

B newObject(A source,
            MappingContext context)
Returns a new instance of type B, using source instance of A for context

Parameters:
source -
context -
Returns:

newObjectReverse

A newObjectReverse(B source,
                   MappingContext context)
Returns a new instance of type A, using source instance of B for context

Parameters:
source -
context -
Returns:


Copyright © 2013 Glasnost. All Rights Reserved.