public class VisitorFormatWrapperImpl extends Object implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
Modifier and Type | Field and Description |
---|---|
protected SchemaBuilder |
_builder
Visitor used for resolving actual Schema, if structured type
(or one with complex configuration)
|
protected boolean |
_logicalTypesEnabled |
protected com.fasterxml.jackson.databind.SerializerProvider |
_provider |
protected DefinedSchemas |
_schemas |
protected org.apache.avro.Schema |
_valueSchema
Schema for simple types that do not need a visitor.
|
Modifier | Constructor and Description |
---|---|
|
VisitorFormatWrapperImpl(DefinedSchemas schemas,
com.fasterxml.jackson.databind.SerializerProvider p) |
protected |
VisitorFormatWrapperImpl(VisitorFormatWrapperImpl src) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
_throwUnsupported() |
protected <T> T |
_throwUnsupported(String msg) |
protected VisitorFormatWrapperImpl |
createChildWrapper()
Creates new
VisitorFormatWrapperImpl instance with shared schemas,
serialization provider and same configuration. |
VisitorFormatWrapperImpl |
disableLogicalTypes()
Disables Avro schema with Logical Types generation.
|
VisitorFormatWrapperImpl |
enableLogicalTypes()
Enables Avro schema with Logical Types generation.
|
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonAnyFormatVisitor |
expectAnyFormat(com.fasterxml.jackson.databind.JavaType convertedType) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor |
expectArrayFormat(com.fasterxml.jackson.databind.JavaType convertedType) |
void |
expectAvroFormat(AvroSchema schema) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonBooleanFormatVisitor |
expectBooleanFormat(com.fasterxml.jackson.databind.JavaType convertedType) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor |
expectIntegerFormat(com.fasterxml.jackson.databind.JavaType type) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor |
expectMapFormat(com.fasterxml.jackson.databind.JavaType mapType) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNullFormatVisitor |
expectNullFormat(com.fasterxml.jackson.databind.JavaType convertedType) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNumberFormatVisitor |
expectNumberFormat(com.fasterxml.jackson.databind.JavaType convertedType) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor |
expectObjectFormat(com.fasterxml.jackson.databind.JavaType type) |
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor |
expectStringFormat(com.fasterxml.jackson.databind.JavaType type) |
org.apache.avro.Schema |
getAvroSchema() |
com.fasterxml.jackson.databind.SerializerProvider |
getProvider() |
protected DefinedSchemas |
getSchemas() |
boolean |
isLogicalTypesEnabled() |
void |
setProvider(com.fasterxml.jackson.databind.SerializerProvider provider) |
protected com.fasterxml.jackson.databind.SerializerProvider _provider
protected final DefinedSchemas _schemas
protected boolean _logicalTypesEnabled
protected SchemaBuilder _builder
protected org.apache.avro.Schema _valueSchema
public VisitorFormatWrapperImpl(DefinedSchemas schemas, com.fasterxml.jackson.databind.SerializerProvider p)
protected VisitorFormatWrapperImpl(VisitorFormatWrapperImpl src)
protected VisitorFormatWrapperImpl createChildWrapper()
VisitorFormatWrapperImpl
instance with shared schemas,
serialization provider and same configuration.public com.fasterxml.jackson.databind.SerializerProvider getProvider()
getProvider
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializerProvider
public void setProvider(com.fasterxml.jackson.databind.SerializerProvider provider)
setProvider
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializerProvider
protected DefinedSchemas getSchemas()
public org.apache.avro.Schema getAvroSchema()
public VisitorFormatWrapperImpl enableLogicalTypes()
public VisitorFormatWrapperImpl disableLogicalTypes()
public boolean isLogicalTypesEnabled()
public void expectAvroFormat(AvroSchema schema)
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor expectObjectFormat(com.fasterxml.jackson.databind.JavaType type)
expectObjectFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor expectMapFormat(com.fasterxml.jackson.databind.JavaType mapType)
expectMapFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor expectArrayFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectArrayFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor expectStringFormat(com.fasterxml.jackson.databind.JavaType type)
expectStringFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNumberFormatVisitor expectNumberFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectNumberFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor expectIntegerFormat(com.fasterxml.jackson.databind.JavaType type)
expectIntegerFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonBooleanFormatVisitor expectBooleanFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectBooleanFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNullFormatVisitor expectNullFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectNullFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonAnyFormatVisitor expectAnyFormat(com.fasterxml.jackson.databind.JavaType convertedType) throws com.fasterxml.jackson.databind.JsonMappingException
expectAnyFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
com.fasterxml.jackson.databind.JsonMappingException
protected <T> T _throwUnsupported()
protected <T> T _throwUnsupported(String msg)
Copyright © 2021 FasterXML. All rights reserved.