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.cfg |
Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind ). |
com.fasterxml.jackson.databind.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
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.util |
Utility classes for Mapper package.
|
Modifier and Type | Class and Description |
---|---|
class |
DeserializationConfig
Object that contains baseline configuration for deserialization
process.
|
class |
SerializationConfig
Object that contains baseline configuration for serialization
process.
|
Modifier and Type | Method and Description |
---|---|
abstract MapperConfig<?> |
DatabindContext.getConfig()
Accessor to currently active configuration (both per-request configs
and per-mapper config).
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationIntrospector.findAndAddVirtualProperties(MapperConfig<?> config,
AnnotatedClass ac,
List<BeanPropertyWriter> properties)
Method for adding possible virtual properties to be serialized along
with regular properties.
|
TypeResolverBuilder<?> |
AnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType)
Method for checking if given structured property entity (field or method that
has nominal value of Map, Collection or array type) has annotations
that indicate that specific type resolver is to be used for handling type
information of contained values.
|
TypeResolverBuilder<?> |
AnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType)
Method for checking if given property entity (field or method) has annotations
that indicate that specific type resolver is to be used for handling instances.
|
TypeResolverBuilder<?> |
AnnotationIntrospector.findTypeResolver(MapperConfig<?> config,
AnnotatedClass ac,
JavaType baseType)
Method for checking if given class has annotations that indicate
that specific type resolver is to be used for handling instances.
|
String |
PropertyNamingStrategy.nameForConstructorParameter(MapperConfig<?> config,
AnnotatedParameter ctorParam,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given constructor parameter; typically called when building a deserializer
(but not necessarily only then).
|
String |
PropertyNamingStrategy.PropertyNamingStrategyBase.nameForConstructorParameter(MapperConfig<?> config,
AnnotatedParameter ctorParam,
String defaultName) |
String |
PropertyNamingStrategy.nameForField(MapperConfig<?> config,
AnnotatedField field,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given field.
|
String |
PropertyNamingStrategy.PropertyNamingStrategyBase.nameForField(MapperConfig<?> config,
AnnotatedField field,
String defaultName) |
String |
PropertyNamingStrategy.nameForGetterMethod(MapperConfig<?> config,
AnnotatedMethod method,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given getter method; typically called when building a serializer.
|
String |
PropertyNamingStrategy.PropertyNamingStrategyBase.nameForGetterMethod(MapperConfig<?> config,
AnnotatedMethod method,
String defaultName) |
String |
PropertyNamingStrategy.nameForSetterMethod(MapperConfig<?> config,
AnnotatedMethod method,
String defaultName)
Method called to find external name (name used in JSON) for given logical
POJO property,
as defined by given setter method; typically called when building a deserializer
(but not necessarily only then).
|
String |
PropertyNamingStrategy.PropertyNamingStrategyBase.nameForSetterMethod(MapperConfig<?> config,
AnnotatedMethod method,
String defaultName) |
com.fasterxml.jackson.core.SerializableString |
PropertyName.simpleAsEncoded(MapperConfig<?> config)
Accessor that may be used to get lazily-constructed efficient
representation of the simple name.
|
Modifier and Type | Class and Description |
---|---|
class |
MapperConfig<T extends MapperConfig<T>>
Interface that defines functionality accessible through both
serialization and deserialization configuration objects;
accessors to mode-independent configuration settings
and such.
|
Modifier and Type | Class and Description |
---|---|
class |
MapperConfigBase<CFG extends ConfigFeature,T extends MapperConfigBase<CFG,T>> |
Modifier and Type | Method and Description |
---|---|
Converter<?,?> |
HandlerInstantiator.converterInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass)
Method called to construct a Converter instance used for specified class.
|
PropertyNamingStrategy |
HandlerInstantiator.namingStrategyInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass)
Method called to construct a NamingStrategy instance used for specified
class.
|
com.fasterxml.jackson.annotation.ObjectIdGenerator<?> |
HandlerInstantiator.objectIdGeneratorInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass)
Method called to construct a ObjectIdHandler instance of specified type.
|
com.fasterxml.jackson.annotation.ObjectIdResolver |
HandlerInstantiator.resolverIdGeneratorInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> implClass) |
abstract TypeIdResolver |
HandlerInstantiator.typeIdResolverInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> resolverClass)
Method called to get an instance of TypeIdResolver of specified type.
|
abstract TypeResolverBuilder<?> |
HandlerInstantiator.typeResolverBuilderInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> builderClass)
Method called to get an instance of TypeResolverBuilder of specified type.
|
ValueInstantiator |
HandlerInstantiator.valueInstantiatorInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> resolverClass)
Method called to construct an instance of ValueInstantiator of specified type.
|
VirtualBeanPropertyWriter |
HandlerInstantiator.virtualPropertyWriterInstance(MapperConfig<?> config,
Class<?> implClass)
Method called to construct a
VirtualBeanPropertyWriter instance
of specified type. |
Constructor and Description |
---|
MapperConfig(MapperConfig<T> src) |
MapperConfig(MapperConfig<T> src,
BaseSettings base) |
MapperConfig(MapperConfig<T> src,
int mapperFeatures) |
Modifier and Type | Field and Description |
---|---|
protected MapperConfig<?> |
POJOPropertiesCollector._config
Configuration settings
|
protected MapperConfig<?> |
BasicBeanDescription._config |
Modifier and Type | Method and Description |
---|---|
MapperConfig<?> |
POJOPropertiesCollector.getConfig() |
Modifier and Type | Method and Description |
---|---|
protected BeanPropertyWriter |
JacksonAnnotationIntrospector._constructVirtualProperty(JsonAppend.Attr attr,
MapperConfig<?> config,
AnnotatedClass ac,
JavaType type) |
protected BeanPropertyWriter |
JacksonAnnotationIntrospector._constructVirtualProperty(JsonAppend.Prop prop,
MapperConfig<?> config,
AnnotatedClass ac) |
protected BasicBeanDescription |
BasicClassIntrospector._findStdJdkCollectionDesc(MapperConfig<?> cfg,
JavaType type,
ClassIntrospector.MixInResolver r) |
protected TypeResolverBuilder<?> |
JacksonAnnotationIntrospector._findTypeResolver(MapperConfig<?> config,
Annotated ann,
JavaType baseType)
Helper method called to construct and initialize instance of
TypeResolverBuilder
if given annotated element indicates one is needed. |
protected POJOPropertiesCollector |
BasicClassIntrospector.collectProperties(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r,
boolean forSerialization,
String mutatorPrefix) |
protected POJOPropertiesCollector |
BasicClassIntrospector.collectPropertiesWithBuilder(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r,
boolean forSerialization) |
protected POJOPropertiesCollector |
BasicClassIntrospector.constructPropertyCollector(MapperConfig<?> config,
AnnotatedClass ac,
JavaType type,
boolean forSerialization,
String mutatorPrefix)
Overridable method called for creating
POJOPropertiesCollector instance
to use; override is needed if a custom sub-class is to be used. |
void |
JacksonAnnotationIntrospector.findAndAddVirtualProperties(MapperConfig<?> config,
AnnotatedClass ac,
List<BeanPropertyWriter> properties) |
void |
AnnotationIntrospectorPair.findAndAddVirtualProperties(MapperConfig<?> config,
AnnotatedClass ac,
List<BeanPropertyWriter> properties) |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType) |
TypeResolverBuilder<?> |
AnnotationIntrospectorPair.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
TypeResolverBuilder<?> |
AnnotationIntrospectorPair.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findTypeResolver(MapperConfig<?> config,
AnnotatedClass ac,
JavaType baseType) |
TypeResolverBuilder<?> |
AnnotationIntrospectorPair.findTypeResolver(MapperConfig<?> config,
AnnotatedClass ac,
JavaType baseType) |
abstract BeanDescription |
ClassIntrospector.forClassAnnotations(MapperConfig<?> cfg,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that only has
information regarding annotations class itself (or its supertypes) has,
but nothing on methods or constructors.
|
BasicBeanDescription |
BasicClassIntrospector.forClassAnnotations(MapperConfig<?> cfg,
JavaType type,
ClassIntrospector.MixInResolver r) |
abstract BeanDescription |
ClassIntrospector.forDirectClassAnnotations(MapperConfig<?> cfg,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that only has
information regarding annotations class itself has (but NOT including
its supertypes), but nothing on methods or constructors.
|
BasicBeanDescription |
BasicClassIntrospector.forDirectClassAnnotations(MapperConfig<?> cfg,
JavaType type,
ClassIntrospector.MixInResolver r) |
static BasicBeanDescription |
BasicBeanDescription.forOtherUse(MapperConfig<?> config,
JavaType type,
AnnotatedClass ac)
Factory method to use for constructing an instance to use for purposes
other than building serializers or deserializers; will only have information
on class, not on properties.
|
Constructor and Description |
---|
BasicBeanDescription(MapperConfig<?> config,
JavaType type,
AnnotatedClass classDef,
List<BeanPropertyDefinition> props)
Alternate constructor used in cases where property information is not needed,
only class info.
|
POJOPropertiesCollector(MapperConfig<?> config,
boolean forSerialization,
JavaType type,
AnnotatedClass classDef,
String mutatorPrefix) |
Modifier and Type | Method and Description |
---|---|
abstract Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedClass baseType,
MapperConfig<?> config,
AnnotationIntrospector ai)
Deprecated.
|
abstract Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai,
JavaType baseType)
Deprecated.
|
Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig<?> config,
AnnotatedClass baseType)
Method for finding out all reachable subtypes for given type,
such that access is by type,
typically needed for serialization (converting from type to type name).
|
Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig<?> config,
AnnotatedMember property,
JavaType baseType)
Method for finding out all reachable subtypes for a property specified
by given element (method or field),
such that access is by type,
typically needed for serialization (converting from type to type name).
|
Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig<?> config,
AnnotatedClass baseType)
Method for finding out all reachable subtypes for given type,
such that access is by type id,
typically needed for deserialization (converting from type id to type).
|
Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig<?> config,
AnnotatedMember property,
JavaType baseType)
Method for finding out all reachable subtypes for a property specified
by given element (method or field),
such that access is by type id,
typically needed for deserialization (converting from type id to type).
|
Modifier and Type | Field and Description |
---|---|
protected MapperConfig<?> |
TypeNameIdResolver._config |
Modifier and Type | Method and Description |
---|---|
protected void |
StdSubtypeResolver._collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class), using
type (class) as the unique key (in case of conflicts).
|
protected void |
StdSubtypeResolver._collectAndResolveByTypeId(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
Set<Class<?>> typesHandled,
Map<String,NamedType> byName)
Method called to find subtypes for a specific type (class), using
type id as the unique key (in case of conflicts).
|
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai)
Deprecated.
|
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai,
JavaType baseType)
Deprecated.
|
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig<?> config,
AnnotatedClass type) |
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig<?> config,
AnnotatedMember property,
JavaType baseType) |
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig<?> config,
AnnotatedClass type) |
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig<?> config,
AnnotatedMember property,
JavaType baseType) |
static TypeNameIdResolver |
TypeNameIdResolver.construct(MapperConfig<?> config,
JavaType baseType,
Collection<NamedType> subtypes,
boolean forSer,
boolean forDeser) |
protected TypeIdResolver |
StdTypeResolverBuilder.idResolver(MapperConfig<?> config,
JavaType baseType,
Collection<NamedType> subtypes,
boolean forSer,
boolean forDeser)
Helper method that will either return configured custom
type id resolver, or construct a standard resolver
given configuration.
|
Constructor and Description |
---|
TypeNameIdResolver(MapperConfig<?> config,
JavaType baseType,
HashMap<String,String> typeToId,
HashMap<String,JavaType> idToType) |
Modifier and Type | Method and Description |
---|---|
abstract VirtualBeanPropertyWriter |
VirtualBeanPropertyWriter.withConfig(MapperConfig<?> config,
AnnotatedClass declaringClass,
BeanPropertyDefinition propDef,
JavaType type)
Contextualization method called on a newly constructed virtual bean property.
|
Modifier and Type | Method and Description |
---|---|
VirtualBeanPropertyWriter |
AttributePropertyWriter.withConfig(MapperConfig<?> config,
AnnotatedClass declaringClass,
BeanPropertyDefinition propDef,
JavaType type)
Since this method should typically not be called on this sub-type,
default implementation simply throws an
IllegalStateException . |
Modifier and Type | Method and Description |
---|---|
static SimpleBeanPropertyDefinition |
SimpleBeanPropertyDefinition.construct(MapperConfig<?> config,
AnnotatedMember member) |
static SimpleBeanPropertyDefinition |
SimpleBeanPropertyDefinition.construct(MapperConfig<?> config,
AnnotatedMember member,
PropertyName name) |
static SimpleBeanPropertyDefinition |
SimpleBeanPropertyDefinition.construct(MapperConfig<?> config,
AnnotatedMember member,
PropertyName name,
PropertyMetadata metadata,
com.fasterxml.jackson.annotation.JsonInclude.Include inclusion) |
static SimpleBeanPropertyDefinition |
SimpleBeanPropertyDefinition.construct(MapperConfig<?> config,
AnnotatedMember member,
String name)
Deprecated.
Since 2.5
|
static EnumValues |
EnumValues.constructFromName(MapperConfig<?> config,
Class<Enum<?>> enumClass) |
static EnumValues |
EnumValues.constructFromToString(MapperConfig<?> config,
Class<Enum<?>> enumClass) |
PropertyName |
RootNameLookup.findRootName(Class<?> rootType,
MapperConfig<?> config) |
PropertyName |
RootNameLookup.findRootName(JavaType rootType,
MapperConfig<?> config) |
Copyright © 2014–2015 FasterXML. All rights reserved.