| Modifier and Type | Class and Description |
|---|---|
| public static class | StdKeySerializers.
References Deprecated
This is a "chameleon" style multi-type key serializer for simple
standard JDK types.
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static class | StdKeySerializers.
References Deprecated
Key serializer used when key type is not known statically, and actual key
serializer needs to be dynamically located.
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static class | StdKeySerializers.
References Deprecated
Specialized instance to use for Enum keys, as per [databind#1322]
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static class | StdKeySerializers.
References Deprecated
Simple and fast key serializer when keys are Strings.
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| 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
| |
References Deprecated
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
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. 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, 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.
| |
References Deprecated
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
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. Default implementation specifies no format. |
| 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. 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 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.
| |
References Deprecated
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
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)
References Deprecated
StdKeySerializers.EnumKeySerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public static StdKeySerializers. | construct(Class<?> enumType, EnumValues enumValues, EnumValues valuesByEnumNaming)
References Deprecated
StdKeySerializers.EnumKeySerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| 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. 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) | |
| EnumKeySerializer | back to summary |
|---|---|
protected EnumKeySerializer(Class<?> enumType, EnumValues values, EnumValues valuesByEnumNaming)
| |
| construct | back to summary |
|---|---|
| public static StdKeySerializers. References Deprecated
See corresponding docs for further information. | |
| construct | back to summary |
|---|---|
| public static StdKeySerializers. References Deprecated
See corresponding docs for further information. | |
| 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.
| |
References Deprecated
StdSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
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. 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, 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.
| |