public class CoreXMLDeserializers extends Deserializers.Base
Modifier and Type | Class and Description |
---|---|
static class |
CoreXMLDeserializers.Std
Combo-deserializer that supports deserialization of somewhat optional
javax.xml types
QName , Duration and XMLGregorianCalendar . |
Deserializers.Base
Modifier and Type | Field and Description |
---|---|
protected static int |
TYPE_DURATION |
protected static int |
TYPE_G_CALENDAR |
protected static int |
TYPE_QNAME |
Constructor and Description |
---|
CoreXMLDeserializers() |
Modifier and Type | Method and Description |
---|---|
JsonDeserializer<?> |
findBeanDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc)
Method called to locate deserializer for specified value type which does not belong to any other
category (not an Enum, Collection, Map, Array, reference value or tree node)
|
boolean |
hasDeserializerFor(DeserializationConfig config,
Class<?> valueType)
Method that may be called to check whether this deserializer provider would provide
deserializer for values of given type, without attempting to construct (and possibly
fail in some cases) actual deserializer.
|
findArrayDeserializer, findCollectionDeserializer, findCollectionLikeDeserializer, findEnumDeserializer, findMapDeserializer, findMapLikeDeserializer, findReferenceDeserializer, findTreeNodeDeserializer
protected static final int TYPE_DURATION
protected static final int TYPE_G_CALENDAR
protected static final int TYPE_QNAME
public JsonDeserializer<?> findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
Deserializers
findBeanDeserializer
in interface Deserializers
findBeanDeserializer
in class Deserializers.Base
type
- Bean type to deserializeconfig
- Configuration in effectbeanDesc
- Definition of the enumeration type that contains class annotations and
other information typically needed for building deserializerspublic boolean hasDeserializerFor(DeserializationConfig config, Class<?> valueType)
Deserializers
Note: implementations should take care NOT to claim supporting types that they do not recognize as this could to incorrect assumption of safe support by caller.
Method added in Jackson 2.13 now that Java 8 default implementations are available for use with interface definitions.
Copyright © 2008–2021 FasterXML. All rights reserved.