Class CoreXMLDeserializers
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.Deserializers.Base
-
- com.fasterxml.jackson.databind.ext.CoreXMLDeserializers
-
- All Implemented Interfaces:
Deserializers
public class CoreXMLDeserializers extends Deserializers.Base
Container deserializers that handle "core" XML types: ones included in standard JDK 1.5. Types are directly needed by JAXB, but may be unavailable on some limited platforms; hence separate out from basic deserializer factory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoreXMLDeserializers.Std
Combo-deserializer that supports deserialization of somewhat optional javax.xml typesQName
,Duration
andXMLGregorianCalendar
.-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.deser.Deserializers
Deserializers.Base
-
-
Constructor Summary
Constructors Constructor Description CoreXMLDeserializers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, java.lang.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.-
Methods inherited from class com.fasterxml.jackson.databind.deser.Deserializers.Base
findArrayDeserializer, findCollectionDeserializer, findCollectionLikeDeserializer, findEnumDeserializer, findMapDeserializer, findMapLikeDeserializer, findReferenceDeserializer, findTreeNodeDeserializer
-
-
-
-
Method Detail
-
findBeanDeserializer
public JsonDeserializer<?> findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
Description copied from interface:Deserializers
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)- Specified by:
findBeanDeserializer
in interfaceDeserializers
- Overrides:
findBeanDeserializer
in classDeserializers.Base
- Parameters:
type
- Bean type to deserializeconfig
- Configuration in effectbeanDesc
- Definition of the enumeration type that contains class annotations and other information typically needed for building deserializers- Returns:
- Deserializer to use for the type; or null if this provider does not know how to construct it
-
hasDeserializerFor
public boolean hasDeserializerFor(DeserializationConfig config, java.lang.Class<?> valueType)
Description copied from interface:Deserializers
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. Mostly needed to support validation of polymorphic type ids.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.
-
-