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 forTypeResolverBuilderandTypeIdResolver.com.fasterxml.jackson.databind.module Package that contains classes and interfaces to help implement custom extensionModules (which are registered usingObjectMapper.registerModule(com.fasterxml.jackson.databind.Module).com.fasterxml.jackson.databind.node Contains concreteJsonNodeimplementations 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 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 TypeSerializerSequenceWriter. _typeSerializerMethods in com.fasterxml.jackson.databind that return TypeSerializer Modifier and Type Method Description TypeSerializerObjectMapper.DefaultTypeResolverBuilder. buildTypeSerializer(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes)TypeSerializerSerializerProvider. findTypeSerializer(JavaType javaType)Method called to get theTypeSerializerto use for including Type Id necessary for serializing for the given Java class.TypeSerializerObjectWriter.Prefetch. getTypeSerializer()Methods in com.fasterxml.jackson.databind with parameters of type TypeSerializer Modifier and Type Method Description voidJsonSerializable. 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.voidJsonSerializer. 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 voidCoreXMLSerializers.XMLGregorianCalendarSerializer. serializeWithType(XMLGregorianCalendar value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidNioPathSerializer. serializeWithType(Path value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, 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 TypeSerializerTypeResolverBuilder. buildTypeSerializer(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes)Method for building type serializer based on current configuration of this builder.abstract TypeSerializerTypeSerializer. 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 classAsArrayTypeSerializerType serializer that will embed type information in an array, as the first element, and actual value as the second element.classAsExistingPropertyTypeSerializerType serializer used withJsonTypeInfo.As.EXISTING_PROPERTYinclusion mechanism.classAsExternalTypeSerializerType serializer that preferably embeds type information as an "external" type property; embedded in enclosing JSON object.classAsPropertyTypeSerializerType serializer that preferably embeds type information as an additional JSON Object property, if possible (when resulting serialization would use JSON Object).classAsWrapperTypeSerializerType wrapper that tries to use an extra JSON Object, with a single entry that has type name as key, to serialize type information.classTypeSerializerBaseMethods in com.fasterxml.jackson.databind.jsontype.impl that return TypeSerializer Modifier and Type Method Description TypeSerializerStdTypeResolverBuilder. buildTypeSerializer(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes) -
Uses of TypeSerializer in com.fasterxml.jackson.databind.module
-
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 voidArrayNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)abstract voidBaseJsonNode. 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.voidMissingNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidObjectNode. serializeWithType(com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidValueNode. 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 TypeSerializerBeanPropertyWriter. _typeSerializerIf 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 TypeSerializerBasicSerializerFactory. createTypeSerializer(SerializationConfig config, JavaType baseType)Method called to construct a type serializer for values with given declared base type.abstract TypeSerializerSerializerFactory. createTypeSerializer(SerializationConfig config, JavaType baseType)Method called to create a type information serializer for given base type, if one is needed.TypeSerializerBeanSerializerFactory. 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.TypeSerializerBeanSerializerFactory. 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.TypeSerializerBeanPropertyWriter. getTypeSerializer()Methods in com.fasterxml.jackson.databind.ser with parameters of type TypeSerializer Modifier and Type Method Description 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.voidBeanPropertyWriter. 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<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<Object> contentSerializer)ContainerSerializer<?>BasicSerializerFactory. buildCollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer)protected JsonSerializer<?>BasicSerializerFactory. buildCollectionSerializer(SerializerProvider prov, CollectionType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer)Helper method that handles configuration details when constructing serializers forListtypes that support efficient by-index accessContainerSerializer<?>BasicSerializerFactory. buildIndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer)protected JsonSerializer<?>BasicSerializerFactory. buildMapSerializer(SerializerProvider prov, MapType type, BeanDescription beanDesc, boolean staticTyping, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer)Helper method that handles configuration details when constructing serializers forMaptypes.protected BeanPropertyWriterPropertyBuilder. 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<Object> elementValueSerializer)JsonSerializer<?>Serializers. findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<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<Object> elementValueSerializer)JsonSerializer<?>Serializers. findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<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<Object> elementValueSerializer)JsonSerializer<?>Serializers. findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer)Method called by serialization framework first time a serializer is needed for specifiedCollectiontype.JsonSerializer<?>Serializers.Base. findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer)JsonSerializer<?>Serializers. findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<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<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer)JsonSerializer<?>Serializers. findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer)Method called by serialization framework first time a serializer is needed for specifiedMaptype.JsonSerializer<?>Serializers.Base. findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentValueSerializer)JsonSerializer<?>Serializers. findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentValueSerializer)Method called by serialization framework first time a serializer is needed for givenReferenceTypevoidDefaultSerializerProvider. serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator gen, Object value, JavaType rootType, JsonSerializer<Object> valueSer, TypeSerializer typeSer)Alternate serialization call used for polymorphic types, whenTypeSerializeris already known, but the actual serializer may or may not be.protected booleanBasicSerializerFactory. 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 specifiedTypeSerializerfor 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, Object suppressableValue)Deprecated.BeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, 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, 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 TypeSerializerTypeWrappedSerializer. _typeSerializerprotected TypeSerializerMapEntrySerializer. _valueTypeSerializerType identifier serializer used for values, if any.Methods in com.fasterxml.jackson.databind.ser.impl that return TypeSerializer Modifier and Type Method Description TypeSerializerTypeWrappedSerializer. 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...voidBeanAsArraySerializer. serializeWithType(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidIndexedStringListSerializer. serializeWithType(List<String> value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidMapEntrySerializer. serializeWithType(Map.Entry<?,?> value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidStringCollectionSerializer. serializeWithType(Collection<String> value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidTypeWrappedSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidUnknownSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidUnwrappingBeanSerializer. serializeWithType(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)IndexedListSerializerIndexedListSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle)IteratorSerializerIteratorSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, 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 TypeSerializerMapProperty. _typeSerializerprotected TypeSerializerAsArraySerializerBase. _valueTypeSerializerType serializer used for values, if any.protected TypeSerializerMapSerializer. _valueTypeSerializerType identifier serializer used for values, if any.protected TypeSerializerObjectArraySerializer. _valueTypeSerializerType serializer to use for values, if any.protected TypeSerializerReferenceTypeSerializer. _valueTypeSerializerType 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 voidBeanSerializerBase. _serializeObjectId(Object bean, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer, WritableObjectId objectId)protected voidBeanSerializerBase. _serializeWithObjectId(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)protected com.fasterxml.jackson.core.type.WritableTypeIdBeanSerializerBase. _typeIdDef(TypeSerializer typeSer, Object bean, com.fasterxml.jackson.core.JsonToken valueShape)ContainerSerializer<?>CollectionSerializer. _withValueTypeSerializer(TypeSerializer vts)EnumSetSerializerEnumSetSerializer. _withValueTypeSerializer(TypeSerializer vts)ContainerSerializer<?>IterableSerializer. _withValueTypeSerializer(TypeSerializer vts)MapSerializerMapSerializer. _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 MapSerializerMapSerializer. construct(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, Object filterId)Deprecated.Since 2.8 use the other overloadstatic MapSerializerMapSerializer. construct(Set<String> ignoredEntries, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, Object filterId)voidArraySerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidAsArraySerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidBeanSerializerBase. serializeWithType(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidBooleanSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidByteArraySerializer. serializeWithType(byte[] value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidInetAddressSerializer. serializeWithType(InetAddress value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidInetSocketAddressSerializer. serializeWithType(InetSocketAddress value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidJsonValueSerializer. serializeWithType(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer0)voidMapSerializer. serializeWithType(Map<?,?> value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidNonTypedScalarSerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)Deprecated.voidNullSerializer. serializeWithType(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.voidNumberSerializers.DoubleSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidNumberSerializers.IntegerSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidRawSerializer. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidReferenceTypeSerializer. serializeWithType(T ref, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidSerializableSerializer. serializeWithType(JsonSerializable value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)abstract voidStaticListSerializerBase. serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidStdArraySerializers.CharArraySerializer. serializeWithType(char[] value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidStdDelegatingSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidStdScalarSerializer. 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.voidStringSerializer. serializeWithType(Object value, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidTimeZoneSerializer. serializeWithType(TimeZone value, com.fasterxml.jackson.core.JsonGenerator g, SerializerProvider provider, TypeSerializer typeSer)voidTokenBufferSerializer. 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.voidToStringSerializerBase. serializeWithType(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, Boolean unwrapSingle)protected ReferenceTypeSerializer<AtomicReference<?>>AtomicReferenceSerializer. withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper)CollectionSerializerCollectionSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle)EnumSetSerializerEnumSetSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle)IterableSerializerIterableSerializer. withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle)ObjectArraySerializerObjectArraySerializer. withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> ser, 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, Boolean unwrapSingle)AsArraySerializerBase(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> elementSerializer)Deprecated.Since 2.6 Use variants that either take 'src', or do NOT pass BeanPropertyAsArraySerializerBase(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, JsonSerializer<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, Object suppressableValue, boolean suppressNulls)AtomicReferenceSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> ser)CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)Deprecated.since 2.6CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer)CollectionSerializer(CollectionSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle)EnumSetSerializer(EnumSetSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle)IterableSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts)IterableSerializer(IterableSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle)MapProperty(TypeSerializer typeSer, BeanProperty prop)MapSerializer(MapSerializer src, TypeSerializer vts, Object suppressableValue)Deprecated.// since 2.9MapSerializer(MapSerializer src, TypeSerializer vts, Object suppressableValue, boolean suppressNulls)MapSerializer(Set<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer)ObjectArraySerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> elementSerializer)ObjectArraySerializer(ObjectArraySerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle)ObjectArraySerializer(ObjectArraySerializer src, TypeSerializer vts)ReferenceTypeSerializer(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls)ReferenceTypeSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<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 voidTypeBase. 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 voidJSONPObject. serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider provider, TypeSerializer typeSer)voidJSONWrappedObject. serializeWithType(com.fasterxml.jackson.core.JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer)voidRawValue. serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider serializers, TypeSerializer typeSer)
-