|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.CustomMapper<A,B>
public abstract class CustomMapper<A,B>
Abstract super-class for all generated mappers and user custom mappers.
ClassMapBuilder| Field Summary | |
|---|---|
protected Type<A> |
aType
|
protected Type<B> |
bType
|
protected MapperFacade |
mapperFacade
|
| Constructor Summary | |
|---|---|
CustomMapper()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Type<A> aType
protected Type<B> bType
protected MapperFacade mapperFacade
| Constructor Detail |
|---|
public CustomMapper()
| Method Detail |
|---|
public void mapAtoB(A a,
B b,
MappingContext context)
Mapper
mapAtoB in interface Mapper<A,B>a - the object from which to read the propertiesb - the object onto which the properties should be mapped
public void mapBtoA(B b,
A a,
MappingContext context)
Mapper
mapBtoA in interface Mapper<A,B>b - the object from which to read the propertiesa - the object onto which the properties should be mappedpublic Type<A> getAType()
getAType in interface MappedTypePair<A,B>public Type<B> getBType()
getBType in interface MappedTypePair<A,B>public void setMapperFacade(MapperFacade mapperFacade)
Mapper
setMapperFacade in interface Mapper<A,B>public void setUsedMappers(Mapper<Object,Object>[] mapper)
Mapper
setUsedMappers in interface Mapper<A,B>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||