Uses of Class
org.codehaus.jackson.map.TypeSerializer
Packages that use TypeSerializer
Package
Description
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper
class, as well
as convenience methods included in
JsonParser
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
Module
s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module)
.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
Utility classes for Mapper package.
Contains concrete
JsonNode
implementations
Jackson uses for the Tree model.-
Uses of TypeSerializer in org.codehaus.jackson.map
Methods in org.codehaus.jackson.map that return TypeSerializerModifier and TypeMethodDescriptionObjectMapper.DefaultTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) abstract TypeSerializer
SerializerFactory.createTypeSerializer
(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to create a type information serializer for given base type, if one is needed.final TypeSerializer
SerializerFactory.createTypeSerializer
(JavaType baseType, SerializationConfig config) Deprecated.Since 1.7, call variant with more argumentsMethods in org.codehaus.jackson.map with parameters of type TypeSerializerModifier and TypeMethodDescriptionSerializers.Base.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified array type.Serializers.Base.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.Base.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.Base.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, BeanProperty property, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, BeanProperty property, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.Base.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription beanDesc, BeanProperty property, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription beanDesc, BeanProperty property, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) void
JsonSerializableWithType.serializeWithType
(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
JsonSerializer.serializeWithType
(T value, JsonGenerator jgen, SerializerProvider provider, 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 org.codehaus.jackson.map.jsontype
Methods in org.codehaus.jackson.map.jsontype that return TypeSerializerModifier and TypeMethodDescriptionTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) Method for building type serializer based on current configuration of this builder. -
Uses of TypeSerializer in org.codehaus.jackson.map.jsontype.impl
Subclasses of TypeSerializer in org.codehaus.jackson.map.jsontype.implModifier and TypeClassDescriptionclass
Type serializer that will embed type information in an array, as the first element, and actual value as the second element.class
Type serializer that preferably embeds type information as an "external" type property; embedded in enclosing JSON object.class
Type serializer that preferably embeds type information as an additional JSON Object property, if possible (when resulting serialization would use JSON Object).class
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
Methods in org.codehaus.jackson.map.jsontype.impl that return TypeSerializerModifier and TypeMethodDescriptionStdTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes, BeanProperty property) -
Uses of TypeSerializer in org.codehaus.jackson.map.module
Methods in org.codehaus.jackson.map.module with parameters of type TypeSerializerModifier and TypeMethodDescriptionSimpleSerializers.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription beanDesc, BeanProperty property, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, BeanProperty property, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription beanDesc, BeanProperty property, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) -
Uses of TypeSerializer in org.codehaus.jackson.map.ser
Fields in org.codehaus.jackson.map.ser declared as TypeSerializerModifier and TypeFieldDescriptionprotected TypeSerializer
BeanPropertyWriter._typeSerializer
If property being serialized needs type information to be included this is the type serializer to use.Methods in org.codehaus.jackson.map.ser that return TypeSerializerModifier and TypeMethodDescriptionBasicSerializerFactory.createTypeSerializer
(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to construct a type serializer for values with given declared base type.BeanSerializerFactory.findPropertyContentTypeSerializer
(JavaType containerType, SerializationConfig config, AnnotatedMember accessor, BeanProperty property) Method called to create a type information serializer for values of given container property if one is needed.BeanSerializerFactory.findPropertyTypeSerializer
(JavaType baseType, SerializationConfig config, AnnotatedMember accessor, BeanProperty property) Method called to create a type information serializer for values of given non-container property if one is needed.Methods in org.codehaus.jackson.map.ser with parameters of type TypeSerializerModifier and TypeMethodDescriptionprotected JsonSerializer<?>
BasicSerializerFactory.buildArraySerializer
(SerializationConfig config, ArrayType type, BasicBeanDescription beanDesc, BeanProperty property, 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.buildCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers for Collection and Collection-like types.protected JsonSerializer<?>
BasicSerializerFactory.buildCollectionSerializer
(SerializationConfig config, CollectionType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forList
types that support efficient by-index accessprotected JsonSerializer<?>
BasicSerializerFactory.buildEnumMapSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forEnumMap
types.protected JsonSerializer<?>
BasicSerializerFactory.buildEnumSetSerializer
(SerializationConfig config, JavaType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) protected JsonSerializer<?>
BasicSerializerFactory.buildMapLikeSerializer
(SerializationConfig config, MapLikeType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers for all "Map-like" types; both ones that implementMap
and ones that do not (but that have been indicated to behave like Maps).protected JsonSerializer<?>
BasicSerializerFactory.buildMapSerializer
(SerializationConfig config, MapType type, BasicBeanDescription beanDesc, BeanProperty property, boolean staticTyping, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forMap
types.protected BeanPropertyWriter
PropertyBuilder.buildWriter
(String name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) protected boolean
BasicSerializerFactory.usesStaticTyping
(SerializationConfig config, BasicBeanDescription beanDesc, TypeSerializer typeSer, BeanProperty property) 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.Constructors in org.codehaus.jackson.map.ser with parameters of type TypeSerializerModifierConstructorDescriptionBeanPropertyWriter
(AnnotatedMember member, Annotations contextAnnotations, String name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, JavaType serType, Method m, Field f, boolean suppressNulls, Object suppressableValue) BeanPropertyWriter
(AnnotatedMember member, Annotations contextAnnotations, SerializedString name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, JavaType serType, Method m, Field f, boolean suppressNulls, Object suppressableValue) protected
MapSerializer
(HashSet<String> ignoredEntries, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts) Deprecated.Use variant that takes Key type and property informationprotected
MapSerializer
(HashSet<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<Object> keySerializer, BeanProperty property) Deprecated.As of 1.8, use version that takes valueSerializerprotected
MapSerializer
(HashSet<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, BeanProperty property) Deprecated. -
Uses of TypeSerializer in org.codehaus.jackson.map.ser.impl
Methods in org.codehaus.jackson.map.ser.impl with parameters of type TypeSerializerModifier and TypeMethodDescriptionfinal void
UnknownSerializer.serializeWithType
(Object value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) -
Uses of TypeSerializer in org.codehaus.jackson.map.ser.std
Fields in org.codehaus.jackson.map.ser.std declared as TypeSerializerModifier and TypeFieldDescriptionprotected final TypeSerializer
AsArraySerializerBase._valueTypeSerializer
Type serializer used for values, if any.protected final TypeSerializer
EnumMapSerializer._valueTypeSerializer
Type serializer used for values, if any.protected final TypeSerializer
MapSerializer._valueTypeSerializer
Type identifier serializer used for values, if any.protected final TypeSerializer
StdArraySerializers.ArraySerializerBase._valueTypeSerializer
Type serializer used for values, if any.Methods in org.codehaus.jackson.map.ser.std with parameters of type TypeSerializerModifier and TypeMethodDescriptionCollectionSerializer._withValueTypeSerializer
(TypeSerializer vts) abstract ContainerSerializerBase<?>
ContainerSerializerBase._withValueTypeSerializer
(TypeSerializer vts) EnumMapSerializer._withValueTypeSerializer
(TypeSerializer vts) EnumSetSerializer._withValueTypeSerializer
(TypeSerializer vts) IterableSerializer._withValueTypeSerializer
(TypeSerializer vts) MapSerializer._withValueTypeSerializer
(TypeSerializer vts) ObjectArraySerializer._withValueTypeSerializer
(TypeSerializer vts) StdArraySerializers.BooleanArraySerializer._withValueTypeSerializer
(TypeSerializer vts) Booleans never add type info; hence, even if type serializer is suggested, we'll ignore it...StdArraySerializers.DoubleArraySerializer._withValueTypeSerializer
(TypeSerializer vts) Doubles never add type info; hence, even if type serializer is suggested, we'll ignore it...StdArraySerializers.FloatArraySerializer._withValueTypeSerializer
(TypeSerializer vts) StdArraySerializers.IntArraySerializer._withValueTypeSerializer
(TypeSerializer vts) Ints never add type info; hence, even if type serializer is suggested, we'll ignore it...StdArraySerializers.LongArraySerializer._withValueTypeSerializer
(TypeSerializer vts) StdArraySerializers.ShortArraySerializer._withValueTypeSerializer
(TypeSerializer vts) StdArraySerializers.StringArraySerializer._withValueTypeSerializer
(TypeSerializer vts) Strings never add type info; hence, even if type serializer is suggested, we'll ignore it...StdContainerSerializers.IndexedListSerializer._withValueTypeSerializer
(TypeSerializer vts) StdContainerSerializers.IteratorSerializer._withValueTypeSerializer
(TypeSerializer vts) static ContainerSerializerBase<?>
StdContainerSerializers.collectionSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) static MapSerializer
MapSerializer.construct
(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, BeanProperty property) Deprecated.As of 1.8; use the variant with more argumentsstatic MapSerializer
MapSerializer.construct
(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer) static ContainerSerializerBase<?>
StdContainerSerializers.indexedListSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) static ContainerSerializerBase<?>
StdContainerSerializers.iterableSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) static ContainerSerializerBase<?>
StdContainerSerializers.iteratorSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) final void
AsArraySerializerBase.serializeWithType
(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
BeanSerializerBase.serializeWithType
(Object bean, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
EnumMapSerializer.serializeWithType
(EnumMap<? extends Enum<?>, ?> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
IndexedStringListSerializer.serializeWithType
(List<String> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
InetAddressSerializer.serializeWithType
(InetAddress value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
JsonValueSerializer.serializeWithType
(Object bean, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
MapSerializer.serializeWithType
(Map<?, ?> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final void
NonTypedScalarSerializerBase.serializeWithType
(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
RawSerializer.serializeWithType
(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
ScalarSerializerBase.serializeWithType
(T value, JsonGenerator jgen, 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.final void
SerializableSerializer.serializeWithType
(JsonSerializable value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final void
SerializableWithTypeSerializer.serializeWithType
(JsonSerializableWithType value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final void
StdArraySerializers.ArraySerializerBase.serializeWithType
(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
StdArraySerializers.ByteArraySerializer.serializeWithType
(byte[] value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
StdArraySerializers.CharArraySerializer.serializeWithType
(char[] value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
StringCollectionSerializer.serializeWithType
(Collection<String> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
TimeZoneSerializer.serializeWithType
(TimeZone value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final void
TokenBufferSerializer.serializeWithType
(TokenBuffer value, JsonGenerator jgen, 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
ToStringSerializer.serializeWithType
(Object value, JsonGenerator jgen, 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.ContainerSerializerBase.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 org.codehaus.jackson.map.ser.std with parameters of type TypeSerializerModifierConstructorDescriptionprotected
ArraySerializerBase
(Class<T> cls, TypeSerializer vts, BeanProperty property) protected
AsArraySerializerBase
(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property) Deprecated.since 1.8protected
AsArraySerializerBase
(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> elementSerializer) CollectionSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) EnumMapSerializer
(JavaType valueType, boolean staticTyping, EnumValues keyEnums, TypeSerializer vts, BeanProperty property) Deprecated.Since 1.8, use variant that takes value serializerEnumMapSerializer
(JavaType valueType, boolean staticTyping, EnumValues keyEnums, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) IndexedListSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) IterableSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) IteratorSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) protected
MapSerializer
(HashSet<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, BeanProperty property) ObjectArraySerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property) Deprecated.since 1.8ObjectArraySerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> elementSerializer) -
Uses of TypeSerializer in org.codehaus.jackson.map.type
Methods in org.codehaus.jackson.map.type with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoid
TypeBase.serializeWithType
(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) -
Uses of TypeSerializer in org.codehaus.jackson.map.util
Methods in org.codehaus.jackson.map.util with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoid
JSONPObject.serializeWithType
(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) void
JSONWrappedObject.serializeWithType
(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) -
Uses of TypeSerializer in org.codehaus.jackson.node
Methods in org.codehaus.jackson.node with parameters of type TypeSerializerModifier and TypeMethodDescriptionvoid
ArrayNode.serializeWithType
(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer) abstract void
BaseJsonNode.serializeWithType
(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
(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer) void
ObjectNode.serializeWithType
(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer) void
ValueNode.serializeWithType
(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer)