JsonFormatVisitable, SchemaAware, Serializablepublic static class StdKeySerializers.EnumKeySerializer extends StdSerializer<Object>
JsonSerializer.None| Modifier and Type | Field | Description |
|---|---|---|
protected EnumValues |
_values |
_handledType| Modifier | Constructor | Description |
|---|---|---|
protected |
EnumKeySerializer(Class<?> enumType,
EnumValues values) |
| Modifier and Type | Method | Description |
|---|---|---|
static StdKeySerializers.EnumKeySerializer |
construct(Class<?> enumType,
EnumValues enumValues) |
|
void |
serialize(Object value,
com.fasterxml.jackson.core.JsonGenerator g,
SerializerProvider serializers) |
Method that can be called to ask implementation to serialize
values of type this serializer handles.
|
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowprotected final EnumValues _values
protected EnumKeySerializer(Class<?> enumType, EnumValues values)
public static StdKeySerializers.EnumKeySerializer construct(Class<?> enumType, EnumValues enumValues)
public void serialize(Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider serializers) throws IOException
JsonSerializerserialize in class StdSerializer<Object>value - Value to serialize; can not be null.g - Generator used to output resulting Json contentserializers - Provider that can be used to get serializers for
serializing Objects value contains, if any.IOExceptionCopyright © 2008–2018. All rights reserved.