| 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.deser |
Contains implementation classes of deserialization part of
data binding.
|
| 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. |
| Modifier and Type | Method and Description |
|---|---|
JavaType |
DeserializationContext.handleMissingTypeId(JavaType baseType,
TypeIdResolver idResolver,
String extraDesc) |
JavaType |
DeserializationContext.handleUnknownTypeId(JavaType baseType,
String id,
TypeIdResolver idResolver,
String extraDesc)
Method that deserializers should call if they encounter a type id
(for polymorphic deserialization) that cannot be resolved to an
actual type; usually since there is no mapping defined.
|
| Modifier and Type | Method and Description |
|---|---|
TypeIdResolver |
MapperConfig.typeIdResolverInstance(Annotated annotated,
Class<? extends TypeIdResolver> resolverClass)
Method that can be called to obtain an instance of
TypeIdResolver of
specified type. |
abstract TypeIdResolver |
HandlerInstantiator.typeIdResolverInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> resolverClass)
Method called to get an instance of TypeIdResolver of specified type.
|
| Modifier and Type | Method and Description |
|---|---|
TypeIdResolver |
MapperConfig.typeIdResolverInstance(Annotated annotated,
Class<? extends TypeIdResolver> resolverClass)
Method that can be called to obtain an instance of
TypeIdResolver of
specified type. |
| Modifier and Type | Method and Description |
|---|---|
JavaType |
DeserializationProblemHandler.handleMissingTypeId(DeserializationContext ctxt,
JavaType baseType,
TypeIdResolver idResolver,
String failureMsg)
Handler method called if an expected type id for a polymorphic value is
not found and no "default type" is specified or allowed.
|
JavaType |
DeserializationProblemHandler.handleUnknownTypeId(DeserializationContext ctxt,
JavaType baseType,
String subTypeId,
TypeIdResolver idResolver,
String failureMsg)
Handler method called if resolution of type id from given String failed
to produce a subtype; usually because logical id is not mapped to actual
implementation class.
|
| Modifier and Type | Method and Description |
|---|---|
abstract TypeIdResolver |
TypeDeserializer.getTypeIdResolver()
Accessor for object that handles conversions between
types and matching type ids.
|
abstract TypeIdResolver |
TypeSerializer.getTypeIdResolver()
Accessor for object that handles conversions between
types and matching type ids.
|
| Modifier and Type | Method and Description |
|---|---|
T |
TypeResolverBuilder.init(com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType,
TypeIdResolver res)
Initialization method that is called right after constructing
the builder instance.
|
default T |
TypeResolverBuilder.init(com.fasterxml.jackson.annotation.JsonTypeInfo.Value settings,
TypeIdResolver res)
Initialization method that is called right after constructing
the builder instance, in cases where information could not be
passed directly (for example when instantiated for an annotation)
NOTE: This method is abstract in Jackson 3.0, at the moment of writing.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClassNameIdResolver
TypeIdResolver implementation
that converts between fully-qualified
Java class names and (JSON) Strings. |
class |
MinimalClassNameIdResolver
Specialization of
ClassNameIdResolver that instead uses a
"minimal" derivation of Class name, using relative reference
from the base type (base class) that polymorphic value has. |
class |
SimpleNameIdResolver
TypeIdResolver implementation
that converts using explicitly (annotation-) specified type names
and maps to implementation classes; or, in absence of annotated type name,
defaults to simple Class names (obtained with Class.getSimpleName(). |
class |
TypeIdResolverBase
Partial base implementation of
TypeIdResolver: all custom implementations
are strongly recommended to extend this class, instead of directly
implementing TypeIdResolver. |
class |
TypeNameIdResolver
TypeIdResolver implementation
that converts using explicitly (annotation-) specified type names
and maps to implementation classes; or, in absence of annotated type name,
defaults to fully-qualified Class names (obtained with Class.getName() |
| Modifier and Type | Field and Description |
|---|---|
protected TypeIdResolver |
StdTypeResolverBuilder._customIdResolver |
protected TypeIdResolver |
TypeDeserializerBase._idResolver |
protected TypeIdResolver |
TypeSerializerBase._idResolver |
| Modifier and Type | Method and Description |
|---|---|
TypeIdResolver |
TypeDeserializerBase.getTypeIdResolver() |
TypeIdResolver |
TypeSerializerBase.getTypeIdResolver() |
protected TypeIdResolver |
StdTypeResolverBuilder.idResolver(MapperConfig<?> config,
JavaType baseType,
PolymorphicTypeValidator subtypeValidator,
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.
|
| Modifier and Type | Method and Description |
|---|---|
StdTypeResolverBuilder |
StdTypeResolverBuilder.init(com.fasterxml.jackson.annotation.JsonTypeInfo.Id idType,
TypeIdResolver idRes) |
StdTypeResolverBuilder |
StdTypeResolverBuilder.init(com.fasterxml.jackson.annotation.JsonTypeInfo.Value settings,
TypeIdResolver idRes) |
| Constructor and Description |
|---|
AsArrayTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl) |
AsArrayTypeSerializer(TypeIdResolver idRes,
BeanProperty property) |
AsDeductionTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
JavaType defaultImpl,
DeserializationConfig config,
Collection<NamedType> subtypes) |
AsExistingPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
AsExternalTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl) |
AsExternalTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
AsPropertyTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl)
Deprecated.
Since 2.15 (not used)
|
AsPropertyTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl,
com.fasterxml.jackson.annotation.JsonTypeInfo.As inclusion)
Deprecated.
Since 2.15 (not used)
|
AsPropertyTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl,
com.fasterxml.jackson.annotation.JsonTypeInfo.As inclusion,
boolean strictTypeIdHandling) |
AsPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
AsWrapperTypeDeserializer(JavaType bt,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl) |
AsWrapperTypeSerializer(TypeIdResolver idRes,
BeanProperty property) |
TypeDeserializerBase(JavaType baseType,
TypeIdResolver idRes,
String typePropertyName,
boolean typeIdVisible,
JavaType defaultImpl) |
TypeSerializerBase(TypeIdResolver idRes,
BeanProperty property) |
Copyright © 2008–2024 FasterXML. All rights reserved.