|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TypeSerializer | |
---|---|
org.codehaus.jackson.map | 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 |
org.codehaus.jackson.map.jsontype | Package that contains interfaces that define how to implement functionality for dynamically resolving type during deserialization. |
org.codehaus.jackson.map.jsontype.impl | Package that contains standard implementations for
TypeResolverBuilder
and
org.codehaus.jackson.map.jsontype.JsonTypeResolver it
can construct. |
org.codehaus.jackson.map.ser | Contains implementation classes of serialization part of data binding. |
org.codehaus.jackson.map.util | Utility classes for Mapper package. |
org.codehaus.jackson.node | 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 TypeSerializer | |
---|---|
TypeSerializer |
ObjectMapper.DefaultTypeResolverBuilder.buildTypeSerializer(JavaType baseType,
Collection<NamedType> subtypes)
|
TypeSerializer |
SerializerFactory.createTypeSerializer(JavaType baseType,
SerializationConfig config)
Method called to create a type information serializer for given base type, if one is needed. |
Methods in org.codehaus.jackson.map with parameters of type TypeSerializer | |
---|---|
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 TypeSerializer | |
---|---|
TypeSerializer |
TypeResolverBuilder.buildTypeSerializer(JavaType baseType,
Collection<NamedType> subtypes)
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.impl | |
---|---|
class |
AsArrayTypeSerializer
Type serializer that will embed type information in an array, as the first element, and actual value as the second element. |
class |
AsPropertyTypeSerializer
Type serializer that preferably embeds type information as an additional JSON Object property, if possible (when resulting serialization would use JSON Object). |
class |
AsWrapperTypeSerializer
Type wrapper that tries to use an extra JSON Object, with a single entry that has type name as key, to serialize type information. |
class |
TypeSerializerBase
|
Methods in org.codehaus.jackson.map.jsontype.impl that return TypeSerializer | |
---|---|
TypeSerializer |
StdTypeResolverBuilder.buildTypeSerializer(JavaType baseType,
Collection<NamedType> subtypes)
|
Uses of TypeSerializer in org.codehaus.jackson.map.ser |
---|
Fields in org.codehaus.jackson.map.ser declared as TypeSerializer | |
---|---|
protected TypeSerializer |
BeanPropertyWriter._typeSerializer
If property being serialized needs type information to be included this is the type serializer to use. |
protected TypeSerializer |
MapSerializer._valueTypeSerializer
Type serializer used for values, if any. |
protected TypeSerializer |
EnumMapSerializer._valueTypeSerializer
Type serializer used for values, if any. |
Methods in org.codehaus.jackson.map.ser that return TypeSerializer | |
---|---|
TypeSerializer |
BasicSerializerFactory.createTypeSerializer(JavaType baseType,
SerializationConfig config)
Method called to construct a type serializer for values with given declared base type. |
TypeSerializer |
BeanSerializerFactory.findPropertyContentTypeSerializer(JavaType containerType,
SerializationConfig config,
AnnotatedMember propertyEntity)
Method called to create a type information serializer for values of given container property if one is needed. |
TypeSerializer |
BeanSerializerFactory.findPropertyTypeSerializer(JavaType baseType,
SerializationConfig config,
AnnotatedMember propertyEntity)
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 TypeSerializer | |
---|---|
ContainerSerializerBase<?> |
MapSerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
EnumMapSerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ContainerSerializers.IndexedListSerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ContainerSerializers.CollectionSerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ContainerSerializers.IteratorSerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ContainerSerializers.IterableSerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ContainerSerializers.EnumSetSerializer._withValueTypeSerializer(TypeSerializer vts)
|
abstract ContainerSerializerBase<?> |
ContainerSerializerBase._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ArraySerializers.ObjectArraySerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ArraySerializers.StringArraySerializer._withValueTypeSerializer(TypeSerializer vts)
Strings never add type info; hence, even if type serializer is suggested, we'll ignore it... |
ContainerSerializerBase<?> |
ArraySerializers.BooleanArraySerializer._withValueTypeSerializer(TypeSerializer vts)
Booleans never add type info; hence, even if type serializer is suggested, we'll ignore it... |
ContainerSerializerBase<?> |
ArraySerializers.ShortArraySerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ArraySerializers.IntArraySerializer._withValueTypeSerializer(TypeSerializer vts)
Ints never add type info; hence, even if type serializer is suggested, we'll ignore it... |
ContainerSerializerBase<?> |
ArraySerializers.LongArraySerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ArraySerializers.FloatArraySerializer._withValueTypeSerializer(TypeSerializer vts)
|
ContainerSerializerBase<?> |
ArraySerializers.DoubleArraySerializer._withValueTypeSerializer(TypeSerializer vts)
Doubles never add type info; hence, even if type serializer is suggested, we'll ignore it... |
protected BeanPropertyWriter |
PropertyBuilder.buildProperty(String name,
JsonSerializer<Object> ser,
TypeSerializer typeSer,
TypeSerializer contentTypeSer,
AnnotatedMember am,
boolean defaultUseStaticTyping)
|
static ContainerSerializerBase<?> |
ContainerSerializers.collectionSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts)
|
static MapSerializer |
MapSerializer.construct(String[] ignoredList,
JavaType mapType,
boolean staticValueType,
TypeSerializer vts)
Factory method used to construct Map serializers. |
static ContainerSerializerBase<?> |
ContainerSerializers.indexedListSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts)
|
static ContainerSerializerBase<?> |
ContainerSerializers.iterableSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts)
|
static ContainerSerializerBase<?> |
ContainerSerializers.iteratorSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts)
|
static ContainerSerializerBase<?> |
ArraySerializers.objectArraySerializer(JavaType elementType,
boolean staticTyping,
TypeSerializer vts)
|
void |
ArraySerializers.ByteArraySerializer.serializeWithType(byte[] value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
ArraySerializers.CharArraySerializer.serializeWithType(char[] value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
EnumMapSerializer.serializeWithType(EnumMap<? extends Enum<?>,?> value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
StdSerializers.SerializableSerializer.serializeWithType(JsonSerializable value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
MapSerializer.serializeWithType(Map<?,?> value,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
BeanSerializer.serializeWithType(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
StdSerializers.NonTypedScalarSerializer.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. |
void |
StdSerializers.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. |
ContainerSerializerBase<?> |
ContainerSerializerBase.withValueTypeSerializer(TypeSerializer vts)
Factory(-like) method that can be used to construct a new container serializer that uses specified TypeSerializer for decorating
contained values with additiona type information. |
Uses of TypeSerializer in org.codehaus.jackson.map.util |
---|
Methods in org.codehaus.jackson.map.util with parameters of type TypeSerializer | |
---|---|
void |
JSONWrappedObject.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
|
void |
JSONPObject.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 TypeSerializer | |
---|---|
void |
BaseJsonNode.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
Since JSON node typing is only based on JSON values, there is no need to include type information. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |