Class MappingResource


  • public class MappingResource
    extends Object
    • Constructor Detail

      • MappingResource

        public MappingResource​(InputStream inputSchema,
                               InputStream outputSchema,
                               InputStream mappingConfig,
                               String outputType)
                        throws SchemaException,
                               JSException
        Parameters:
        inputSchema - respective output json schema as a a stream of bytes
        outputSchema - respective output json schema as a a stream of bytes
        mappingConfig - mapping configuration file as a stream of bytes
        Throws:
        IOException - when input errors, If there any parser exception occur while passing above schemas method will this exception
        SchemaException
        JSException
    • Method Detail

      • getInputSchema

        public Schema getInputSchema()
      • getOutputSchema

        public Schema getOutputSchema()
      • setFunction

        public void setFunction​(JSFunction function)
      • getPropertiesList

        public List getPropertiesList()
        propertiesList contains a list of WSO2 ESB Properties used in the Data Mapper Mapping configuration. These will be extracted by processing the mapping configuration file and will be included as Strings in the format of : "SCOPE['PROP_NAME']"
        Returns:
        propertiesList