Package | Description |
---|---|
com.fasterxml.jackson.databind |
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 |
com.fasterxml.jackson.databind.deser |
Contains implementation classes of deserialization part of
data binding.
|
com.fasterxml.jackson.databind.deser.impl |
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
|
com.fasterxml.jackson.databind.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
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.jsonFormatVisitors |
Classes used for exposing logical structure of POJOs as Jackson
sees it, and exposed via
ObjectMapper.acceptJsonFormatVisitor(Class, JsonFormatVisitorWrapper)
and
ObjectMapper.acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, JsonFormatVisitorWrapper)
methods. |
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 for
TypeResolverBuilder
and
TypeIdResolver . |
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 |
Modifier and Type | Class and Description |
---|---|
static class |
BeanProperty.Std
Simple stand-alone implementation, useful as a placeholder
or base class for more complex implementations.
|
Modifier and Type | Method and Description |
---|---|
protected JsonSerializer<Object> |
SerializerProvider._handleContextualResolvable(JsonSerializer<?> ser,
BeanProperty property)
Helper method called to resolve and contextualize given
serializer, if and as necessary.
|
JsonDeserializer<Object> |
DeserializationContext.findContextualValueDeserializer(JavaType type,
BeanProperty prop)
Method for finding a value deserializer, and creating a contextual
version if necessary, for value reached via specified property.
|
Object |
DeserializationContext.findInjectableValue(Object valueId,
BeanProperty forProperty,
Object beanInstance) |
abstract Object |
InjectableValues.findInjectableValue(Object valueId,
DeserializationContext ctxt,
BeanProperty forProperty,
Object beanInstance)
Method called to find value identified by id
valueId to
inject as value of specified property during deserialization, passing
POJO instance in which value will be injected if it is available
(will be available when injected via field or setter; not available
when injected via constructor or factory method argument). |
Object |
InjectableValues.Std.findInjectableValue(Object valueId,
DeserializationContext ctxt,
BeanProperty forProperty,
Object beanInstance) |
KeyDeserializer |
DeserializationContext.findKeyDeserializer(JavaType keyType,
BeanProperty prop)
Convenience method, functionally same as:
|
JsonSerializer<Object> |
SerializerProvider.findKeySerializer(JavaType keyType,
BeanProperty property)
Method called to get the serializer to use for serializing
non-null Map keys.
|
JsonSerializer<Object> |
SerializerProvider.findNullKeySerializer(JavaType serializationType,
BeanProperty property)
Method called to find a serializer to use for null values for given
declared type.
|
JsonSerializer<Object> |
SerializerProvider.findNullValueSerializer(BeanProperty property)
Method called to get the serializer to use for serializing null
values for specified property.
|
JsonSerializer<Object> |
SerializerProvider.findPrimaryPropertySerializer(Class<?> valueType,
BeanProperty property) |
JsonSerializer<Object> |
SerializerProvider.findPrimaryPropertySerializer(JavaType valueType,
BeanProperty property)
Similar to
SerializerProvider.findValueSerializer(JavaType, BeanProperty) , but used
when finding "primary" property value serializer (one directly handling
value of the property). |
JsonSerializer<Object> |
SerializerProvider.findTypedValueSerializer(Class<?> valueType,
boolean cache,
BeanProperty property)
Method called to locate regular serializer, matching type serializer,
and if both found, wrap them in a serializer that calls both in correct
sequence.
|
JsonSerializer<Object> |
SerializerProvider.findTypedValueSerializer(JavaType valueType,
boolean cache,
BeanProperty property)
Method called to locate regular serializer, matching type serializer,
and if both found, wrap them in a serializer that calls both in correct
sequence.
|
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(Class<?> valueType,
BeanProperty property)
Method called to get hold of a serializer for a value of given type;
or if no such serializer can be found, a default handler (which
may do a best-effort generic serialization or just simply
throw an exception when invoked).
|
JsonSerializer<Object> |
SerializerProvider.findValueSerializer(JavaType valueType,
BeanProperty property)
Similar to
SerializerProvider.findValueSerializer(Class,BeanProperty) , but takes
full generics-aware type instead of raw class. |
JsonDeserializer<?> |
DeserializationContext.handlePrimaryContextualization(JsonDeserializer<?> deser,
BeanProperty prop)
Deprecated.
|
JsonDeserializer<?> |
DeserializationContext.handlePrimaryContextualization(JsonDeserializer<?> deser,
BeanProperty prop,
JavaType type)
Method called for primary property deserializers (ones
directly created to deserialize values of a POJO property),
to handle details of resolving
ContextualDeserializer with given property context. |
JsonSerializer<?> |
SerializerProvider.handlePrimaryContextualization(JsonSerializer<?> ser,
BeanProperty property)
Method called for primary property serializers (ones
directly created to serialize values of a POJO property),
to handle details of resolving
ContextualSerializer with given property context. |
JsonDeserializer<?> |
DeserializationContext.handleSecondaryContextualization(JsonDeserializer<?> deser,
BeanProperty prop)
Deprecated.
|
JsonDeserializer<?> |
DeserializationContext.handleSecondaryContextualization(JsonDeserializer<?> deser,
BeanProperty prop,
JavaType type)
Method called for secondary property deserializers (ones
NOT directly created to deal with an annotatable POJO property,
but instead created as a component -- such as value deserializers
for structured types, or deserializers for root values)
to handle details of resolving
ContextualDeserializer with given property context. |
JsonSerializer<?> |
SerializerProvider.handleSecondaryContextualization(JsonSerializer<?> ser,
BeanProperty property)
Method called for secondary property serializers (ones
NOT directly created to serialize values of a POJO property
but instead created as a dependant serializer -- such as value serializers
for structured types, or serializers for root values)
to handle details of resolving
ContextualDeserializer with given property context. |
<T> T |
DeserializationContext.readPropertyValue(com.fasterxml.jackson.core.JsonParser p,
BeanProperty prop,
Class<T> type)
Convenience method that may be used by composite or container deserializers,
for reading one-off values for the composite type, taking into account
annotations that the property (passed to this method -- usually property that
has custom serializer that called this method) has.
|
<T> T |
DeserializationContext.readPropertyValue(com.fasterxml.jackson.core.JsonParser p,
BeanProperty prop,
JavaType type) |
Modifier and Type | Class and Description |
---|---|
class |
CreatorProperty
This concrete sub-class implements property that is passed
via Creator (constructor or static factory method).
|
class |
SettableBeanProperty
Base class for deserializable properties of a bean: contains
both type and name definitions, and reflection-based set functionality.
|
Modifier and Type | Field and Description |
---|---|
protected BeanProperty |
SettableAnyProperty._property
Method used for setting "any" properties, along with annotation
information.
|
Modifier and Type | Method and Description |
---|---|
BeanProperty |
SettableAnyProperty.getProperty() |
Modifier and Type | Method and Description |
---|---|
KeyDeserializer |
ContextualKeyDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to see if a different (or differently configured) key deserializer
is needed to deserialize keys of specified Map property.
|
JsonDeserializer<?> |
ContextualDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to see if a different (or differently configured) deserializer
is needed to deserialize values of specified property.
|
JsonDeserializer<?> |
BeanDeserializerBase.createContextual(DeserializationContext ctxt,
BeanProperty property)
Although most of post-processing is done in resolve(), we only get
access to referring property's annotations here; and this is needed
to support per-property ObjectIds.
|
Constructor and Description |
---|
SettableAnyProperty(BeanProperty property,
AnnotatedMethod setter,
JavaType type,
JsonDeserializer<Object> valueDeser,
TypeDeserializer typeDeser) |
Modifier and Type | Class and Description |
---|---|
class |
FieldProperty
This concrete sub-class implements property that is set
directly assigning to a Field.
|
class |
InnerClassProperty
This sub-class is used to handle special case of value being a
non-static inner class.
|
class |
ManagedReferenceProperty
Wrapper property that is used to handle managed (forward) properties
Basically just needs to delegate first to actual forward property, and
then to back property.
|
class |
MethodProperty
This concrete sub-class implements property that is set
using regular "setter" method.
|
class |
ObjectIdReferenceProperty |
class |
ObjectIdValueProperty
Specialized
SettableBeanProperty implementation used
for virtual property that represents Object Id that is used
for some POJO types (or properties). |
class |
SetterlessProperty
This concrete sub-class implements Collection or Map property that is
indirectly by getting the property value and directly modifying it.
|
class |
ValueInjector
Class that encapsulates details of value injection that occurs before
deserialization of a POJO.
|
Modifier and Type | Method and Description |
---|---|
protected JsonDeserializer<?> |
DelegatingDeserializer._createContextual(DeserializationContext ctxt,
BeanProperty property,
JsonDeserializer<?> newDelegatee)
Deprecated.
|
JsonDeserializer<?> |
UntypedObjectDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
We only use contextualization for optimizing the case where no customization
occurred; if so, can slip in a more streamlined version.
|
JsonDeserializer<?> |
StringCollectionDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
StringArrayDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Contextualization is needed to see whether we can "inline" deserialization
of String values, or if we have to use separate value deserializer.
|
JsonDeserializer<?> |
StdDelegatingDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
ObjectArrayDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
MapEntryDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
JsonDeserializer<?> |
MapDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
JsonDeserializer<?> |
EnumSetDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
EnumMapDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed for.
|
JsonDeserializer<?> |
EnumDeserializer.FactoryBasedDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
DelegatingDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
JsonDeserializer<?> |
DateDeserializers.DateBasedDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
CollectionDeserializer |
CollectionDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property)
Method called to finalize setup of this deserializer,
when it is known for which property deserializer is needed
for.
|
JsonDeserializer<?> |
AtomicReferenceDeserializer.createContextual(DeserializationContext ctxt,
BeanProperty property) |
protected JsonDeserializer<?> |
StdDeserializer.findConvertingContentDeserializer(DeserializationContext ctxt,
BeanProperty prop,
JsonDeserializer<?> existingDeserializer)
Helper method that can be used to see if specified property has annotation
indicating that a converter is to be used for contained values (contents
of structured types; array/List/Map values)
|
protected JsonDeserializer<Object> |
StdDeserializer.findDeserializer(DeserializationContext ctxt,
JavaType type,
BeanProperty property)
Helper method used to locate deserializers for properties the
type this deserializer handles contains (usually for properties of
bean types)
|
Modifier and Type | Method and Description |
---|---|
JsonSerializer<?> |
CoreXMLSerializers.XMLGregorianCalendarSerializer.createContextual(SerializerProvider prov,
BeanProperty property) |
Modifier and Type | Method and Description |
---|---|
void |
JsonObjectFormatVisitor.optionalProperty(BeanProperty writer) |
void |
JsonObjectFormatVisitor.Base.optionalProperty(BeanProperty prop) |
void |
JsonObjectFormatVisitor.property(BeanProperty writer)
Callback method called when a POJO property is being traversed.
|
void |
JsonObjectFormatVisitor.Base.property(BeanProperty prop) |
Modifier and Type | Method and Description |
---|---|
abstract TypeSerializer |
TypeSerializer.forProperty(BeanProperty prop)
Method called to create contextual version, to be used for
values of given property.
|
abstract TypeDeserializer |
TypeDeserializer.forProperty(BeanProperty prop)
Method called to create contextual version, to be used for
values of given property.
|
Modifier and Type | Field and Description |
---|---|
protected BeanProperty |
TypeSerializerBase._property |
protected BeanProperty |
TypeDeserializerBase._property
Property that contains value for which type information
is included; null if value is a root value.
|
Modifier and Type | Method and Description |
---|---|
abstract TypeDeserializer |
TypeDeserializerBase.forProperty(BeanProperty prop) |
AsWrapperTypeSerializer |
AsWrapperTypeSerializer.forProperty(BeanProperty prop) |
TypeDeserializer |
AsWrapperTypeDeserializer.forProperty(BeanProperty prop) |
AsPropertyTypeSerializer |
AsPropertyTypeSerializer.forProperty(BeanProperty prop) |
TypeDeserializer |
AsPropertyTypeDeserializer.forProperty(BeanProperty prop) |
AsExternalTypeSerializer |
AsExternalTypeSerializer.forProperty(BeanProperty prop) |
TypeDeserializer |
AsExternalTypeDeserializer.forProperty(BeanProperty prop) |
AsExistingPropertyTypeSerializer |
AsExistingPropertyTypeSerializer.forProperty(BeanProperty prop) |
AsArrayTypeSerializer |
AsArrayTypeSerializer.forProperty(BeanProperty prop) |
TypeDeserializer |
AsArrayTypeDeserializer.forProperty(BeanProperty prop) |
Constructor and Description |
---|
AsArrayTypeDeserializer(AsArrayTypeDeserializer src,
BeanProperty property) |
AsArrayTypeSerializer(TypeIdResolver idRes,
BeanProperty property) |
AsExistingPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
AsExternalTypeDeserializer(AsExternalTypeDeserializer src,
BeanProperty property) |
AsExternalTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
AsPropertyTypeDeserializer(AsPropertyTypeDeserializer src,
BeanProperty property) |
AsPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
AsWrapperTypeDeserializer(AsWrapperTypeDeserializer src,
BeanProperty property) |
AsWrapperTypeSerializer(TypeIdResolver idRes,
BeanProperty property) |
TypeDeserializerBase(TypeDeserializerBase src,
BeanProperty property) |
TypeSerializerBase(TypeIdResolver idRes,
BeanProperty property) |
Modifier and Type | Class and Description |
---|---|
class |
BeanPropertyWriter
Base bean property handler class, which implements common parts of
reflection-based functionality for accessing a property value
and serializing it.
|
class |
VirtualBeanPropertyWriter
BeanPropertyWriter implementation used with
JsonAppend
to add "virtual" properties in addition to regular ones. |
Modifier and Type | Field and Description |
---|---|
protected BeanProperty |
AnyGetterWriter._property |
Modifier and Type | Method and Description |
---|---|
JsonSerializer<?> |
ContextualSerializer.createContextual(SerializerProvider prov,
BeanProperty property)
Method called to see if a different (or differently configured) serializer
is needed to serialize values of specified property.
|
protected boolean |
ContainerSerializer.hasContentTypeAnnotation(SerializerProvider provider,
BeanProperty property)
Helper method used to encapsulate logic for determining whether there is
a property annotation that overrides element type; if so, we can
and need to statically find the serializer.
|
Constructor and Description |
---|
AnyGetterWriter(BeanProperty property,
AnnotatedMember accessor,
MapSerializer serializer) |
Modifier and Type | Class and Description |
---|---|
class |
AttributePropertyWriter
VirtualBeanPropertyWriter implementation used for
JsonAppend ,
to serialize properties backed-by dynamically assignable attribute
values. |
class |
UnwrappingBeanPropertyWriter
Variant of
BeanPropertyWriter which will handle unwrapping
of JSON Object (including of properties of Object within surrounding
JSON object, and not as sub-object). |
Modifier and Type | Field and Description |
---|---|
protected BeanProperty |
MapEntrySerializer._property
Map-valued property being serialized with this instance
|
Modifier and Type | Method and Description |
---|---|
JsonSerializer<?> |
StringCollectionSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
StringArraySerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
MapEntrySerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
IndexedStringListSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddPrimarySerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a primary
serializer (one that is directly attached to a property).
|
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddPrimarySerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddSecondarySerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a non-primary
serializer (one that is not directly attached to a property).
|
PropertySerializerMap.SerializerAndMapResult |
PropertySerializerMap.findAndAddSecondarySerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
MapEntrySerializer |
MapEntrySerializer.withResolved(BeanProperty property,
JsonSerializer<?> keySerializer,
JsonSerializer<?> valueSerializer) |
IteratorSerializer |
IteratorSerializer.withResolved(BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> elementSerializer) |
IndexedListSerializer |
IndexedListSerializer.withResolved(BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> elementSerializer) |
Constructor and Description |
---|
IndexedListSerializer(IndexedListSerializer src,
BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> valueSerializer) |
IndexedListSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts,
BeanProperty property,
JsonSerializer<Object> valueSerializer) |
IteratorSerializer(IteratorSerializer src,
BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> valueSerializer) |
IteratorSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts,
BeanProperty property) |
MapEntrySerializer(JavaType type,
JavaType keyType,
JavaType valueType,
boolean staticTyping,
TypeSerializer vts,
BeanProperty property) |
MapEntrySerializer(MapEntrySerializer src,
BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> keySer,
JsonSerializer<?> valueSer) |
StringArraySerializer(StringArraySerializer src,
BeanProperty prop,
JsonSerializer<?> ser) |
Modifier and Type | Field and Description |
---|---|
protected BeanProperty |
MapSerializer._property
Map-valued property being serialized with this instance
|
protected BeanProperty |
MapProperty._property |
protected BeanProperty |
JsonValueSerializer._property |
protected BeanProperty |
EnumMapSerializer._property
Deprecated.
Property for which this serializer is being used, if any;
null for root values.
|
protected BeanProperty |
AsArraySerializerBase._property
Collection-valued property being serialized with this instance
|
protected BeanProperty |
ArraySerializerBase._property |
Modifier and Type | Method and Description |
---|---|
JsonSerializer<?> |
StdDelegatingSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
ObjectArraySerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
NumberSerializers.Base.createContextual(SerializerProvider prov,
BeanProperty property) |
JsonSerializer<?> |
MapSerializer.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
JsonValueSerializer.createContextual(SerializerProvider provider,
BeanProperty property)
We can try to find the actual serializer for value, if we can
statically figure out what the result type must be.
|
JsonSerializer<?> |
EnumSerializer.createContextual(SerializerProvider prov,
BeanProperty property)
To support some level of per-property configuration, we will need
to make things contextual.
|
JsonSerializer<?> |
EnumMapSerializer.createContextual(SerializerProvider provider,
BeanProperty property)
Deprecated.
|
JsonSerializer<?> |
DateTimeSerializerBase.createContextual(SerializerProvider prov,
BeanProperty property) |
JsonSerializer<?> |
BeanSerializerBase.createContextual(SerializerProvider provider,
BeanProperty property) |
JsonSerializer<?> |
AsArraySerializerBase.createContextual(SerializerProvider provider,
BeanProperty property)
This method is needed to resolve contextual annotations like
per-property overrides, as well as do recursive call
to
createContextual of content serializer, if
known statically. |
protected JsonSerializer<?> |
StdSerializer.findConvertingContentSerializer(SerializerProvider provider,
BeanProperty prop,
JsonSerializer<?> existingSerializer)
Helper method that can be used to see if specified property has annotation
indicating that a converter is to be used for contained values (contents
of structured types; array/List/Map values)
|
JsonValueSerializer |
JsonValueSerializer.withResolved(BeanProperty property,
JsonSerializer<?> ser,
boolean forceTypeInfo) |
MapSerializer |
MapSerializer.withResolved(BeanProperty property,
JsonSerializer<?> keySerializer,
JsonSerializer<?> valueSerializer,
HashSet<String> ignored,
boolean sortKeys) |
ObjectArraySerializer |
ObjectArraySerializer.withResolved(BeanProperty prop,
TypeSerializer vts,
JsonSerializer<?> ser) |
IterableSerializer |
IterableSerializer.withResolved(BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> elementSerializer) |
EnumSetSerializer |
EnumSetSerializer.withResolved(BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> elementSerializer) |
CollectionSerializer |
CollectionSerializer.withResolved(BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> elementSerializer) |
abstract AsArraySerializerBase<T> |
AsArraySerializerBase.withResolved(BeanProperty property,
TypeSerializer vts,
JsonSerializer<?> elementSerializer) |
EnumMapSerializer |
EnumMapSerializer.withValueSerializer(BeanProperty prop,
JsonSerializer<?> ser)
Deprecated.
|
Copyright © 2014-2015 FasterXML. All Rights Reserved.