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
JsonParserPackage 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
Modules
(which are registered using
ObjectMapper.registerModule(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 TypeSerializerSerializerFactory.createTypeSerializer(SerializationConfig config, JavaType baseType, BeanProperty property) Method called to create a type information serializer for given base type, if one is needed.final TypeSerializerSerializerFactory.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) voidJsonSerializableWithType.serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidJsonSerializer.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 TypeClassDescriptionclassType serializer that will embed type information in an array, as the first element, and actual value as the second element.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 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 TypeSerializerBeanPropertyWriter._typeSerializerIf 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 forListtypes 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 forEnumMaptypes.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 implementMapand 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 forMaptypes.protected BeanPropertyWriterPropertyBuilder.buildWriter(String name, JavaType declaredType, JsonSerializer<Object> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) protected booleanBasicSerializerFactory.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) protectedMapSerializer(HashSet<String> ignoredEntries, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts) Deprecated.Use variant that takes Key type and property informationprotectedMapSerializer(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 valueSerializerprotectedMapSerializer(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 voidUnknownSerializer.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 TypeSerializerAsArraySerializerBase._valueTypeSerializerType serializer used for values, if any.protected final TypeSerializerEnumMapSerializer._valueTypeSerializerType serializer used for values, if any.protected final TypeSerializerMapSerializer._valueTypeSerializerType identifier serializer used for values, if any.protected final TypeSerializerStdArraySerializers.ArraySerializerBase._valueTypeSerializerType 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 MapSerializerMapSerializer.construct(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, BeanProperty property) Deprecated.As of 1.8; use the variant with more argumentsstatic MapSerializerMapSerializer.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 voidAsArraySerializerBase.serializeWithType(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidBeanSerializerBase.serializeWithType(Object bean, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidEnumMapSerializer.serializeWithType(EnumMap<? extends Enum<?>, ?> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidIndexedStringListSerializer.serializeWithType(List<String> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidInetAddressSerializer.serializeWithType(InetAddress value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidJsonValueSerializer.serializeWithType(Object bean, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidMapSerializer.serializeWithType(Map<?, ?> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final voidNonTypedScalarSerializerBase.serializeWithType(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidRawSerializer.serializeWithType(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidScalarSerializerBase.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 voidSerializableSerializer.serializeWithType(JsonSerializable value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final voidSerializableWithTypeSerializer.serializeWithType(JsonSerializableWithType value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final voidStdArraySerializers.ArraySerializerBase.serializeWithType(T value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidStdArraySerializers.ByteArraySerializer.serializeWithType(byte[] value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidStdArraySerializers.CharArraySerializer.serializeWithType(char[] value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidStringCollectionSerializer.serializeWithType(Collection<String> value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidTimeZoneSerializer.serializeWithType(TimeZone value, JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) final voidTokenBufferSerializer.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.voidToStringSerializer.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 specifiedTypeSerializerfor decorating contained values with additional type information.Constructors in org.codehaus.jackson.map.ser.std with parameters of type TypeSerializerModifierConstructorDescriptionprotectedArraySerializerBase(Class<T> cls, TypeSerializer vts, BeanProperty property) protectedAsArraySerializerBase(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property) Deprecated.since 1.8protectedAsArraySerializerBase(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) protectedMapSerializer(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 TypeMethodDescriptionvoidTypeBase.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 TypeMethodDescriptionvoidJSONPObject.serializeWithType(JsonGenerator jgen, SerializerProvider provider, TypeSerializer typeSer) voidJSONWrappedObject.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 TypeMethodDescriptionvoidArrayNode.serializeWithType(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer) abstract voidBaseJsonNode.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.voidMissingNode.serializeWithType(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer) voidObjectNode.serializeWithType(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer) voidValueNode.serializeWithType(JsonGenerator jg, SerializerProvider provider, TypeSerializer typeSer)