Class InputBuilder
- java.lang.Object
-
- org.wso2.carbon.mediator.datamapper.engine.input.InputBuilder
-
public class InputBuilder extends Object
Class manage the XML to JSON parsing process
-
-
Constructor Summary
Constructors Constructor Description InputBuilder(InputOutputDataType inputType, Schema inputSchema)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildInputModel(InputStream inputStream, InputVariableNotifier inputVariableNotifier)
void
notifyWithResult(String builtMessage)
This method will be called by the XMLInputReader instance to notify with the output
-
-
-
Constructor Detail
-
InputBuilder
public InputBuilder(InputOutputDataType inputType, Schema inputSchema) throws IOException
Constructor- Parameters:
inputSchema
- Input message JSON schema- Throws:
IOException
-
-
Method Detail
-
buildInputModel
public void buildInputModel(InputStream inputStream, InputVariableNotifier inputVariableNotifier) throws ReaderException
- Parameters:
inputStream
- XML input messageinputVariableNotifier
- Reference to the MappingHandler instance- Throws:
ReaderException
-
notifyWithResult
public void notifyWithResult(String builtMessage) throws JSException, ReaderException, SchemaException
This method will be called by the XMLInputReader instance to notify with the output- Parameters:
builtMessage
- Built JSON message- Throws:
JSException
ReaderException
SchemaException
-
-