ma.glasnost.orika.impl
Class GeneratedMapperBase
java.lang.Object
ma.glasnost.orika.impl.GeneratedObjectBase
ma.glasnost.orika.impl.GeneratedMapperBase
- All Implemented Interfaces:
- MappedTypePair<Object,Object>, Mapper<Object,Object>
public abstract class GeneratedMapperBase
- extends GeneratedObjectBase
- implements Mapper<Object,Object>
| 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 |
customMapper
protected Mapper<Object,Object> customMapper
GeneratedMapperBase
public GeneratedMapperBase()
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 propertiesb - 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 propertiesa - the object onto which the properties should be mapped
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013 Glasnost. All Rights Reserved.