public class RecordValueConverterProvider extends Object implements ValueConverterProvider
Map<Object, Object>
and
record types.Constructor and Description |
---|
RecordValueConverterProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSupported(Type type)
Indicates if a type is supported by this provider.
|
ValueConverter |
visit(BinaryType binaryType)
Visits the binary base type.
|
ValueConverter |
visit(BooleanType booleanType)
Visits the boolean type.
|
ValueConverter |
visit(ClosureType closureType)
Visits the closure type.
|
ValueConverter |
visit(CollectionType collectionType)
Visits the collection type.
|
ValueConverter |
visit(DateType dateType)
Visits the date type.
|
ValueConverter |
visit(DecimalType decimalType)
Visits the decimal type.
|
ValueConverter |
visit(EnumerationBaseType enumerationType)
Visits the enumeration base type.
|
ValueConverter |
visit(EnumerationType enumerationType)
Visits the enumeration type.
|
ValueConverter |
visit(FreeType freeType)
Visits the free type.
|
ValueConverter |
visit(IntegerType integerType)
Visits the integer type.
|
ValueConverter |
visit(InterfaceType interfaceType)
Visits the interface type.
|
ValueConverter |
visit(IntersectionType intersectionType)
Visits the intersection type.
|
ValueConverter |
visit(ListType listType)
Visits the list type.
|
ValueConverter |
visit(LocalDateType type)
Visits the LocalDate type.
|
ValueConverter |
visit(MapType mapType)
Visits the map type.
|
ValueConverter |
visit(NullType nullType)
Visits the null type.
|
ValueConverter |
visit(ObjectType objectType)
Visits the object type.
|
ValueConverter |
visit(PropertyPathType propertyPathType)
Visits the property path type.
|
ValueConverter |
visit(PropertyType propertyType)
Visits the property type.
|
ValueConverter |
visit(RecordBaseType recordType)
Visits the record base type.
|
ValueConverter |
visit(RecordType recordType)
Visits the record type.
|
ValueConverter |
visit(ReferenceType referenceType)
Visits the (typed) reference type.
|
ValueConverter |
visit(SetType setType)
Visits the set type.
|
ValueConverter |
visit(StringType stringType)
Visits the string type.
|
ValueConverter |
visit(TypeType typeType)
Visits the type type.
|
ValueConverter |
visit(VoidType voidType)
Visits the void type.
|
public boolean isSupported(Type type)
visit(...)
method returns
a converter for the type. If the type is not supported then the visit(...)
method returns null
.isSupported
in interface ValueConverterProvider
type
- the type to checktrue
if the type is supported by this provider;
otherwise false
.public ValueConverter visit(BooleanType booleanType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(IntegerType integerType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(DecimalType decimalType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(DateType dateType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(LocalDateType type) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(StringType stringType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(ObjectType objectType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(NullType nullType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
nullType
- null type to be visitedJsonProcessingException
public ValueConverter visit(SetType setType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
setType
- set type to be visitedJsonProcessingException
public ValueConverter visit(ListType listType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
listType
- list type to be visitedJsonProcessingException
public ValueConverter visit(MapType mapType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
mapType
- map type to be visitedJsonProcessingException
public ValueConverter visit(RecordType recordType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
recordType
- record type to be visitedJsonProcessingException
public ValueConverter visit(ClosureType closureType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
closureType
- closure type to be visitedJsonProcessingException
public ValueConverter visit(ReferenceType referenceType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
referenceType
- reference type to be visitedJsonProcessingException
public ValueConverter visit(TypeType typeType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
typeType
- free type to be visitedJsonProcessingException
public ValueConverter visit(FreeType freeType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
freeType
- free type to be visitedJsonProcessingException
public ValueConverter visit(CollectionType collectionType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
collectionType
- a collection type to be visitedJsonProcessingException
public ValueConverter visit(EnumerationType enumerationType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
enumerationType
- an enumeration type to be visitedJsonProcessingException
public ValueConverter visit(EnumerationBaseType enumerationType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
enumerationType
- an enumeration type to be visitedJsonProcessingException
public ValueConverter visit(BinaryType binaryType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
binaryType
- a binary type to be visitedJsonProcessingException
public ValueConverter visit(RecordBaseType recordType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
recordType
- a record type to be visitedJsonProcessingException
public ValueConverter visit(PropertyPathType propertyPathType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
propertyPathType
- a property path type to be visitedJsonProcessingException
public ValueConverter visit(PropertyType propertyType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
propertyType
- a property type to be visitedJsonProcessingException
public ValueConverter visit(InterfaceType interfaceType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(IntersectionType intersectionType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
JsonProcessingException
public ValueConverter visit(VoidType voidType) throws JsonProcessingException
TypeVisitor
visit
in interface TypeVisitor<ValueConverter,JsonProcessingException>
voidType
- a void type to be visitedJsonProcessingException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.