public class ConversionServiceParameterValueMapper extends Object implements ParameterValueMapper
ParameterValueMapper
backed by a ConversionService
.NONE
Constructor and Description |
---|
ConversionServiceParameterValueMapper()
Create a new
ConversionServiceParameterValueMapper instance. |
ConversionServiceParameterValueMapper(ConversionService conversionService)
Create a new
ConversionServiceParameterValueMapper instance backed by a
specific conversion service. |
Modifier and Type | Method and Description |
---|---|
Object |
mapParameterValue(OperationParameter parameter,
Object value)
Map the specified
input parameter to the given parameterType . |
public ConversionServiceParameterValueMapper()
ConversionServiceParameterValueMapper
instance.public ConversionServiceParameterValueMapper(ConversionService conversionService)
ConversionServiceParameterValueMapper
instance backed by a
specific conversion service.conversionService
- the conversion servicepublic Object mapParameterValue(OperationParameter parameter, Object value) throws ParameterMappingException
ParameterValueMapper
input
parameter to the given parameterType
.mapParameterValue
in interface ParameterValueMapper
parameter
- the parameter to mapvalue
- a parameter valueParameterMappingException
- when a mapping failure occursCopyright © 2019 Pivotal Software, Inc.. All rights reserved.