public static class StdKeySerializers.EnumKeySerializer extends StdSerializer<java.lang.Object>
JsonSerializer.None| Modifier and Type | Field and Description |
|---|---|
protected EnumValues |
_values |
_handledType| Modifier | Constructor and Description |
|---|---|
protected |
StdKeySerializers.EnumKeySerializer(java.lang.Class<?> enumType,
EnumValues values) |
| Modifier and Type | Method and Description |
|---|---|
static StdKeySerializers.EnumKeySerializer |
construct(java.lang.Class<?> enumType,
EnumValues enumValues) |
void |
serialize(java.lang.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.
|
acceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowgetDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterIdprotected final EnumValues _values
protected StdKeySerializers.EnumKeySerializer(java.lang.Class<?> enumType,
EnumValues values)
public static StdKeySerializers.EnumKeySerializer construct(java.lang.Class<?> enumType, EnumValues enumValues)
public void serialize(java.lang.Object value,
com.fasterxml.jackson.core.JsonGenerator g,
SerializerProvider serializers)
throws java.io.IOException
JsonSerializerserialize in class StdSerializer<java.lang.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.java.io.IOException