Uses of Class
com.fasterxml.jackson.databind.jsontype.TypeSerializer
-
Packages that use TypeSerializer Package Description com.fasterxml.jackson.databind Basic data binding (mapping) functionality that allows for reading JSON content into Java Objects (POJOs) and JSON Trees (JsonNode
), as well as writing Java Objects and trees as JSON.com.fasterxml.jackson.databind.ext Contains extended support for "external" packages: things that may or may not be present in runtime environment, but that are commonly enough used so that explicit support can be added.com.fasterxml.jackson.databind.jsontype Package that contains interfaces that define how to implement functionality for dynamically resolving type during deserialization.com.fasterxml.jackson.databind.jsontype.impl Package that contains standard implementations forTypeResolverBuilder
andTypeIdResolver
.com.fasterxml.jackson.databind.module Package that contains classes and interfaces to help implement custom extensionModule
s (which are registered usingObjectMapper.registerModule(com.fasterxml.jackson.databind.Module)
.com.fasterxml.jackson.databind.node Contains concreteJsonNode
implementations Jackson uses for the Tree model.com.fasterxml.jackson.databind.ser Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.impl Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.std com.fasterxml.jackson.databind.type Package that contains concrete implementations ofJavaType
, as well as the factory (TypeFactory
) for constructing instances from various input data types (likeClass
,Type
) and programmatically (for structured types, arrays,List
s andMap
s).com.fasterxml.jackson.databind.util Utility classes for Mapper package. -
-
Uses of TypeSerializer in com.fasterxml.jackson.databind
Fields in com.fasterxml.jackson.databind declared as TypeSerializer Modifier and Type Field Description protected TypeSerializer
SequenceWriter. _typeSerializer
Methods in com.fasterxml.jackson.databind that return TypeSerializer Modifier and Type Method Description TypeSerializer
ObjectMapper.DefaultTypeResolverBuilder. buildTypeSerializer(SerializationConfig config, JavaType baseType, java.util.Collection<NamedType> subtypes)
TypeSerializer
SerializerProvider. findTypeSerializer(JavaType javaType)
Method called to get theTypeSerializer
to use for including Type Id necessary for serializing for the given Java class.TypeSerializer
ObjectWriter.Prefetch. getTypeSerializer()
Methods in com.fasterxml.jackson.databind with parameters of type TypeSerializer Modifier and Type Method Description void
JsonSerializable. serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.void
JsonSerializer. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
Method that can be called to ask implementation to serialize values of type this serializer handles, using specified type serializer for embedding necessary type information. -
Uses of TypeSerializer in com.fasterxml.jackson.databind.ext
Methods in com.fasterxml.jackson.databind.ext with parameters of type TypeSerializer Modifier and Type Method Description void
CoreXMLSerializers.XMLGregorianCalendarSerializer. serializeWithType(javax.xml.datatype.XMLGregorianCalendar value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
NioPathSerializer. serializeWithType(java.nio.file.Path value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
SqlBlobSerializer. serializeWithType(java.sql.Blob value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider ctxt, TypeSerializer typeSer)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.jsontype
Methods in com.fasterxml.jackson.databind.jsontype that return TypeSerializer Modifier and Type Method Description TypeSerializer
TypeResolverBuilder. buildTypeSerializer(SerializationConfig config, JavaType baseType, java.util.Collection<NamedType> subtypes)
Method for building type serializer based on current configuration of this builder.abstract TypeSerializer
TypeSerializer. forProperty(BeanProperty prop)
Method called to create contextual version, to be used for values of given property. -
Uses of TypeSerializer in com.fasterxml.jackson.databind.jsontype.impl
Subclasses of TypeSerializer in com.fasterxml.jackson.databind.jsontype.impl Modifier and Type Class Description class
AsArrayTypeSerializer
Type serializer that will embed type information in an array, as the first element, and actual value as the second element.class
AsExistingPropertyTypeSerializer
Type serializer used withJsonTypeInfo.As.EXISTING_PROPERTY
inclusion mechanism.class
AsExternalTypeSerializer
Type serializer that preferably embeds type information as an "external" type property; embedded in enclosing JSON object.class
AsPropertyTypeSerializer
Type serializer that preferably embeds type information as an additional JSON Object property, if possible (when resulting serialization would use JSON Object).class
AsWrapperTypeSerializer
Type wrapper that tries to use an extra JSON Object, with a single entry that has type name as key, to serialize type information.class
TypeSerializerBase
Methods in com.fasterxml.jackson.databind.jsontype.impl that return TypeSerializer Modifier and Type Method Description TypeSerializer
StdTypeResolverBuilder. buildTypeSerializer(SerializationConfig config, JavaType baseType, java.util.Collection<NamedType> subtypes)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.module
Methods in com.fasterxml.jackson.databind.module with parameters of type TypeSerializer Modifier and Type Method Description JsonSerializer<?>
SimpleSerializers. findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
SimpleSerializers. findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
SimpleSerializers. findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
SimpleSerializers. findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
SimpleSerializers. findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node with parameters of type TypeSerializer Modifier and Type Method Description void
ArrayNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
abstract void
BaseJsonNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer)
Type information is needed, even if JsonNode instances are "plain" JSON, since they may be mixed with other types.void
MissingNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
ObjectNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
ValueNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.ser
Fields in com.fasterxml.jackson.databind.ser declared as TypeSerializer Modifier and Type Field Description protected TypeSerializer
BeanPropertyWriter. _typeSerializer
If property being serialized needs type information to be included this is the type serializer to use.Methods in com.fasterxml.jackson.databind.ser that return TypeSerializer Modifier and Type Method Description TypeSerializer
BasicSerializerFactory. createTypeSerializer(SerializationConfig config, JavaType baseType)
Method called to construct a type serializer for values with given declared base type.abstract TypeSerializer
SerializerFactory. createTypeSerializer(SerializationConfig config, JavaType baseType)
Method called to create a type information serializer for given base type, if one is needed.TypeSerializer
BeanSerializerFactory. findPropertyContentTypeSerializer(JavaType containerType, SerializationConfig config, AnnotatedMember accessor)
Method called to create a type information serializer for values of given container property if one is needed.TypeSerializer
BeanSerializerFactory. findPropertyTypeSerializer(JavaType baseType, SerializationConfig config, AnnotatedMember accessor)
Method called to create a type information serializer for values of given non-container property if one is needed.TypeSerializer
BeanPropertyWriter. getTypeSerializer()
Methods in com.fasterxml.jackson.databind.ser with parameters of type TypeSerializer Modifier and Type Method Description protected BeanPropertyWriter
PropertyBuilder. _constructPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, java.lang.Object suppressableValue, java.lang.Class<?>[] includeInViews)
Overridable factory method for actual construction ofBeanPropertyWriter
; often needed if subclassingPropertyBuilder.buildWriter(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer<?>, com.fasterxml.jackson.databind.jsontype.TypeSerializer, com.fasterxml.jackson.databind.jsontype.TypeSerializer, com.fasterxml.jackson.databind.introspect.AnnotatedMember, boolean)
method.protected abstract ContainerSerializer<?>
ContainerSerializer. _withValueTypeSerializer(TypeSerializer vts)
Method that needs to be implemented to allow construction of a new serializer object with givenTypeSerializer
, used when addition type information is to be embedded.void
BeanPropertyWriter. assignTypeSerializer(TypeSerializer typeSer)
Method called to set, reset or clear the configured type serializer for property.protected JsonSerializer<?>
BasicSerializerFactory. buildArraySerializer(SerializerProvider prov, ArrayType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers forObject[]
(and subtypes, except for String).protected JsonSerializer<?>
BasicSerializerFactory. buildAtomicReferenceSerializer(SerializerProvider prov, ReferenceType refType, BeanDescription beanDesc, boolean staticTyping, TypeSerializer contentTypeSerializer, JsonSerializer<java.lang.Object> contentSerializer)
ContainerSerializer<?>
BasicSerializerFactory. buildCollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> valueSerializer)
protected JsonSerializer<?>
BasicSerializerFactory. buildCollectionSerializer(SerializerProvider prov, CollectionType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers forList
types that support efficient by-index accessContainerSerializer<?>
BasicSerializerFactory. buildIndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> valueSerializer)
protected JsonSerializer<?>
BasicSerializerFactory. buildMapSerializer(SerializerProvider prov, MapType type, BeanDescription beanDesc, boolean staticTyping, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers forMap
types.protected BeanPropertyWriter
PropertyBuilder. buildWriter(SerializerProvider prov, BeanPropertyDefinition propDef, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping)
JsonSerializer<?>
Serializers.Base. findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
Serializers. findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Method called by serialization framework first time a serializer is needed for specified array type.JsonSerializer<?>
Serializers.Base. findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
Serializers. findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Method called by serialization framework first time a serializer is needed for specified "Collection-like" type (type that acts likeCollection
, but does not implement it).JsonSerializer<?>
Serializers.Base. findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
Serializers. findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Method called by serialization framework first time a serializer is needed for specifiedCollection
type.JsonSerializer<?>
Serializers.Base. findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
Serializers. findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Method called by serialization framework first time a serializer is needed for specified "Map-like" type (type that acts likeMap
, but does not implement it).JsonSerializer<?>
Serializers.Base. findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
JsonSerializer<?>
Serializers. findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Method called by serialization framework first time a serializer is needed for specifiedMap
type.JsonSerializer<?>
Serializers.Base. findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<java.lang.Object> contentValueSerializer)
JsonSerializer<?>
Serializers. findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<java.lang.Object> contentValueSerializer)
Method called by serialization framework first time a serializer is needed for givenReferenceType
void
DefaultSerializerProvider. serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Object value, JavaType rootType, JsonSerializer<java.lang.Object> valueSer, TypeSerializer typeSer)
Alternate serialization call used for polymorphic types, whenTypeSerializer
is already known, but the actual serializer may or may not be.protected boolean
BasicSerializerFactory. usesStaticTyping(SerializationConfig config, BeanDescription beanDesc, TypeSerializer typeSer)
Helper method to check whether global settings and/or class annotations for the bean class indicate that static typing (declared types) should be used for properties.ContainerSerializer<?>
ContainerSerializer. withValueTypeSerializer(TypeSerializer vts)
Factory(-like) method that can be used to construct a new container serializer that uses specifiedTypeSerializer
for decorating contained values with additional type information.Constructors in com.fasterxml.jackson.databind.ser with parameters of type TypeSerializer Constructor Description BeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, java.lang.Object suppressableValue)
Deprecated.BeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, java.lang.Object suppressableValue, java.lang.Class<?>[] includeInViews)
VirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, com.fasterxml.jackson.annotation.JsonInclude.Value inclusion)
Deprecated.VirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, com.fasterxml.jackson.annotation.JsonInclude.Value inclusion, java.lang.Class<?>[] includeInViews)
Pass-through constructor that may be used by sub-classes that want full control over implementation. -
Uses of TypeSerializer in com.fasterxml.jackson.databind.ser.impl
Fields in com.fasterxml.jackson.databind.ser.impl declared as TypeSerializer Modifier and Type Field Description protected TypeSerializer
TypeWrappedSerializer. _typeSerializer
protected TypeSerializer
MapEntrySerializer. _valueTypeSerializer
Type identifier serializer used for values, if any.Methods in com.fasterxml.jackson.databind.ser.impl that return TypeSerializer Modifier and Type Method Description TypeSerializer
TypeWrappedSerializer. typeSerializer()
Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type TypeSerializer Modifier and Type Method Description ContainerSerializer<?>
IndexedListSerializer. _withValueTypeSerializer(TypeSerializer vts)
ContainerSerializer<?>
IteratorSerializer. _withValueTypeSerializer(TypeSerializer vts)
ContainerSerializer<?>
MapEntrySerializer. _withValueTypeSerializer(TypeSerializer vts)
ContainerSerializer<?>
StringArraySerializer. _withValueTypeSerializer(TypeSerializer vts)
Strings never add type info; hence, even if type serializer is suggested, we'll ignore it...void
BeanAsArraySerializer. serializeWithType(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
IndexedStringListSerializer. serializeWithType(java.util.List<java.lang.String> value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
MapEntrySerializer. serializeWithType(java.util.Map.Entry<?,?> value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
StringCollectionSerializer. serializeWithType(java.util.Collection<java.lang.String> value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
TypeWrappedSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
UnknownSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
UnwrappingBeanSerializer. serializeWithType(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
IndexedListSerializer
IndexedListSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
IteratorSerializer
IteratorSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.ser.std
Fields in com.fasterxml.jackson.databind.ser.std declared as TypeSerializer Modifier and Type Field Description protected TypeSerializer
MapProperty. _typeSerializer
protected TypeSerializer
AsArraySerializerBase. _valueTypeSerializer
Type serializer used for values, if any.protected TypeSerializer
JsonValueSerializer. _valueTypeSerializer
protected TypeSerializer
MapSerializer. _valueTypeSerializer
Type identifier serializer used for values, if any.protected TypeSerializer
ObjectArraySerializer. _valueTypeSerializer
Type serializer to use for values, if any.protected TypeSerializer
ReferenceTypeSerializer. _valueTypeSerializer
Type serializer used for values, if any.Methods in com.fasterxml.jackson.databind.ser.std with parameters of type TypeSerializer Modifier and Type Method Description protected void
BeanSerializerBase. _serializeObjectId(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer, WritableObjectId objectId)
protected void
BeanSerializerBase. _serializeWithObjectId(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
protected com.fasterxml.jackson.core.type.WritableTypeId
BeanSerializerBase. _typeIdDef(TypeSerializer typeSer, java.lang.Object bean, com.fasterxml.jackson.core.JsonToken valueShape)
ContainerSerializer<?>
CollectionSerializer. _withValueTypeSerializer(TypeSerializer vts)
EnumSetSerializer
EnumSetSerializer. _withValueTypeSerializer(TypeSerializer vts)
ContainerSerializer<?>
IterableSerializer. _withValueTypeSerializer(TypeSerializer vts)
MapSerializer
MapSerializer. _withValueTypeSerializer(TypeSerializer vts)
ContainerSerializer<?>
ObjectArraySerializer. _withValueTypeSerializer(TypeSerializer vts)
ContainerSerializer<?>
StdArraySerializers.BooleanArraySerializer. _withValueTypeSerializer(TypeSerializer vts)
Booleans never add type info; hence, even if type serializer is suggested, we'll ignore it...ContainerSerializer<?>
StdArraySerializers.DoubleArraySerializer. _withValueTypeSerializer(TypeSerializer vts)
Doubles never add type info; hence, even if type serializer is suggested, we'll ignore it...ContainerSerializer<?>
StdArraySerializers.IntArraySerializer. _withValueTypeSerializer(TypeSerializer vts)
Ints never add type info; hence, even if type serializer is suggested, we'll ignore it...ContainerSerializer<?>
StdArraySerializers.TypedPrimitiveArraySerializer. _withValueTypeSerializer(TypeSerializer vts)
static MapSerializer
MapSerializer. construct(java.lang.String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<java.lang.Object> keySerializer, JsonSerializer<java.lang.Object> valueSerializer, java.lang.Object filterId)
Deprecated.Since 2.8 use the other overloadstatic MapSerializer
MapSerializer. construct(java.util.Set<java.lang.String> ignoredEntries, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<java.lang.Object> keySerializer, JsonSerializer<java.lang.Object> valueSerializer, java.lang.Object filterId)
static MapSerializer
MapSerializer. construct(java.util.Set<java.lang.String> ignoredEntries, java.util.Set<java.lang.String> includedEntries, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<java.lang.Object> keySerializer, JsonSerializer<java.lang.Object> valueSerializer, java.lang.Object filterId)
void
ArraySerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
AsArraySerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
BeanSerializerBase. serializeWithType(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
BooleanSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
ByteArraySerializer. serializeWithType(byte[] value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
InetAddressSerializer. serializeWithType(java.net.InetAddress value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
InetSocketAddressSerializer. serializeWithType(java.net.InetSocketAddress value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
JsonValueSerializer. serializeWithType(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider ctxt, TypeSerializer typeSer0)
void
MapSerializer. serializeWithType(java.util.Map<?,?> value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
NonTypedScalarSerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
Deprecated.void
NullSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
Although this method should rarely get called, for convenience we should override it, and handle it same way as "natural" types: by serializing exactly as is, without type decorations.void
NumberSerializers.DoubleSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
NumberSerializers.IntegerSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
RawSerializer. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
ReferenceTypeSerializer. serializeWithType(T ref, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
SerializableSerializer. serializeWithType(JsonSerializable value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
abstract void
StaticListSerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
StdArraySerializers.CharArraySerializer. serializeWithType(char[] value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
StdDelegatingSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
StdScalarSerializer. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix.void
StringSerializer. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
TimeZoneSerializer. serializeWithType(java.util.TimeZone value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
void
TokenBufferSerializer. serializeWithType(TokenBuffer value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
Implementing typed output for contents of a TokenBuffer is very tricky, since we do not know for sure what its contents might look like (or, rather, we do know when serializing, but not necessarily when deserializing!) One possibility would be to check the current token, and use that to determine if we would output JSON Array, Object or scalar value.void
ToStringSerializerBase. serializeWithType(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
Default implementation will write type prefix, call regular serialization method (since assumption is that value itself does not need JSON Array or Object start/end markers), and then write type suffix.AsArraySerializerBase<T>
AsArraySerializerBase. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer)
Deprecated.since 2.6: use the overloaded method that takes 'unwrapSingle'abstract AsArraySerializerBase<T>
AsArraySerializerBase. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
protected ReferenceTypeSerializer<java.util.concurrent.atomic.AtomicReference<?>>
AtomicReferenceSerializer. withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper)
CollectionSerializer
CollectionSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
EnumSetSerializer
EnumSetSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
IterableSerializer
IterableSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
protected JsonValueSerializer
JsonValueSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> ser, boolean forceTypeInfo)
ObjectArraySerializer
ObjectArraySerializer. withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> ser, java.lang.Boolean unwrapSingle)
protected abstract ReferenceTypeSerializer<T>
ReferenceTypeSerializer. withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper)
Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated.Constructors in com.fasterxml.jackson.databind.ser.std with parameters of type TypeSerializer Constructor Description AsArraySerializerBase(AsArraySerializerBase<?> src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer)
Deprecated.since 2.6: use the overloaded method that takes 'unwrapSingle'AsArraySerializerBase(AsArraySerializerBase<?> src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
AsArraySerializerBase(java.lang.Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
General purpose constructor.AsArraySerializerBase(java.lang.Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<java.lang.Object> elementSerializer)
Deprecated.Since 2.6 Use variants that either take 'src', or do NOT pass BeanPropertyAsArraySerializerBase(java.lang.Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> elementSerializer)
Non-contextual, "blueprint" constructor typically called when the first instance is created, without knowledge of property it was used via.AtomicReferenceSerializer(AtomicReferenceSerializer base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, java.lang.Object suppressableValue, boolean suppressNulls)
AtomicReferenceSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> ser)
CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<java.lang.Object> valueSerializer)
Deprecated.since 2.6CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> valueSerializer)
CollectionSerializer(CollectionSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, java.lang.Boolean unwrapSingle)
EnumSetSerializer(EnumSetSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, java.lang.Boolean unwrapSingle)
IterableSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts)
IterableSerializer(IterableSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, java.lang.Boolean unwrapSingle)
JsonValueSerializer(AnnotatedMember accessor, TypeSerializer vts, JsonSerializer<?> ser)
JsonValueSerializer(JsonValueSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> ser, boolean forceTypeInfo)
MapProperty(TypeSerializer typeSer, BeanProperty prop)
MapSerializer(MapSerializer src, TypeSerializer vts, java.lang.Object suppressableValue)
Deprecated.// since 2.9MapSerializer(MapSerializer src, TypeSerializer vts, java.lang.Object suppressableValue, boolean suppressNulls)
MapSerializer(java.util.Set<java.lang.String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer)
Deprecated.in 2.12, remove from 3.0MapSerializer(java.util.Set<java.lang.String> ignoredEntries, java.util.Set<java.lang.String> includedEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer)
ObjectArraySerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> elementSerializer)
ObjectArraySerializer(ObjectArraySerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, java.lang.Boolean unwrapSingle)
ObjectArraySerializer(ObjectArraySerializer src, TypeSerializer vts)
ReferenceTypeSerializer(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, java.lang.Object suppressableValue, boolean suppressNulls)
ReferenceTypeSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<java.lang.Object> ser)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.type
Methods in com.fasterxml.jackson.databind.type with parameters of type TypeSerializer Modifier and Type Method Description void
TypeBase. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)
-
Uses of TypeSerializer in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util with parameters of type TypeSerializer Modifier and Type Method Description void
JSONPObject. serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)
void
JSONWrappedObject. serializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer)
void
RawValue. serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
-