Class DefaultParameterMapper
- java.lang.Object
-
- jadex.extension.rs.publish.mapper.DefaultParameterMapper
-
- All Implemented Interfaces:
IParameterMapper
public class DefaultParameterMapper extends java.lang.Object implements IParameterMapper
Default parameter mapper that uses the same value mapper for all parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected IValueMapper
mapper
The value mapper.
-
Constructor Summary
Constructors Constructor Description DefaultParameterMapper(IValueMapper mapper)
Create a new mapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
convertParameters(java.lang.Object[] parameters, java.lang.Object context)
Convert parameters.
-
-
-
Field Detail
-
mapper
protected IValueMapper mapper
The value mapper.
-
-
Constructor Detail
-
DefaultParameterMapper
public DefaultParameterMapper(IValueMapper mapper)
Create a new mapper.
-
-
Method Detail
-
convertParameters
public java.lang.Object[] convertParameters(java.lang.Object[] parameters, java.lang.Object context) throws java.lang.Exception
Convert parameters.- Specified by:
convertParameters
in interfaceIParameterMapper
- Parameters:
parameters
- The values to convert.- Returns:
- The converted parameters.
- Throws:
java.lang.Exception
-
-