| Modifier and Type | Class and Description |
|---|---|
| public static class | StdKeySerializers.Default
Deprecated
as a consequence of This is a "chameleon" style multi-type key serializer for simple
standard JDK types.
StdSerializer being deprecated.
|
| public static class | StdKeySerializers.Dynamic
Deprecated
as a consequence of Key serializer used when key type is not known statically, and actual key
serializer needs to be dynamically located.
StdSerializer being deprecated.
|
| public static class | StdKeySerializers.EnumKeySerializer
Deprecated
as a consequence of Specialized instance to use for Enum keys, as per [databind#1322]
StdSerializer being deprecated.
|
| public static class | StdKeySerializers.StringKeySerializer
Deprecated
as a consequence of Simple and fast key serializer when keys are Strings.
StdSerializer being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| protected static final JsonSerializer | |
| protected static final JsonSerializer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static JsonSerializer | |
| public static JsonSerializer | 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 JsonSerializer | 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_KEY_SERIALIZER | back to summary |
|---|---|
protected static final JsonSerializer<Object> DEFAULT_KEY_SERIALIZER
| |
| DEFAULT_STRING_SERIALIZER | back to summary |
|---|---|
| protected static final JsonSerializer<Object> DEFAULT_STRING_SERIALIZER | |
| StdKeySerializers | back to summary |
|---|---|
| public StdKeySerializers() | |
| getDefault | back to summary |
|---|---|
| public static JsonSerializer Deprecated since 2.7
| |
| getFallbackKeySerializer | back to summary |
|---|---|
| public static JsonSerializer Method called if no specified key serializer was located; will return a
"default" key serializer initialized by
| |
| getStdKeySerializer | back to summary |
|---|---|
public static JsonSerializer
| |
Deprecated
as a consequence of StdSerializer being deprecated. See corresponding docs for further information.
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 to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. |
| _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, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
Deprecated
as a consequence of StdSerializer being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| protected transient PropertySerializerMap |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonSerializer | |
| public void | acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType
Type of element (entity like property) being visited typeHint)Overrides com. Implements com. |
| pack-priv Object | |
| public void | serialize(Object
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. |
| _dynamicSerializers | back to summary |
|---|---|
| protected transient PropertySerializerMap _dynamicSerializers | |
| Dynamic | back to summary |
|---|---|
| public Dynamic() | |
| _findAndAddDynamic | back to summary |
|---|---|
| protected JsonSerializer | |
| acceptJsonFormatVisitor | back to summary |
|---|---|
| public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException Overrides com. Implements com. Doc from com. 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, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
Deprecated
as a consequence of StdSerializer being deprecated. See corresponding docs for further information.
| 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 StdKeySerializers. | construct(Class<?> enumType, EnumValues enumValues)
Deprecated
as a consequence of
StdKeySerializers.EnumKeySerializer being deprecated.
|
| public static StdKeySerializers. | construct(Class<?> enumType, EnumValues enumValues, EnumValues valuesByEnumNaming)
Deprecated
as a consequence of
StdKeySerializers.EnumKeySerializer being deprecated.
|
| public void | serialize(Object
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. serializers)Implements abstract com. |
| _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) | |
| EnumKeySerializer | back to summary |
|---|---|
protected EnumKeySerializer(Class<?> enumType, EnumValues values, EnumValues valuesByEnumNaming)
| |
| construct | back to summary |
|---|---|
| public static StdKeySerializers. Deprecated as a consequence of | |
| construct | back to summary |
|---|---|
| public static StdKeySerializers. Deprecated as a consequence of | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializerProvider serializers) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
Deprecated
as a consequence of StdSerializer being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | serialize(Object
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. |
| StringKeySerializer | back to summary |
|---|---|
| public StringKeySerializer() | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |