Package com._1c.g5.aef2.mappers
Class OneWayMapper<M,V>
- java.lang.Object
- 
- com._1c.g5.aef2.mappers.OneWayMapper<M,V>
 
- 
- All Implemented Interfaces:
- IMapper<M,V>
 - Direct Known Subclasses:
- OneWayLabelMapper
 
 public abstract class OneWayMapper<M,V> extends Object implements IMapper<M,V> Caching one-way mapper from model to its projected view.- See Also:
- IMapper
 
- 
- 
Constructor SummaryConstructors Constructor Description OneWayMapper()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract VcreateModelToView(M modelValue)Creates the view value if it's not found in the cache.VmapModelToView(M modelValue)Maps the model value to some projected view value.MmapViewToModel(V viewValue)Maps the view value to associated model value.
 
- 
- 
- 
Method Detail- 
mapModelToViewpublic V mapModelToView(M modelValue) Description copied from interface:IMapperMaps the model value to some projected view value.- Specified by:
- mapModelToViewin interface- IMapper<M,V>
- Parameters:
- modelValue- the model value to map.
- Returns:
- mapped value.
 
 - 
mapViewToModelpublic M mapViewToModel(V viewValue) Description copied from interface:IMapperMaps the view value to associated model value.- Specified by:
- mapViewToModelin interface- IMapper<M,V>
- Parameters:
- viewValue- the view value to map.
- Returns:
- mapped value.
 
 
- 
 
-