public abstract class GeneratedMapperBase extends GeneratedObjectBase implements Mapper<Object,Object>
| Modifier and Type | Field and Description |
|---|---|
protected Mapper<Object,Object> |
customMapper |
fromAutoMapping, mapperFacade, usedConverters, usedFilters, usedMapperFacades, usedTypes| Constructor and Description |
|---|
GeneratedMapperBase() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
favorsExtension()
Specifies whether this mapper is abstract, meaning that it can only
be used in combination with a non-abstract mapper.
|
Type<Object> |
getAType() |
Type<Object> |
getBType() |
Mapper<Object,Object>[] |
getUsedMappers() |
static boolean |
isUsedMapperOf(Mapper<Object,Object> usedMapper,
Mapper<Object,Object> ofMapper)
Returns true if
usedMapper is found within the usedMapper hierarchy
of ofMapper. |
static boolean |
isUsedMappersInitialized(Mapper<Object,Object> mapper)
Returns true if the
usedMappers-array of the given mapper is initialized. |
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 |
setFavorsExtension(Boolean favorsExtension) |
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() |
boolean |
uses(Mapper<Object,Object> mapper)
Returns true if this mapper (or any of it's usedMappers, recursively)
makes use of the specified mapper.
|
asList, asList, asList, asList, asList, asList, asList, asList, asList, asList, booleanArray, byteArray, charArray, doubleArray, floatArray, intArray, isFromAutoMapping, listToArray, listToArray, listToMap, listToMap, longArray, mapArray, mapArray, mapArray, mapArray, mapArray, mapArray, mapArray, mapArray, min, setFromAutoMapping, setMapperFacade, setUsedFilters, shortArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetMapperFacadepublic static boolean isUsedMapperOf(Mapper<Object,Object> usedMapper, Mapper<Object,Object> ofMapper)
usedMapper is found within the usedMapper hierarchy
of ofMapper.usedMapper - the mapper to look for in the hierarchyofMapper - the mapper whose usedMapper hierarchy is searchedpublic static boolean isUsedMappersInitialized(Mapper<Object,Object> mapper)
usedMappers-array of the given mapper is initialized.mapper - the mapper to checkpublic Type<Object> getAType()
getAType in interface MappedTypePair<Object,Object>public Type<Object> getBType()
getBType in interface MappedTypePair<Object,Object>public void setAType(Type<?> aType)
public void setBType(Type<?> bType)
public boolean uses(Mapper<Object,Object> mapper)
mapper - public void setUsedMappers(Mapper<Object,Object>[] usedMappers)
MappersetUsedMappers in interface Mapper<Object,Object>public void setUsedTypes(Type<Object>[] types)
setUsedTypes in class GeneratedObjectBasepublic void setUsedConverters(Converter<Object,Object>[] usedConverters)
setUsedConverters in class GeneratedObjectBasepublic void setUsedMapperFacades(BoundMapperFacade<Object,Object>[] usedMapperFacades)
setUsedMapperFacades in class GeneratedObjectBasepublic void mapAtoB(Object a, Object b, MappingContext context)
Mapperpublic void setFavorsExtension(Boolean favorsExtension)
public Boolean favorsExtension()
MapperfavorsExtension in interface Mapper<Object,Object>public void mapBtoA(Object b, Object a, MappingContext context)
MapperCopyright © 2017 Glasnost. All Rights Reserved.