Uses of Class
tools.jackson.databind.jsontype.TypeSerializer
Packages that use TypeSerializer
Package
Description
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.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.
Package that contains handlers specific to datatypes introduced in Java 8.
Package that contains handlers specific to SQL datatypes.
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver.Package that contains classes and interfaces to help implement
custom extension
JacksonModules
(which are registered on ObjectMapper via builders}.Contains concrete
JsonNode implementations
Jackson uses for the Tree model.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
Utility classes for Mapper package.
-
Uses of TypeSerializer in tools.jackson.databind
Fields in tools.jackson.databind declared as TypeSerializerMethods in tools.jackson.databind that return TypeSerializerModifier and TypeMethodDescriptionSerializationContext.findPropertyTypeSerializer(JavaType baseType, AnnotatedMember accessor) LikeSerializationContext.findTypeSerializer(JavaType), but for use from specific POJO property.SerializationContext.findTypeSerializer(JavaType baseType) Method called to get theTypeSerializerto use for including Type Id necessary for serializing for the given Java class.SerializationContext.findTypeSerializer(JavaType baseType, AnnotatedClass classAnnotations) Method called to get theTypeSerializerto use for including Type Id necessary for serializing for the given Java class.final TypeSerializerObjectWriter.Prefetch.getTypeSerializer()Methods in tools.jackson.databind with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidJacksonSerializable.serializeWithType(JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer) Serialization method called when additional type information is expected to be included in serialization, for deserialization to use.voidValueSerializer.serializeWithType(T value, JsonGenerator gen, SerializationContext ctxt, 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 tools.jackson.databind.ext
Methods in tools.jackson.databind.ext with parameters of type TypeSerializerModifier and TypeMethodDescriptionfinal voidQNameSerializer.serializeWithType(QName value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidXMLGregorianCalendarSerializer.serializeWithType(XMLGregorianCalendar value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) -
Uses of TypeSerializer in tools.jackson.databind.ext.javatime.ser
Methods in tools.jackson.databind.ext.javatime.ser with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidLocalDateSerializer.serializeWithType(LocalDate value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidLocalDateTimeSerializer.serializeWithType(LocalDateTime value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidLocalTimeSerializer.serializeWithType(LocalTime value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidMonthDaySerializer.serializeWithType(MonthDay value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidMonthSerializer.serializeWithType(Month value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidOffsetTimeSerializer.serializeWithType(OffsetTime value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidYearMonthSerializer.serializeWithType(YearMonth value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidZoneIdSerializer.serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) -
Uses of TypeSerializer in tools.jackson.databind.ext.jdk8
Methods in tools.jackson.databind.ext.jdk8 with parameters of type TypeSerializerModifier and TypeMethodDescriptionprotected ReferenceTypeSerializer<Optional<?>>Jdk8OptionalSerializer.withResolved(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) Constructors in tools.jackson.databind.ext.jdk8 with parameters of type TypeSerializerModifierConstructorDescriptionprotectedJdk8OptionalSerializer(Jdk8OptionalSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) Jdk8OptionalSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) -
Uses of TypeSerializer in tools.jackson.databind.ext.sql
Methods in tools.jackson.databind.ext.sql with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidJavaSqlBlobSerializer.serializeWithType(Blob value, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) -
Uses of TypeSerializer in tools.jackson.databind.jsontype
Methods in tools.jackson.databind.jsontype that return TypeSerializerModifier and TypeMethodDescriptionTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) Method for building type serializer based on current configuration of this builder.TypeResolverProvider.findPropertyContentTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType containerType) TypeResolverProvider.findPropertyTypeSerializer(SerializationContext ctxt, AnnotatedMember accessor, JavaType baseType) TypeResolverProvider.findTypeSerializer(SerializationContext ctxt, JavaType baseType, AnnotatedClass classInfo) Method for checking if given class has annotations that indicate that specific type resolver is to be used for handling instances of given type.abstract TypeSerializerTypeSerializer.forProperty(SerializationContext ctxt, BeanProperty prop) Method called to create contextual version, to be used for values of given property. -
Uses of TypeSerializer in tools.jackson.databind.jsontype.impl
Subclasses of TypeSerializer in tools.jackson.databind.jsontype.implModifier and TypeClassDescriptionclassType serializer that will embed type information in an array, as the first element, and actual value as the second element.classclassType serializer used withJsonTypeInfo.As.EXISTING_PROPERTYinclusion mechanism.classType serializer that preferably embeds type information as an "external" type property; embedded in enclosing JSON object.classType serializer that preferably embeds type information as an additional JSON Object property, if possible (when resulting serialization would use JSON Object).classType wrapper that tries to use an extra JSON Object, with a single entry that has type name as key, to serialize type information.classMethods in tools.jackson.databind.jsontype.impl that return TypeSerializerModifier and TypeMethodDescriptionDefaultTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) AsDeductionTypeSerializer.forProperty(SerializationContext ctxt, BeanProperty prop) -
Uses of TypeSerializer in tools.jackson.databind.module
Methods in tools.jackson.databind.module with parameters of type TypeSerializerModifier and TypeMethodDescriptionSimpleSerializers.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findMapSerializer(SerializationConfig config, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentValueSerializer) -
Uses of TypeSerializer in tools.jackson.databind.node
Methods in tools.jackson.databind.node with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidArrayNode.serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) abstract voidBaseJsonNode.serializeWithType(JsonGenerator jgen, SerializationContext ctxt, TypeSerializer typeSer) Type information is needed, even if JsonNode instances are "plain" JSON, since they may be mixed with other types.voidMissingNode.serializeWithType(JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) voidObjectNode.serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidValueNode.serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) -
Uses of TypeSerializer in tools.jackson.databind.ser
Fields in tools.jackson.databind.ser declared as TypeSerializerModifier and TypeFieldDescriptionprotected TypeSerializerBeanPropertyWriter._typeSerializerIf property being serialized needs type information to be included this is the type serializer to use.Methods in tools.jackson.databind.ser that return TypeSerializerModifier and TypeMethodDescriptionBasicSerializerFactory.findPropertyContentTypeSerializer(SerializationContext ctxt, JavaType containerType, AnnotatedMember accessor) Method called to create a type information serializer for values of given container property if one is needed.BeanPropertyWriter.getTypeSerializer()Methods in tools.jackson.databind.ser with parameters of type TypeSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<?>BasicSerializerFactory._buildReferenceSerializer(SerializationContext ctxt, Class<?> baseType, ReferenceType refType, BeanDescription.Supplier beanDescRef, boolean staticTyping, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentSerializer) protected BeanPropertyWriterPropertyBuilder._constructPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) Overridable factory method for actual construction ofBeanPropertyWriter; often needed if subclassingPropertyBuilder.buildWriter(tools.jackson.databind.SerializationContext, tools.jackson.databind.introspect.BeanPropertyDefinition, tools.jackson.databind.JavaType, tools.jackson.databind.ValueSerializer<?>, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.introspect.AnnotatedMember, boolean)method.voidBeanPropertyWriter.assignTypeSerializer(TypeSerializer typeSer) Method called to set, reset or clear the configured type serializer for property.protected ValueSerializer<?>BasicSerializerFactory.buildArraySerializer(SerializationContext ctxt, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forObject[](and subtypes, except for String).BasicSerializerFactory.buildCollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected ValueSerializer<?>BasicSerializerFactory.buildCollectionSerializer(SerializationContext ctxt, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forListtypes that support efficient by-index accessBasicSerializerFactory.buildIndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected ValueSerializer<?>BasicSerializerFactory.buildMapSerializer(SerializationContext ctxt, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forMaptypes.protected BeanPropertyWriterPropertyBuilder.buildWriter(SerializationContext ctxt, BeanPropertyDefinition propDef, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) default ValueSerializer<?>Serializers.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified array type.default ValueSerializer<?>Serializers.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<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).default ValueSerializer<?>Serializers.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedCollectiontype.default ValueSerializer<?>Serializers.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<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).default ValueSerializer<?>Serializers.findMapSerializer(SerializationConfig config, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedMaptype.default ValueSerializer<?>Serializers.findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentValueSerializer) Method called by serialization framework first time a serializer is needed for givenReferenceTypevoidSerializationContextExt.serializePolymorphic(JsonGenerator gen, Object value, JavaType rootType, ValueSerializer<Object> valueSer, TypeSerializer typeSer) Alternate serialization call used for polymorphic types, whenTypeSerializeris already known, but the actual serializer may or may not be.Constructors in tools.jackson.databind.ser with parameters of type TypeSerializerModifierConstructorDescriptionBeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) protectedVirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, JsonInclude.Value inclusion, Class<?>[] includeInViews) Pass-through constructor that may be used by sub-classes that want full control over implementation. -
Uses of TypeSerializer in tools.jackson.databind.ser.bean
Methods in tools.jackson.databind.ser.bean with parameters of type TypeSerializerModifier and TypeMethodDescriptionprotected voidBeanSerializerBase._serializeObjectId(Object bean, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer, WritableObjectId objectId) protected final voidBeanSerializerBase._serializeWithObjectId(Object bean, JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) protected final WritableTypeIdBeanSerializerBase._typeIdDef(TypeSerializer typeSer, Object bean, JsonToken valueShape) voidBeanAsArraySerializer.serializeWithType(Object bean, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) voidBeanSerializerBase.serializeWithType(Object bean, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) voidUnrolledBeanAsArraySerializer.serializeWithType(Object bean, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) voidUnwrappingBeanSerializer.serializeWithType(Object bean, JsonGenerator gen, SerializationContext provider, TypeSerializer typeSer) -
Uses of TypeSerializer in tools.jackson.databind.ser.impl
Fields in tools.jackson.databind.ser.impl declared as TypeSerializerModifier and TypeFieldDescriptionprotected final TypeSerializerTypeWrappedSerializer._typeSerializerMethods in tools.jackson.databind.ser.impl that return TypeSerializerMethods in tools.jackson.databind.ser.impl with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidTypeWrappedSerializer.serializeWithType(Object value, JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) final voidUnknownSerializer.serializeWithType(Object value, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) Constructors in tools.jackson.databind.ser.impl with parameters of type TypeSerializerModifierConstructorDescriptionTypeWrappedSerializer(TypeSerializer typeSer, ValueSerializer<?> ser) -
Uses of TypeSerializer in tools.jackson.databind.ser.jackson
Methods in tools.jackson.databind.ser.jackson with parameters of type TypeSerializerModifier and TypeMethodDescriptionstatic JsonValueSerializerJsonValueSerializer.construct(SerializationConfig config, JavaType nominalType, JavaType valueType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> ser, AnnotatedMember accessor) final voidJacksonSerializableSerializer.serializeWithType(JacksonSerializable value, JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer) voidJsonValueSerializer.serializeWithType(Object bean, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer0) voidRawSerializer.serializeWithType(T value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) final voidTokenBufferSerializer.serializeWithType(TokenBuffer value, JsonGenerator g, SerializationContext ctxt, 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!)JsonValueSerializer.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> ser, boolean forceTypeInfo) Constructors in tools.jackson.databind.ser.jackson with parameters of type TypeSerializerModifierConstructorDescriptionprotectedJsonValueSerializer(JavaType nominalType, JavaType valueType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> ser, AnnotatedMember accessor, Set<String> ignoredProperties) protectedJsonValueSerializer(JsonValueSerializer src, BeanProperty property, TypeSerializer vts, ValueSerializer<?> ser, boolean forceTypeInfo) -
Uses of TypeSerializer in tools.jackson.databind.ser.jdk
Fields in tools.jackson.databind.ser.jdk declared as TypeSerializerModifier and TypeFieldDescriptionprotected final TypeSerializerMapProperty._typeSerializerprotected final TypeSerializerMapEntrySerializer._valueTypeSerializerType identifier serializer used for values, if any.protected final TypeSerializerMapSerializer._valueTypeSerializerType identifier serializer used for values, if any.protected final TypeSerializerObjectArraySerializer._valueTypeSerializerType serializer to use for values, if any.Methods in tools.jackson.databind.ser.jdk with parameters of type TypeSerializerModifier and TypeMethodDescriptionprotected StdContainerSerializer<?>CollectionSerializer._withValueTypeSerializer(TypeSerializer vts) protected EnumSetSerializerEnumSetSerializer._withValueTypeSerializer(TypeSerializer vts) protected StdContainerSerializer<?>IndexedListSerializer._withValueTypeSerializer(TypeSerializer vts) protected StdContainerSerializer<?>IterableSerializer._withValueTypeSerializer(TypeSerializer vts) protected StdContainerSerializer<?>IteratorSerializer._withValueTypeSerializer(TypeSerializer vts) JDKArraySerializers.BooleanArraySerializer._withValueTypeSerializer(TypeSerializer vts) Booleans never add type info; hence, even if type serializer is suggested, we'll ignore it...JDKArraySerializers.DoubleArraySerializer._withValueTypeSerializer(TypeSerializer vts) Doubles never add type info; hence, even if type serializer is suggested, we'll ignore it...JDKArraySerializers.IntArraySerializer._withValueTypeSerializer(TypeSerializer vts) Ints never add type info; hence, even if type serializer is suggested, we'll ignore it...final StdContainerSerializer<?>JDKArraySerializers.TypedPrimitiveArraySerializer._withValueTypeSerializer(TypeSerializer vts) MapEntrySerializer._withValueTypeSerializer(TypeSerializer vts) protected MapSerializerMapSerializer._withValueTypeSerializer(TypeSerializer vts) ObjectArraySerializer._withValueTypeSerializer(TypeSerializer vts) StringArraySerializer._withValueTypeSerializer(TypeSerializer vts) Strings never add type info; hence, even if type serializer is suggested, we'll ignore it...static MapSerializerMapSerializer.construct(JavaType mapType, boolean staticValueType, TypeSerializer vts, ValueSerializer<Object> keySerializer, ValueSerializer<Object> valueSerializer, Object filterId, Set<String> ignoredEntries, Set<String> includedEntries) final voidBooleanSerializer.serializeWithType(Object value, JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) voidByteArraySerializer.serializeWithType(byte[] value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidIndexedStringListSerializer.serializeWithType(List<String> value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidInetAddressSerializer.serializeWithType(InetAddress value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidInetSocketAddressSerializer.serializeWithType(InetSocketAddress value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidJDKArraySerializers.BinaryDoubleArraySerializer.serializeWithType(double[] value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidJDKArraySerializers.BinaryFloatArraySerializer.serializeWithType(float[] value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidJDKArraySerializers.CharArraySerializer.serializeWithType(char[] value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidJDKStringLikeSerializer.serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, 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.voidMapEntrySerializer.serializeWithType(Map.Entry<?, ?> value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidMapSerializer.serializeWithType(Map<?, ?> value, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) voidNumberSerializers.DoubleSerializer.serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidNumberSerializers.IntegerSerializer.serializeWithType(Object value, JsonGenerator gen, SerializationContext provider, TypeSerializer typeSer) abstract voidStaticListSerializerBase.serializeWithType(T value, JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) voidStringCollectionSerializer.serializeWithType(Collection<String> value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) final voidStringSerializer.serializeWithType(Object value, JsonGenerator gen, SerializationContext provider, TypeSerializer typeSer) voidTimeZoneSerializer.serializeWithType(TimeZone value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) protected ReferenceTypeSerializer<AtomicReference<?>>AtomicReferenceSerializer.withResolved(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) protected CollectionSerializerCollectionSerializer.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) protected EnumSetSerializerEnumSetSerializer.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) IndexedListSerializer.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) IterableSerializer.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) IteratorSerializer.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) ObjectArraySerializer.withResolved(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> ser, Boolean unwrapSingle) Constructors in tools.jackson.databind.ser.jdk with parameters of type TypeSerializerModifierConstructorDescriptionprotectedAtomicReferenceSerializer(AtomicReferenceSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) AtomicReferenceSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protectedCollectionSerializer(CollectionSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) EnumSetSerializer(EnumSetSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) IndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) IndexedListSerializer(IndexedListSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) IterableSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts) IterableSerializer(IterableSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) IteratorSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts) IteratorSerializer(IteratorSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) MapEntrySerializer(JavaType type, JavaType keyType, JavaType valueType, boolean staticTyping, TypeSerializer vts, BeanProperty property) protectedMapEntrySerializer(MapEntrySerializer src, BeanProperty property, TypeSerializer vts, ValueSerializer<?> keySer, ValueSerializer<?> valueSer, Object suppressableValue, boolean suppressNulls) MapProperty(TypeSerializer typeSer, BeanProperty prop) protectedMapSerializer(Set<String> ignoredEntries, Set<String> includedEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, ValueSerializer<?> keySerializer, ValueSerializer<?> valueSerializer) protectedMapSerializer(MapSerializer src, TypeSerializer vts, Object suppressableValue, boolean suppressNulls) ObjectArraySerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> elementSerializer) ObjectArraySerializer(ObjectArraySerializer src, BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) -
Uses of TypeSerializer in tools.jackson.databind.ser.std
Fields in tools.jackson.databind.ser.std declared as TypeSerializerModifier and TypeFieldDescriptionprotected final TypeSerializerAsArraySerializerBase._valueTypeSerializerType serializer used for values, if any.protected final TypeSerializerStdDynamicSerializer._valueTypeSerializerType serializer used for values, if any: used for serializing values of polymorphic types.Methods in tools.jackson.databind.ser.std with parameters of type TypeSerializerModifier and TypeMethodDescriptionprotected abstract StdContainerSerializer<?>StdContainerSerializer._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.final voidArraySerializerBase.serializeWithType(T value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidAsArraySerializerBase.serializeWithType(T value, JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) voidNullSerializer.serializeWithType(Object value, JsonGenerator gen, SerializationContext 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.voidReferenceTypeSerializer.serializeWithType(T ref, JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) voidStdDelegatingSerializer.serializeWithType(Object value, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) voidStdScalarSerializer.serializeWithType(T value, JsonGenerator g, SerializationContext ctxt, 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.voidToEmptyObjectSerializer.serializeWithType(Object value, JsonGenerator gen, SerializationContext ctxt, TypeSerializer typeSer) voidToStringSerializerBase.serializeWithType(Object value, JsonGenerator g, SerializationContext ctxt, 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.protected abstract AsArraySerializerBase<T>AsArraySerializerBase.withResolved(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) protected abstract ReferenceTypeSerializer<T>ReferenceTypeSerializer.withResolved(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated.StdContainerSerializer.withValueTypeSerializer(TypeSerializer vts) Factory(-like) method that can be used to construct a new container serializer that uses specifiedTypeSerializerfor decorating contained values with additional type information.Constructors in tools.jackson.databind.ser.std with parameters of type TypeSerializerModifierConstructorDescriptionprotectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer) Non-contextual, "blueprint" constructor typically called when the first instance is created, without knowledge of property it was used via.protectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) General purpose constructor.protectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle, BeanProperty property) General purpose constructor.protectedAsArraySerializerBase(AsArraySerializerBase<?> src, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle, BeanProperty property) protectedReferenceTypeSerializer(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) ReferenceTypeSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) protectedStdDynamicSerializer(JavaType type, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) protectedStdDynamicSerializer(StdDynamicSerializer<?> src, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) -
Uses of TypeSerializer in tools.jackson.databind.type
Methods in tools.jackson.databind.type with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidTypeBase.serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer) -
Uses of TypeSerializer in tools.jackson.databind.util
Methods in tools.jackson.databind.util with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoidJSONPObject.serializeWithType(JsonGenerator gen, SerializationContext provider, TypeSerializer typeSer) voidJSONWrappedObject.serializeWithType(JsonGenerator g, SerializationContext provider, TypeSerializer typeSer) voidRawValue.serializeWithType(JsonGenerator gen, SerializationContext serializers, TypeSerializer typeSer)