Top Description Constructors Methods
com.fasterxml.jackson.datatype.pcollections

public Class PCollectionsDeserializers

extends Base
Class Inheritance
Imports
com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.Deserializers, com.fasterxml.jackson.databind.jsontype.TypeDeserializer, com.fasterxml.jackson.databind.type.CollectionType, .MapType, com.fasterxml.jackson.datatype.pcollections.deser.*, org.pcollections.*

Custom deserializers module offers.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JsonDeserializer<?>
findCollectionDeserializer(CollectionType
Type of collection instances to deserialize
type
,
DeserializationConfig
Configuration in effect
config
,
BeanDescription
Definition of the enumeration type that contains class annotations and other information typically needed for building deserializers
beanDesc
,
TypeDeserializer
If element type needs polymorphic type handling, this is the type information deserializer to use; should usually be used as is when constructing array deserializer.
elementTypeDeserializer
,
JsonDeserializer<?>
Deserializer to use for elements, if explicitly defined (by using annotations, for exmple). May be null, in which case it should be resolved here (or using ResolvableDeserializer callback)
elementDeserializer
)

Overrides com.fasterxml.jackson.databind.deser.Deserializers.Base.findCollectionDeserializer.

Implements com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

We have plenty of collection types to support...

public JsonDeserializer<?>
findMapDeserializer(MapType
Type of java.util.Map instances to deserialize
type
,
DeserializationConfig
Configuration in effect
config
,
BeanDescription
Definition of the enumeration type that contains class annotations and other information typically needed for building deserializers
beanDesc
,
KeyDeserializer
Key deserializer use, if it is defined via annotations or other configuration; null if default key deserializer for key type can be used.
keyDeserializer
,
TypeDeserializer
If element type needs polymorphic type handling, this is the type information deserializer to use; should usually be used as is when constructing array deserializer.
elementTypeDeserializer
,
JsonDeserializer<?>
Deserializer to use for elements, if explicitly defined (by using annotations, for exmple). May be null, in which case it should be resolved here (or using ResolvableDeserializer callback)
elementDeserializer
)

Overrides com.fasterxml.jackson.databind.deser.Deserializers.Base.findMapDeserializer.

Implements com.fasterxml.jackson.databind.deser.Deserializers.findMapDeserializer.

Method called to locate deserializer for specified java.util.Map type.

Inherited from com.fasterxml.jackson.databind.deser.Deserializers.Base:
findArrayDeserializerfindBeanDeserializerfindCollectionLikeDeserializerfindEnumDeserializerfindMapLikeDeserializerfindReferenceDeserializerfindTreeNodeDeserializer

Constructor Detail

PCollectionsDeserializersback to summary
public PCollectionsDeserializers()

Method Detail

findCollectionDeserializerback to summary
public JsonDeserializer<?> findCollectionDeserializer(CollectionType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer) throws JsonMappingException

Overrides com.fasterxml.jackson.databind.deser.Deserializers.Base.findCollectionDeserializer.

Implements com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

We have plenty of collection types to support...

Parameters
type:CollectionType

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Type of collection instances to deserialize

config:DeserializationConfig

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Configuration in effect

beanDesc:BeanDescription

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Definition of the enumeration type that contains class annotations and other information typically needed for building deserializers

elementTypeDeserializer:TypeDeserializer

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

If element type needs polymorphic type handling, this is the type information deserializer to use; should usually be used as is when constructing array deserializer.

elementDeserializer:JsonDeserializer<?>

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Deserializer to use for elements, if explicitly defined (by using annotations, for exmple). May be null, in which case it should be resolved here (or using ResolvableDeserializer callback)

Returns:JsonDeserializer<?>

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findCollectionDeserializer.

Deserializer to use for the type; or null if this provider does not know how to construct it

Annotations
@Override
findMapDeserializerback to summary
public JsonDeserializer<?> findMapDeserializer(MapType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer) throws JsonMappingException

Overrides com.fasterxml.jackson.databind.deser.Deserializers.Base.findMapDeserializer.

Implements com.fasterxml.jackson.databind.deser.Deserializers.findMapDeserializer.

Doc from com.fasterxml.jackson.databind.deser.Deserializers.findMapDeserializer.

Method called to locate deserializer for specified java.util.Map type.

Deserializer for element type may be passed, if configured explicitly at higher level (by annotations, typically), but usually are not. Type deserializer for element is passed if one is needed based on contextual information (annotations on declared element class; or on field or method type is associated with).

Similarly, a KeyDeserializer may be passed, but this is only done if there is a specific configuration override (annotations) to indicate instance to use. Otherwise null is passed, and key deserializer needs to be obtained later during resolution (using ResolvableDeserializer#resolve).

Parameters
type:MapType

Type of java.util.Map instances to deserialize

config:DeserializationConfig

Configuration in effect

beanDesc:BeanDescription

Definition of the enumeration type that contains class annotations and other information typically needed for building deserializers

keyDeserializer:KeyDeserializer

Key deserializer use, if it is defined via annotations or other configuration; null if default key deserializer for key type can be used.

elementTypeDeserializer:TypeDeserializer

If element type needs polymorphic type handling, this is the type information deserializer to use; should usually be used as is when constructing array deserializer.

elementDeserializer:JsonDeserializer<?>

Deserializer to use for elements, if explicitly defined (by using annotations, for exmple). May be null, in which case it should be resolved here (or using ResolvableDeserializer callback)

Returns:JsonDeserializer<?>

Deserializer to use for the type; or null if this provider does not know how to construct it

Annotations
@Override