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)
RecordValueConverterProvidervisit(...) method returns
a converter for the type. If the type is not supported then the visit(...) method returns null.isSupported in interface ValueConverterProviderisSupported in class RecordValueConverterProvidertype - the type to checktrue if the type is supported by this provider;
otherwise false.public ValueConverter visit(MapType mapType) throws JsonProcessingException
TypeVisitorvisit in interface TypeVisitor<ValueConverter,JsonProcessingException>visit in class RecordValueConverterProvidermapType - map type to be visitedJsonProcessingExceptionpublic ValueConverter visit(ObjectType objectType) throws JsonProcessingException
TypeVisitorvisit in interface TypeVisitor<ValueConverter,JsonProcessingException>visit in class RecordValueConverterProviderJsonProcessingExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.