public static class JacksonSerializers.EnumTranslatingSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Enum> implements JsonSchemaPropertyCustomizer
| Constructor and Description |
|---|
EnumTranslatingSerializer(EnumTranslator translator)
Creates a new
JacksonSerializers.EnumTranslatingSerializer using the given EnumTranslator. |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema.JsonSchemaProperty |
customize(JsonSchema.JsonSchemaProperty property,
TypeInformation<?> type)
Returns the customized
JsonSchema.JsonSchemaProperty based on the given one and the given type. |
void |
serialize(Enum value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowpublic EnumTranslatingSerializer(EnumTranslator translator)
JacksonSerializers.EnumTranslatingSerializer using the given EnumTranslator.translator - must not be null.public void serialize(Enum value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
serialize in class com.fasterxml.jackson.databind.ser.std.StdSerializer<Enum>IOExceptionpublic JsonSchema.JsonSchemaProperty customize(JsonSchema.JsonSchemaProperty property, TypeInformation<?> type)
JsonSchemaPropertyCustomizerJsonSchema.JsonSchemaProperty based on the given one and the given type.customize in interface JsonSchemaPropertyCustomizerproperty - will never be null.type - will never be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.