public class ProtobufSchemaGenerator extends ProtoBufSchemaVisitor
ProtobufSchema
for a given Java POJO, using
definitions Jackson would use for serialization. An instance is typically
given to
ObjectMapper.acceptJsonFormatVisitor(java.lang.Class<?>, com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper)
which will invoke necessary callbacks.Modifier and Type | Field and Description |
---|---|
protected HashSet<com.fasterxml.jackson.databind.JavaType> |
_generated |
protected com.fasterxml.jackson.databind.JavaType |
_rootType |
_builder, _definedTypeElementBuilders, _isNested, _simpleType
Constructor and Description |
---|
ProtobufSchemaGenerator() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor |
expectArrayFormat(com.fasterxml.jackson.databind.JavaType convertedType) |
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.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) |
ProtobufSchema |
getGeneratedSchema() |
ProtobufSchema |
getGeneratedSchema(boolean appendDependencies) |
_throwUnsupported, _throwUnsupported, build, buildWithDependencies, expectAnyFormat, expectNullFormat, getSimpleType
protected HashSet<com.fasterxml.jackson.databind.JavaType> _generated
protected com.fasterxml.jackson.databind.JavaType _rootType
public ProtobufSchema getGeneratedSchema() throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
public ProtobufSchema getGeneratedSchema(boolean appendDependencies) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor expectObjectFormat(com.fasterxml.jackson.databind.JavaType type)
expectObjectFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectObjectFormat
in class ProtoBufSchemaVisitor
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor expectMapFormat(com.fasterxml.jackson.databind.JavaType mapType)
expectMapFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectMapFormat
in class ProtoBufSchemaVisitor
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonArrayFormatVisitor expectArrayFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectArrayFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectArrayFormat
in class ProtoBufSchemaVisitor
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonStringFormatVisitor expectStringFormat(com.fasterxml.jackson.databind.JavaType type)
expectStringFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectStringFormat
in class ProtoBufSchemaVisitor
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonNumberFormatVisitor expectNumberFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectNumberFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectNumberFormat
in class ProtoBufSchemaVisitor
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonIntegerFormatVisitor expectIntegerFormat(com.fasterxml.jackson.databind.JavaType type)
expectIntegerFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectIntegerFormat
in class ProtoBufSchemaVisitor
public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonBooleanFormatVisitor expectBooleanFormat(com.fasterxml.jackson.databind.JavaType convertedType)
expectBooleanFormat
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
expectBooleanFormat
in class ProtoBufSchemaVisitor
Copyright © 2019 FasterXML. All rights reserved.