Class CoreXMLSerializers
- java.lang.Object
-
- com.fasterxml.jackson.databind.ser.Serializers.Base
-
- com.fasterxml.jackson.databind.ext.CoreXMLSerializers
-
- All Implemented Interfaces:
Serializers
public class CoreXMLSerializers extends Serializers.Base
Provider for serializers of XML types that are part of full JDK 1.5, but that some alleged 1.5 platforms are missing (Android, GAE). And for this reason these are added using more dynamic mechanism.Note: since many of classes defined are abstract, caller must take care not to just use straight equivalency check but rather consider subclassing as well.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoreXMLSerializers.XMLGregorianCalendarSerializer
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.ser.Serializers
Serializers.Base
-
-
Constructor Summary
Constructors Constructor Description CoreXMLSerializers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonSerializer<?>
findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc)
Method called by serialization framework first time a serializer is needed for specified type, which is not of a container or reference type (for which other methods are called).-
Methods inherited from class com.fasterxml.jackson.databind.ser.Serializers.Base
findArraySerializer, findCollectionLikeSerializer, findCollectionSerializer, findMapLikeSerializer, findMapSerializer, findReferenceSerializer
-
-
-
-
Method Detail
-
findSerializer
public JsonSerializer<?> findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc)
Description copied from interface:Serializers
Method called by serialization framework first time a serializer is needed for specified type, which is not of a container or reference type (for which other methods are called).- Specified by:
findSerializer
in interfaceSerializers
- Overrides:
findSerializer
in classSerializers.Base
- Parameters:
config
- Serialization configuration in usetype
- Fully resolved type of instances to serializebeanDesc
- Additional information about type- Returns:
- Configured serializer to use for the type; or null if implementation does not recognize or support type
-
-