Class DataMapperMediator
- java.lang.Object
-
- org.wso2.carbon.mediator.service.ui.AbstractMediator
-
- org.wso2.carbon.mediator.datamapper.ui.DataMapperMediator
-
- All Implemented Interfaces:
org.wso2.carbon.mediator.service.ui.Mediator
public class DataMapperMediator extends org.wso2.carbon.mediator.service.ui.AbstractMediator
By using the input schema, output schema and mapping configuration, DataMapperMediator generates the output required by the next mediator for the input received by the previous mediator.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CSV_VALUE
static int
JSON_VALUE
static int
XML_VALUE
-
Constructor Summary
Constructors Constructor Description DataMapperMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(org.apache.axiom.om.OMElement element)
org.apache.synapse.mediators.Value
getConfigurationKey()
Gets the key which is used to pick the mapping configuration from the registryorg.apache.synapse.mediators.Value
getInputSchemaKey()
Gets the registry key of the inputSchemaint
getInputType()
Gets the inputDataTypeorg.apache.synapse.mediators.Value
getOutputSchemaKey()
Gets the registry key of the outputSchemaint
getOutputType()
Gets the outputDataTypeString
getTagLocalName()
org.apache.axiom.om.OMElement
serialize(org.apache.axiom.om.OMElement parent)
void
setConfigurationKey(org.apache.synapse.mediators.Value dataMapperKey)
Sets the registry key in order to pick the mapping configurationvoid
setInputSchemaKey(org.apache.synapse.mediators.Value dataMapperKey)
Sets the registry key in order to pick the inputSchemavoid
setInputType(int type)
Sets the inputDataTypevoid
setOutputSchemaKey(org.apache.synapse.mediators.Value dataMapperKey)
Sets the registry key in order to pick the outputSchemavoid
setOutputType(int type)
Sets the outputDataType-
Methods inherited from class org.wso2.carbon.mediator.service.ui.AbstractMediator
collectNameValuePairs, disableStatistics, enableStatistics, getMediatorProperties, getMediatorProperties, getTraceState, isAuditConfigurable, isStatisticsEnable, processAuditStatus, saveTracingState, serializeMediatorProperties, serializeNamespaces, setAuditConfigurable, setTraceState
-
-
-
-
Field Detail
-
CSV_VALUE
public static final int CSV_VALUE
- See Also:
- Constant Field Values
-
XML_VALUE
public static final int XML_VALUE
- See Also:
- Constant Field Values
-
JSON_VALUE
public static final int JSON_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTagLocalName
public String getTagLocalName()
-
getConfigurationKey
public org.apache.synapse.mediators.Value getConfigurationKey()
Gets the key which is used to pick the mapping configuration from the registry- Returns:
- the key which is used to pick the mapping configuration from the registry
-
setConfigurationKey
public void setConfigurationKey(org.apache.synapse.mediators.Value dataMapperKey)
Sets the registry key in order to pick the mapping configuration
-
getInputSchemaKey
public org.apache.synapse.mediators.Value getInputSchemaKey()
Gets the registry key of the inputSchema
-
setInputSchemaKey
public void setInputSchemaKey(org.apache.synapse.mediators.Value dataMapperKey)
Sets the registry key in order to pick the inputSchema
-
getOutputSchemaKey
public org.apache.synapse.mediators.Value getOutputSchemaKey()
Gets the registry key of the outputSchema
-
setOutputSchemaKey
public void setOutputSchemaKey(org.apache.synapse.mediators.Value dataMapperKey)
Sets the registry key in order to pick the outputSchema
-
getInputType
public int getInputType()
Gets the inputDataType
-
setInputType
public void setInputType(int type)
Sets the inputDataType
-
getOutputType
public int getOutputType()
Gets the outputDataType
-
setOutputType
public void setOutputType(int type)
Sets the outputDataType
-
serialize
public org.apache.axiom.om.OMElement serialize(org.apache.axiom.om.OMElement parent)
-
build
public void build(org.apache.axiom.om.OMElement element)
-
-