Package | Description |
---|---|
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.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
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
TypeIdResolver . |
org.codehaus.jackson.map.util |
Utility classes for Mapper package.
|
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
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 |
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 |
---|---|
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.Pair.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
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.Pair.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
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.
|
TypeResolverBuilder<?> |
AnnotationIntrospector.Pair.findTypeResolver(MapperConfig<?> config,
AnnotatedClass ac,
JavaType baseType) |
T |
ClassIntrospector.forClassAnnotations(MapperConfig<?> cfg,
Class<?> cls,
ClassIntrospector.MixInResolver r)
Deprecated.
since 1.9, use variant that takes JavaType
|
abstract T |
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.
|
T |
ClassIntrospector.forDirectClassAnnotations(MapperConfig<?> cfg,
Class<?> cls,
ClassIntrospector.MixInResolver r)
Deprecated.
since 1.9, use variant that takes JavaType
|
abstract T |
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.
|
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) |
abstract TypeIdResolver |
HandlerInstantiator.typeIdResolverInstance(MapperConfig<?> config,
Annotated annotated,
Class<? extends TypeIdResolver> resolverClass)
Method called to get an instance of TypeIdResolver of specified type.
|
abstract TypeResolverBuilder<?> |
HandlerInstantiator.typeResolverBuilderInstance(MapperConfig<?> config,
Annotated annotated,
Class<? extends TypeResolverBuilder<?>> builderClass)
Method called to get an instance of TypeResolverBuilder of specified type.
|
ValueInstantiator |
HandlerInstantiator.valueInstantiatorInstance(MapperConfig<?> config,
Annotated annotated,
Class<? extends ValueInstantiator> resolverClass)
Method called to construct an instance of ValueInstantiator of specified type.
|
Constructor and Description |
---|
MapperConfig(MapperConfig<T> src)
Simple copy constructor
|
MapperConfig(MapperConfig<T> src,
MapperConfig.Base base,
SubtypeResolver str) |
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 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. |
AnnotatedClass |
BasicClassIntrospector.classWithCreators(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r) |
POJOPropertiesCollector |
BasicClassIntrospector.collectProperties(MapperConfig<?> config,
JavaType type,
ClassIntrospector.MixInResolver r,
boolean forSerialization) |
protected POJOPropertiesCollector |
BasicClassIntrospector.constructPropertyCollector(MapperConfig<?> config,
AnnotatedClass ac,
JavaType type,
boolean forSerialization)
Overridable method called for creating
POJOPropertiesCollector instance
to use; override is needed if a custom sub-class is to be used. |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType)
Since 1.7, it is possible to use
JsonTypeInfo from a property too. |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType)
Since 1.7, it is possible to use
JsonTypeInfo from a property too. |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findTypeResolver(MapperConfig<?> config,
AnnotatedClass ac,
JavaType baseType) |
BasicBeanDescription |
BasicClassIntrospector.forClassAnnotations(MapperConfig<?> cfg,
JavaType type,
ClassIntrospector.MixInResolver r) |
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 ac)
Deprecated.
Since 1.9, should use factory methods instead
|
BasicBeanDescription(MapperConfig<?> config,
JavaType type,
AnnotatedClass ac,
List<BeanPropertyDefinition> properties) |
POJOPropertiesCollector(MapperConfig<?> config,
boolean forSerialization,
JavaType type,
AnnotatedClass classDef) |
Modifier and Type | Method and Description |
---|---|
abstract Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedClass basetype,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for given type.
|
abstract Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for a property specified
by given element (method or field)
|
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)
|
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai) |
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai) |
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 |
---|---|
SerializedString |
RootNameLookup.findRootName(Class<?> rootType,
MapperConfig<?> config) |
SerializedString |
RootNameLookup.findRootName(JavaType rootType,
MapperConfig<?> config) |
Modifier and Type | Method and Description |
---|---|
TypeResolverBuilder<?> |
JaxbAnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType) |
TypeResolverBuilder<?> |
JaxbAnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
TypeResolverBuilder<?> |
JaxbAnnotationIntrospector.findTypeResolver(MapperConfig<?> config,
AnnotatedClass ac,
JavaType baseType) |