public abstract class CustomMapper<A,B> extends Object implements Mapper<A,B>
ClassMapBuilder| Modifier and Type | Field and Description |
|---|---|
protected Type<A> |
aType |
protected Type<B> |
bType |
protected MapperFacade |
mapperFacade |
| Constructor and Description |
|---|
CustomMapper() |
| 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<A> |
getAType() |
Type<B> |
getBType() |
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 mapperFacade)
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.
|
protected MapperFacade mapperFacade
public void mapAtoB(A a, B b, MappingContext context)
Mapperpublic void mapBtoA(B b, A a, MappingContext context)
Mapperpublic Type<A> getAType()
getAType in interface MappedTypePair<A,B>public Type<B> getBType()
getBType in interface MappedTypePair<A,B>public void setMapperFacade(MapperFacade mapperFacade)
MappersetMapperFacade in interface Mapper<A,B>public void setUsedMappers(Mapper<Object,Object>[] mapper)
MappersetUsedMappers in interface Mapper<A,B>Copyright © 2016 Glasnost. All rights reserved.