|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mapper<A,B>
Defines a contract between internal parts of Orika such as
MapperFacade
, MapperGenerator
,
MapperFactory
and generated mappers.
MapperFacade
Method Summary | |
---|---|
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. |
Methods inherited from interface ma.glasnost.orika.MappedTypePair |
---|
getAType, getBType |
Method Detail |
---|
void 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |