接口 ParameterValueMapper
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Maps parameter values to the required type when invoking an endpoint.
- 从以下版本开始:
- 2.0.0
- 作者:
- Stephane Nicoll
-
字段概要
字段 -
方法概要
修饰符和类型方法说明mapParameterValue
(OperationParameter parameter, Object value) Map the specifiedinput
parameter to the givenparameterType
.
-
字段详细资料
-
NONE
AParameterValueMapper
that does nothing.
-
-
方法详细资料
-
mapParameterValue
Object mapParameterValue(OperationParameter parameter, Object value) throws ParameterMappingException Map the specifiedinput
parameter to the givenparameterType
.- 参数:
parameter
- the parameter to mapvalue
- a parameter value- 返回:
- a value suitable for that parameter
- 抛出:
ParameterMappingException
- when a mapping failure occurs
-