Package com._1c.g5.aef2.mappers
Interface IMapper<M,V>
- Record Components:
M
- the model type.V
- the view type to which the model typeM
is projected.
- All Known Subinterfaces:
IViewModelsMapper<M,
T>
- All Known Implementing Classes:
AefLabelCheckStateMapper
,AefLabelMapper
,CharacteristicsTableMapper
,CommonAttributeContentTreeComponent.CommonAttributeContentMapper
,ExchangePlanContentComponent.ExchangePlatContentMapper
,NavigatorTableComponent.NavigatorMapper
,NavigatorTreeComponent.NavigatorMapper
,OneWayLabelMapper
,OneWayMapper
,PathToStringMapper
,PredefinedDataComponent.PredefinedDataMapper
public interface IMapper<M,V>
Generalized mapper interface.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionmapModelToView
(M modelValue) Maps the model value to some projected view value.mapViewToModel
(V viewValue) Maps the view value to associated model value.
-
Field Details
-
IDENTITY
Identity mapper, maps any passed object to itself in both directions.
-
-
Method Details
-
mapModelToView
Maps the model value to some projected view value.- Parameters:
modelValue
- the model value to map.- Returns:
- mapped value.
-
mapViewToModel
Maps the view value to associated model value.- Parameters:
viewValue
- the view value to map.- Returns:
- mapped value.
-