public interface ModelDataMapper
| Modifier and Type | Method and Description |
|---|---|
<S,T> java.lang.Class<S> |
getSourceType(WidgetInstanceManager widgetInstanceManager,
java.lang.Class<? extends T> targetClass)
Looks for source class for provided target type.
|
<S,T> T |
map(WidgetInstanceManager widgetInstanceManager,
S model)
Maps provided object into its proper representation (DTO into platform model or another way round)
|
<T> void |
map(WidgetInstanceManager widgetInstanceManager,
T target,
java.util.Map<java.lang.String,java.lang.Object> values)
Maps provided values with proper fields in provided target object
|
<T> void map(WidgetInstanceManager widgetInstanceManager,
T target,
java.util.Map<java.lang.String,java.lang.Object> values)
T - type of target modelwidgetInstanceManager - widget instance manager for widget that requested mappingtarget - target object, which fields should be mappedvalues - values to map<S,T> T map(WidgetInstanceManager widgetInstanceManager,
S model)
S - type of source objectT - type of target objectwidgetInstanceManager - widget instance manager for widget that requested mappingmodel - object to be mapped<S,T> java.lang.Class<S> getSourceType(WidgetInstanceManager widgetInstanceManager,
java.lang.Class<? extends T> targetClass)
S - type of source objectT - type of target sourcewidgetInstanceManager - widget instance manager for widget that requested mappingtargetClass - mapping target classnull, if mapper is unable to map
anything into provided tagert classCopyright © 2018 SAP SE. All Rights Reserved.