ma.glasnost.orika.impl
Class GeneratedMapperBase

java.lang.Object
  extended by ma.glasnost.orika.impl.GeneratedObjectBase
      extended by ma.glasnost.orika.impl.GeneratedMapperBase
All Implemented Interfaces:
MappedTypePair<Object,Object>, Mapper<Object,Object>

public abstract class GeneratedMapperBase
extends GeneratedObjectBase
implements Mapper<Object,Object>


Field Summary
protected  Mapper<Object,Object> customMapper
           
 
Fields inherited from class ma.glasnost.orika.impl.GeneratedObjectBase
fromAutoMapping, mapperFacade, usedConverters, usedMapperFacades, usedTypes
 
Constructor Summary
GeneratedMapperBase()
           
 
Method Summary
 Type<Object> getAType()
           
 Type<Object> getBType()
           
protected  Mapper<Object,Object>[] getUsedMappers()
           
 void mapAtoB(Object a, Object b, MappingContext context)
          Maps the properties of an instance of type A to the properties of an instance of type B.
 void mapBtoA(Object b, Object a, MappingContext context)
          Maps the properties of an instance of type B to the properties of an instance of type A.
 void setAType(Type<?> aType)
           
 void setBType(Type<?> bType)
           
 void setCustomMapper(Mapper<Object,Object> customMapper)
           
 void setUsedConverters(Converter<Object,Object>[] usedConverters)
           
 void setUsedMapperFacades(BoundMapperFacade<Object,Object>[] usedMapperFacades)
           
 void setUsedMappers(Mapper<Object,Object>[] usedMappers)
          Store the set of custom mappers used by this mapper.
 void setUsedTypes(Type<Object>[] types)
           
 String toString()
           
 
Methods inherited from class ma.glasnost.orika.impl.GeneratedObjectBase
asList, asList, asList, asList, asList, asList, asList, asList, asList, asList, booleanArray, byteArray, charArray, doubleArray, floatArray, intArray, isFromAutoMapping, listToArray, listToMap, longArray, mapArray, mapArray, mapArray, mapArray, mapArray, mapArray, mapArray, mapArray, min, setFromAutoMapping, setMapperFacade, shortArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ma.glasnost.orika.Mapper
setMapperFacade
 

Field Detail

customMapper

protected Mapper<Object,Object> customMapper
Constructor Detail

GeneratedMapperBase

public GeneratedMapperBase()
Method Detail

getAType

public Type<Object> getAType()
Specified by:
getAType in interface MappedTypePair<Object,Object>
Returns:
the 'A' type for this mapped pair

getBType

public Type<Object> getBType()
Specified by:
getBType in interface MappedTypePair<Object,Object>
Returns:
the 'B' type for this mapped pair

setAType

public void setAType(Type<?> aType)

setBType

public void setBType(Type<?> bType)

setCustomMapper

public void setCustomMapper(Mapper<Object,Object> customMapper)

getUsedMappers

protected Mapper<Object,Object>[] getUsedMappers()

setUsedMappers

public void setUsedMappers(Mapper<Object,Object>[] usedMappers)
Description copied from interface: Mapper
Store the set of custom mappers used by this mapper.

Specified by:
setUsedMappers in interface Mapper<Object,Object>

setUsedTypes

public void setUsedTypes(Type<Object>[] types)
Overrides:
setUsedTypes in class GeneratedObjectBase

setUsedConverters

public void setUsedConverters(Converter<Object,Object>[] usedConverters)
Overrides:
setUsedConverters in class GeneratedObjectBase

setUsedMapperFacades

public void setUsedMapperFacades(BoundMapperFacade<Object,Object>[] usedMapperFacades)
Overrides:
setUsedMapperFacades in class GeneratedObjectBase

mapAtoB

public void mapAtoB(Object a,
                    Object b,
                    MappingContext context)
Description copied from interface: Mapper
Maps the properties of an instance of type A to the properties of an instance of type B.

Specified by:
mapAtoB in interface Mapper<Object,Object>
Parameters:
a - the object from which to read the properties
b - the object onto which the properties should be mapped

mapBtoA

public void mapBtoA(Object b,
                    Object a,
                    MappingContext context)
Description copied from interface: Mapper
Maps the properties of an instance of type B to the properties of an instance of type A.

Specified by:
mapBtoA in interface Mapper<Object,Object>
Parameters:
b - the object from which to read the properties
a - the object onto which the properties should be mapped

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Glasnost. All Rights Reserved.