public class GenericConversionValueConverterProvider extends RecordValueConverterProvider
Map<String, Object>
rather than LSPS records. These maps should be
treated as records and should be mapped using the same format as records:
{ "key1": value1, "key2": value2, ... }
Constructor and Description |
---|
GenericConversionValueConverterProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(Type type)
Indicates if a type is supported by this provider.
|
ValueConverter |
visit(MapType mapType)
Visits the map type.
|
ValueConverter |
visit(ObjectType objectType)
Visits the object type.
|
public GenericConversionValueConverterProvider()
public boolean isSupported(Type type)
RecordValueConverterProvider
visit(...)
method returns
a converter for the type. If the type is not supported then the visit(...)
method returns null
.isSupported
in interface ValueConverterProvider
isSupported
in class RecordValueConverterProvider
type
- the type to checktrue
if the type is supported by this provider;
otherwise false
.public ValueConverter visit(MapType mapType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
visit
in class RecordValueConverterProvider
mapType
- map type to be visitedJsonProcessingException
public ValueConverter visit(ObjectType objectType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
visit
in class RecordValueConverterProvider
JsonProcessingException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.