Package com._1c.g5.v8.dt.ui.aef.mappers
Class OneWayLabelMapper<M,V extends ItemViewModel>
java.lang.Object
com._1c.g5.aef2.mappers.OneWayMapper<M,V>
com._1c.g5.v8.dt.ui.aef.mappers.OneWayLabelMapper<M,V>
- Type Parameters:
M
- the model typeV
- theItemViewModel
successor type
- All Implemented Interfaces:
IMapper<M,
V>
IMapper
implementation that maps model object with the same policy as
its OneWayMapper
ancestor. Additionally it sets the view model fields
value provided by ILabelProvider
.- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOneWayLabelMapper
(ILabelProvider labelProvider) Create a new instance with the givenlabelProvider
. -
Method Summary
Modifier and TypeMethodDescriptionprotected V
createModelToView
(M modelValue) Creates the view value if it's not found in the cache.protected abstract V
doCreateModelToView
(M modelValue) Creates the actual view model instance.Methods inherited from class com._1c.g5.aef2.mappers.OneWayMapper
mapModelToView, mapViewToModel
-
Constructor Details
-
OneWayLabelMapper
Create a new instance with the givenlabelProvider
.- Parameters:
labelProvider
- the labelProvider
-
-
Method Details
-
createModelToView
Description copied from class:OneWayMapper
Creates the view value if it's not found in the cache.- Specified by:
createModelToView
in classOneWayMapper<M,
V extends ItemViewModel> - Parameters:
modelValue
- the model value to create mapping for.- Returns:
- created view value.
-
doCreateModelToView
Creates the actual view model instance.- Parameters:
modelValue
- the model value- Returns:
- the projected view model
-