public interface Mapper<A,B> extends MappedTypePair<A,B>
MapperFacade, MapperGenerator,
MapperFactory and generated mappers.MapperFacade| 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.
|
void |
mapAtoB(A a,
B b,
MappingContext context)
Maps the properties of an instance of type A to the properties
of an instance of type B.
|
void |
mapBtoA(B b,
A a,
MappingContext context)
Maps the properties of an instance of type B to the properties
of an instance of type A.
|
void |
setMapperFacade(MapperFacade mapper)
Store an instance of the current MapperFacade which may be used
in mapping of nested types.
|
void |
setUsedMappers(Mapper<Object,Object>[] mapper)
Store the set of custom mappers used by this mapper.
|
getAType, getBTypevoid mapAtoB(A a, B b, MappingContext context)
a - the object from which to read the propertiesb - the object onto which the properties should be mappedcontext - void mapBtoA(B b, A a, MappingContext context)
b - the object from which to read the propertiesa - the object onto which the properties should be mappedcontext - void setMapperFacade(MapperFacade mapper)
mapper - void setUsedMappers(Mapper<Object,Object>[] mapper)
mapper - Boolean favorsExtension()
Copyright © 2017 Glasnost. All Rights Reserved.