Package manifold.json.rt
Class BinaryCoercer
- java.lang.Object
-
- manifold.json.rt.BinaryCoercer
-
- All Implemented Interfaces:
manifold.ext.rt.api.ICoercionProvider,IJsonFormatTypeCoercer
public class BinaryCoercer extends Object implements IJsonFormatTypeCoercer
Implement"binary"and"byte"formats. Maps them toOctetEncodingandBase64Encodingrespectively.These formats are defined in OpenAPI Specification
-
-
Field Summary
-
Fields inherited from interface manifold.json.rt.api.IJsonFormatTypeCoercer
_coercionProviders, _instances
-
-
Constructor Summary
Constructors Constructor Description BinaryCoercer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcoerce(Object value, Type type)Map<String,Class<?>>getFormats()ObjecttoBindingValue(Object value)
-
-
-
Method Detail
-
getFormats
public Map<String,Class<?>> getFormats()
- Specified by:
getFormatsin interfaceIJsonFormatTypeCoercer- Returns:
- Pairs of one or more format names to Java type such as
"date-time"->LocalDateTime.classto be referenced in Json Schema"format"types.
-
coerce
public Object coerce(Object value, Type type)
- Specified by:
coercein interfacemanifold.ext.rt.api.ICoercionProvider
-
-