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.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
Modifier and Type | Class and Description |
---|---|
static class |
ObjectMapper.DefaultTypeResolverBuilder
Customized
TypeResolverBuilder that provides type resolver builders
used with so-called "default typing"
(see ObjectMapper.enableDefaultTyping() for details). |
Modifier and Type | Field and Description |
---|---|
protected TypeResolverBuilder<?> |
MapperConfig.Base._typeResolverBuilder
Type information handler used for "untyped" values (ones declared
to have type
Object.class ) |
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) |
TypeResolverBuilder<?> |
MapperConfig.getDefaultTyper(JavaType baseType)
Method called to locate a type info handler for types that do not have
one explicitly declared via annotations (or other configuration).
|
TypeResolverBuilder<?> |
MapperConfig.Base.getTypeResolverBuilder() |
TypeResolverBuilder<?> |
MapperConfig.typeResolverBuilderInstance(Annotated annotated,
Class<? extends TypeResolverBuilder<?>> builderClass)
Method that can be called to obtain 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.
|
Modifier and Type | Method and Description |
---|---|
ObjectMapper |
ObjectMapper.setDefaultTyping(TypeResolverBuilder<?> typer)
Method for enabling automatic inclusion of type information, using
specified handler object for determining which types this affects,
as well as details of how information is embedded.
|
SerializationConfig |
SerializationConfig.withTypeResolverBuilder(TypeResolverBuilder<?> trb) |
abstract T |
MapperConfig.withTypeResolverBuilder(TypeResolverBuilder<?> trb)
Method for constructing and returning a new instance with different
TypeResolverBuilder
to use. |
MapperConfig.Base |
MapperConfig.Base.withTypeResolverBuilder(TypeResolverBuilder<?> typer) |
DeserializationConfig |
DeserializationConfig.withTypeResolverBuilder(TypeResolverBuilder<?> trb) |
Modifier and Type | Method and Description |
---|---|
TypeResolverBuilder<?> |
MapperConfig.typeResolverBuilderInstance(Annotated annotated,
Class<? extends TypeResolverBuilder<?>> builderClass)
Method that can be called to obtain 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.
|
Constructor and Description |
---|
MapperConfig.Base(ClassIntrospector<? extends BeanDescription> ci,
AnnotationIntrospector ai,
VisibilityChecker<?> vc,
PropertyNamingStrategy pns,
TypeFactory tf,
TypeResolverBuilder<?> typer,
DateFormat dateFormat,
HandlerInstantiator hi) |
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. |
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) |
Modifier and Type | Interface and Description |
---|---|
interface |
TypeResolverBuilder<T extends TypeResolverBuilder<T>>
Interface that defines builders that are configured based on
annotations (like
JsonTypeInfo or JAXB annotations),
and produce type serializers and deserializers used for
handling type information embedded in JSON to allow for safe
polymorphic type handling. |
Modifier and Type | Class and Description |
---|---|
class |
StdTypeResolverBuilder
Default
TypeResolverBuilder implementation. |
Modifier and Type | Method and Description |
---|---|
protected TypeResolverBuilder<?> |
JaxbAnnotationIntrospector._typeResolverFromXmlElements(AnnotatedMember am) |
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) |