|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.impl.ReversedMapper<A,B>
public class ReversedMapper<A,B>
ReversedMapper is used to wrap an existing mapper and reverse it's direction
| 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. |
|
static
|
reverse(Mapper<B,A> mapperToReverse)
Reterns a Mapper which is a reversal of the supplied Mapper |
|
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>[] mappers)
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 |
| Method Detail |
|---|
public static <A,B> Mapper<A,B> reverse(Mapper<B,A> mapperToReverse)
mapperToReverse -
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 void setMapperFacade(MapperFacade mapper)
Mapper
setMapperFacade in interface Mapper<A,B>public void setUsedMappers(Mapper<Object,Object>[] mappers)
Mapper
setUsedMappers in interface Mapper<A,B>public Type<A> getAType()
getAType in interface MappedTypePair<A,B>public Type<B> getBType()
getBType in interface MappedTypePair<A,B>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||