java.lang.Object
tools.jackson.databind.ValueSerializer<T>
tools.jackson.databind.ser.std.StdSerializer<T>
tools.jackson.databind.ser.std.StdDynamicSerializer<T>
- All Implemented Interfaces:
JsonFormatVisitable
- Direct Known Subclasses:
JsonValueSerializer
,ReferenceTypeSerializer
Base class for standard serializers that are not (necessarily) container types
but that similarly handle content that may vary in ways to require dynamic lookups.
Typically these are referential or delegating types.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer
ValueSerializer.None
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PropertySerializerMap
If value type cannot be statically determined, mapping from runtime value types to serializers are stored in this object.protected final BeanProperty
Property for which this serializer is being used, if known at this point (`null` for root value serializers as well as those cached as blueprints).protected final ValueSerializer<Object>
Eagerly fetched serializer for actual value contained or referenced, if fetched.protected final TypeSerializer
Type serializer used for values, if any: used for serializing values of polymorphic types.Fields inherited from class tools.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
StdDynamicSerializer
(JavaType type, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) protected
StdDynamicSerializer
(StdDynamicSerializer<?> src, BeanProperty prop) protected
StdDynamicSerializer
(StdDynamicSerializer<?> src, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) -
Method Summary
Modifier and TypeMethodDescriptionprotected final ValueSerializer<Object>
_findAndAddDynamic
(SerializationContext ctxt, Class<?> type) protected final ValueSerializer<Object>
_findAndAddDynamic
(SerializationContext ctxt, Class<?> type, UnaryOperator<ValueSerializer<Object>> serTransformer) protected final ValueSerializer<Object>
_findAndAddDynamic
(SerializationContext ctxt, JavaType type) protected final ValueSerializer<Object>
_findAndAddDynamic
(SerializationContext ctxt, JavaType type, UnaryOperator<ValueSerializer<Object>> serTransformer) Methods inherited from class tools.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitor, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, serialize, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class tools.jackson.databind.ValueSerializer
createContextual, getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Field Details
-
_property
Property for which this serializer is being used, if known at this point (`null` for root value serializers as well as those cached as blueprints). -
_valueTypeSerializer
Type serializer used for values, if any: used for serializing values of polymorphic types. -
_valueSerializer
Eagerly fetched serializer for actual value contained or referenced, if fetched. -
_dynamicValueSerializers
If value type cannot be statically determined, mapping from runtime value types to serializers are stored in this object.- Since:
- 3.0 (in 2.x subtypes contained it)
-
-
Constructor Details
-
StdDynamicSerializer
protected StdDynamicSerializer(JavaType type, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) -
StdDynamicSerializer
-
StdDynamicSerializer
protected StdDynamicSerializer(StdDynamicSerializer<?> src, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer)
-
-
Method Details
-
_findAndAddDynamic
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, Class<?> type) -
_findAndAddDynamic
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, Class<?> type, UnaryOperator<ValueSerializer<Object>> serTransformer) -
_findAndAddDynamic
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, JavaType type) -
_findAndAddDynamic
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, JavaType type, UnaryOperator<ValueSerializer<Object>> serTransformer)
-