Class 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  
      • Fields inherited from class org.wso2.carbon.mediator.service.ui.AbstractMediator

        ATT_EXPRN, ATT_KEY, ATT_NAME, ATT_ONERROR, ATT_REGEX, ATT_SEQUENCE, ATT_SOURCE, ATT_STATS, ATT_TARGET, ATT_VALUE, ATT_XPATH, fac, FEATURE_Q, nullNS, PROP_Q, synNS, TARGET_Q
    • 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 registry
      org.apache.synapse.mediators.Value getInputSchemaKey()
      Gets the registry key of the inputSchema
      int getInputType()
      Gets the inputDataType
      org.apache.synapse.mediators.Value getOutputSchemaKey()
      Gets the registry key of the outputSchema
      int getOutputType()
      Gets the outputDataType
      String 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 configuration
      void setInputSchemaKey​(org.apache.synapse.mediators.Value dataMapperKey)
      Sets the registry key in order to pick the inputSchema
      void setInputType​(int type)
      Sets the inputDataType
      void setOutputSchemaKey​(org.apache.synapse.mediators.Value dataMapperKey)
      Sets the registry key in order to pick the outputSchema
      void 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
    • Constructor Detail

      • DataMapperMediator

        public DataMapperMediator()
    • 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)