Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.avro.schema

public Class EnumVisitor

extends Base
implements SchemaBuilder
Class Inheritance
All Implemented Interfaces
com.fasterxml.jackson.dataformat.avro.schema.SchemaBuilder
Imports
com.fasterxml.jackson.databind.BeanDescription, .JavaType, .SerializerProvider, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor, org.apache.avro.Schema, java.util.ArrayList, .Set

Specific visitor for Java Enum types that are to be exposed as Avro Enums. Used unless Java Enums are to be mapped to Avro Strings.
Since
2.18

Field Summary

Modifier and TypeField and Description
protected Set<String>
protected final SerializerProvider
protected final DefinedSchemas
protected final JavaType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Schema
public void
enumTypes(Set<String> enums)

Overrides com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormatVisitor.Base.enumTypes.

Implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormatVisitor.enumTypes.

Method called to indicate enumerated (String) values type being visited can take as values.

Field Detail

_enumsback to summary
protected Set<String> _enums
_providerback to summary
protected final SerializerProvider _provider
_schemasback to summary
protected final DefinedSchemas _schemas
_typeback to summary
protected final JavaType _type

Constructor Detail

EnumVisitorback to summary
public EnumVisitor(SerializerProvider provider, DefinedSchemas schemas, JavaType t)

Method Detail

builtAvroSchemaback to summary
public Schema builtAvroSchema()

Implements com.fasterxml.jackson.dataformat.avro.schema.SchemaBuilder.builtAvroSchema.

Annotations
@Override
enumTypesback to summary
public void enumTypes(Set<String> enums)

Overrides com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormatVisitor.Base.enumTypes.

Implements com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormatVisitor.enumTypes.

Doc from com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormatVisitor.enumTypes.

Method called to indicate enumerated (String) values type being visited can take as values.

Annotations
@Override