D - the type of binding datapublic class BaseContextMapper<D extends BindingData> extends Object implements ContextMapper<D>
| Constructor and Description |
|---|
BaseContextMapper() |
| Modifier and Type | Method and Description |
|---|---|
org.switchyard.config.model.composer.ContextMapperModel |
getModel()
Gets the model.
|
void |
mapFrom(D source,
Context context)
Maps a source object's properties to the context.
|
void |
mapTo(Context context,
D target)
Maps a context's properties into a target object.
|
void |
setModel(org.switchyard.config.model.composer.ContextMapperModel model)
Sets the model.
|
public org.switchyard.config.model.composer.ContextMapperModel getModel()
getModel in interface ContextMapper<D extends BindingData>public void setModel(org.switchyard.config.model.composer.ContextMapperModel model)
setModel in interface ContextMapper<D extends BindingData>model - the modelpublic void mapFrom(D source, Context context) throws Exception
mapFrom in interface ContextMapper<D extends BindingData>source - the object to map fromcontext - the context to map toException - if there was a problempublic void mapTo(Context context, D target) throws Exception
mapTo in interface ContextMapper<D extends BindingData>context - the context to map fromtarget - the target to map toException - if there was a problemCopyright © 2013–2018 JBoss by Red Hat. All rights reserved.