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
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.map.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
Modifier and Type | Field and Description |
---|---|
protected SubtypeResolver |
ObjectMapper._subtypeResolver
Registered concrete subtypes that can be used instead of (or
in addition to) ones declared using annotations.
|
protected SubtypeResolver |
MapperConfig._subtypeResolver
Registered concrete subtypes that can be used instead of (or
in addition to) ones declared using annotations.
|
Modifier and Type | Method and Description |
---|---|
SubtypeResolver |
ObjectMapper.getSubtypeResolver()
Method for accessing subtype resolver in use.
|
SubtypeResolver |
MapperConfig.getSubtypeResolver()
Accessor for object used for finding out all reachable subtypes
for supertypes; needed when a logical type name is used instead
of class name (or custom scheme).
|
Modifier and Type | Method and Description |
---|---|
SerializationConfig |
SerializationConfig.createUnshared(SubtypeResolver subtypeResolver) |
DeserializationConfig |
DeserializationConfig.createUnshared(SubtypeResolver subtypeResolver)
Method that is called to create a non-shared copy of the configuration
to be used for a deserialization operation.
|
abstract T |
MapperConfig.createUnshared(SubtypeResolver subtypeResolver)
Method to use for constructing an instance that is not shared
between multiple operations but only used for a single one
(which may be this instance, if it is immutable; if not, a copy
is constructed with same settings)
|
void |
ObjectMapper.setSubtypeResolver(SubtypeResolver r)
Method for setting custom subtype resolver to use.
|
SerializationConfig |
SerializationConfig.withSubtypeResolver(SubtypeResolver str) |
DeserializationConfig |
DeserializationConfig.withSubtypeResolver(SubtypeResolver str) |
abstract T |
MapperConfig.withSubtypeResolver(SubtypeResolver str)
Method for constructing and returning a new instance with different
SubtypeResolver
to use. |
Constructor and Description |
---|
DeserializationConfig(ClassIntrospector<? extends BeanDescription> intr,
AnnotationIntrospector annIntr,
VisibilityChecker<?> vc,
SubtypeResolver subtypeResolver,
PropertyNamingStrategy propertyNamingStrategy,
TypeFactory typeFactory,
HandlerInstantiator handlerInstantiator)
Constructor used by ObjectMapper to create default configuration object instance.
|
MapperConfig(ClassIntrospector<? extends BeanDescription> ci,
AnnotationIntrospector ai,
VisibilityChecker<?> vc,
SubtypeResolver str,
PropertyNamingStrategy pns,
TypeFactory tf,
HandlerInstantiator hi) |
MapperConfig(MapperConfig<T> src,
MapperConfig.Base base,
SubtypeResolver str) |
SerializationConfig(ClassIntrospector<? extends BeanDescription> intr,
AnnotationIntrospector annIntr,
VisibilityChecker<?> vc,
SubtypeResolver subtypeResolver,
PropertyNamingStrategy propertyNamingStrategy,
TypeFactory typeFactory,
HandlerInstantiator handlerInstantiator)
Constructor used by ObjectMapper to create default configuration object instance.
|
SerializationConfig(SerializationConfig src,
java.util.HashMap<ClassKey,java.lang.Class<?>> mixins,
SubtypeResolver str)
Constructor used to make a private copy of specific mix-in definitions.
|
Modifier and Type | Class and Description |
---|---|
class |
StdSubtypeResolver |