Class MappingResource
- java.lang.Object
-
- org.wso2.carbon.mediator.datamapper.engine.core.mapper.MappingResource
-
public class MappingResource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAMESPACE_DELIMETER
static String
NEW_LINE
-
Constructor Summary
Constructors Constructor Description MappingResource(InputStream inputSchema, InputStream outputSchema, InputStream mappingConfig, String outputType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSFunction
getFunction()
Schema
getInputSchema()
Schema
getOutputSchema()
List
getPropertiesList()
propertiesList contains a list of WSO2 ESB Properties used in the Data Mapper Mapping configuration.void
setFunction(JSFunction function)
-
-
-
Field Detail
-
NAMESPACE_DELIMETER
public static final String NAMESPACE_DELIMETER
- See Also:
- Constant Field Values
-
NEW_LINE
public static final String NEW_LINE
- See Also:
- Constant Field Values
-
-
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 bytesoutputSchema
- respective output json schema as a a stream of bytesmappingConfig
- 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 exceptionSchemaException
JSException
-
-
Method Detail
-
getInputSchema
public Schema getInputSchema()
-
getOutputSchema
public Schema getOutputSchema()
-
getFunction
public JSFunction getFunction()
-
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
-
-