| Modifier and Type | Class and Description |
|---|---|
| public static class | JDKKeySerializers.
This is a "chameleon" style multi-type key serializer for simple standard JDK types. |
| public static class | JDKKeySerializers.
Key serializer used when key type is not known statically, and actual key serializer needs to be dynamically located. |
| public static class | JDKKeySerializers.
Specialized instance to use for Enum keys, as per [databind#1322] |
| public static class | JDKKeySerializers.
Simple and fast key serializer when keys are Strings. |
| Modifier and Type | Field and Description |
|---|---|
| protected static final ValueSerializer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ValueSerializer | getFallbackKeySerializer(SerializationConfig config, Class<?> rawKeyType, AnnotatedClass annotatedClass)
Method called if no specified key serializer was located; will return a
"default" key serializer initialized by |
| public static ValueSerializer | getStdKeySerializer(SerializationConfig
Serialization configuration in use, may be needed in choosing
serializer to use config, Class<?> Type of key values to serialize rawKeyType, boolean If no match is found, should we return fallback deserializer
(true), or null (false)? useDefault)
|
| DEFAULT_STRING_SERIALIZER | back to summary |
|---|---|
| protected static final ValueSerializer<Object> DEFAULT_STRING_SERIALIZER | |
| JDKKeySerializers | back to summary |
|---|---|
| public JDKKeySerializers() | |
| getFallbackKeySerializer | back to summary |
|---|---|
| public static ValueSerializer Method called if no specified key serializer was located; will return a
"default" key serializer initialized by
| |
| getStdKeySerializer | back to summary |
|---|---|
public static ValueSerializer
| |
Todo
Should (but does not yet) support re-configuring format used for
java. and java. key serializers,
as well as alternative configuration of Enum key serializers.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Modifier and Type | Method and Description |
|---|---|
| public void | serialize(Object value, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| _typeId | back to summary |
|---|---|
| protected final int _typeId | |
| TYPE_BYTE_ARRAY | back to summary |
|---|---|
| pack-priv static final int TYPE_BYTE_ARRAY | |
| TYPE_CALENDAR | back to summary |
|---|---|
| pack-priv static final int TYPE_CALENDAR | |
| TYPE_CLASS | back to summary |
|---|---|
| pack-priv static final int TYPE_CLASS | |
| TYPE_DATE | back to summary |
|---|---|
| pack-priv static final int TYPE_DATE | |
| TYPE_ENUM | back to summary |
|---|---|
| pack-priv static final int TYPE_ENUM | |
| TYPE_INTEGER | back to summary |
|---|---|
| pack-priv static final int TYPE_INTEGER | |
| TYPE_LONG | back to summary |
|---|---|
| pack-priv static final int TYPE_LONG | |
| TYPE_TO_STRING | back to summary |
|---|---|
| pack-priv static final int TYPE_TO_STRING | |
| Default | back to summary |
|---|---|
| public Default(int typeId, Class<?> type) | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected transient PropertySerializerMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected ValueSerializer | |
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Overrides tools. Implements tools. Default implementation specifies no format. |
| pack-priv Object | |
| public void | serialize(Object value, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| _dynamicSerializers | back to summary |
|---|---|
| protected transient PropertySerializerMap _dynamicSerializers | |
| Dynamic | back to summary |
|---|---|
| public Dynamic() | |
| _findAndAddDynamic | back to summary |
|---|---|
| protected ValueSerializer | |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Overrides tools. Implements tools. Doc from tools. Default implementation specifies no format. This behavior is usually overriden by custom serializers.
| |
| readResolve | back to summary |
|---|---|
| pack-priv Object readResolve() | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final EnumValues | |
| protected final EnumValues | _valuesByEnumNaming
Map with key as converted property class defined implementation of |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static JDKKeySerializers. | |
| public static JDKKeySerializers. | |
| public void | serialize(Object value, JsonGenerator g, SerializationContext serializers)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| _values | back to summary |
|---|---|
| protected final EnumValues _values | |
| _valuesByEnumNaming | back to summary |
|---|---|
| protected final EnumValues _valuesByEnumNaming Map with key as converted property class defined implementation of | |
| EnumKeySerializer | back to summary |
|---|---|
| protected EnumKeySerializer(Class<?> enumType, EnumValues values)
Deprecated
| |
| EnumKeySerializer | back to summary |
|---|---|
| protected EnumKeySerializer(Class<?> enumType, EnumValues values, EnumValues valuesByEnumNaming) | |
| construct | back to summary |
|---|---|
| public static JDKKeySerializers. | |
| construct | back to summary |
|---|---|
| public static JDKKeySerializers. | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializationContext serializers) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | serialize(Object value, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| StringKeySerializer | back to summary |
|---|---|
| public StringKeySerializer() | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |