public class XmlSerializerProvider
extends com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
SerializerProvider
implementation to handle oddities of XML output, like "extra" root element.Modifier and Type | Field and Description |
---|---|
protected XmlRootNameLookup |
_rootNameLookup |
protected static QName |
ROOT_NAME_FOR_NULL
If all we get to serialize is a null, there's no way to figure out
expected root name; so let's just default to something like "<null>"...
|
_objectIdGenerators, _seenObjectIds
_config, _dateFormat, _keySerializer, _knownSerializers, _nullKeySerializer, _nullValueSerializer, _rootNames, _serializationView, _serializerCache, _serializerFactory, _unknownTypeSerializer, CACHE_UNKNOWN_MAPPINGS, DEFAULT_NULL_KEY_SERIALIZER, DEFAULT_UNKNOWN_SERIALIZER, TYPE_OBJECT
Constructor and Description |
---|
XmlSerializerProvider(XmlRootNameLookup rootNames) |
XmlSerializerProvider(XmlSerializerProvider src,
com.fasterxml.jackson.databind.SerializationConfig config,
com.fasterxml.jackson.databind.ser.SerializerFactory f) |
Modifier and Type | Method and Description |
---|---|
protected void |
_initWithRootName(com.fasterxml.jackson.core.JsonGenerator jgen,
QName rootName) |
com.fasterxml.jackson.databind.ser.DefaultSerializerProvider |
createInstance(com.fasterxml.jackson.databind.SerializationConfig config,
com.fasterxml.jackson.databind.ser.SerializerFactory jsf) |
void |
serializeValue(com.fasterxml.jackson.core.JsonGenerator jgen,
Object value) |
void |
serializeValue(com.fasterxml.jackson.core.JsonGenerator jgen,
Object value,
com.fasterxml.jackson.databind.JavaType rootType) |
void |
serializeValue(com.fasterxml.jackson.core.JsonGenerator jgen,
Object value,
com.fasterxml.jackson.databind.JavaType rootType,
com.fasterxml.jackson.databind.JsonSerializer<Object> ser) |
acceptJsonFormatVisitor, cachedSerializersCount, findObjectId, flushCachedSerializers, generateJsonSchema, hasSerializerFor, serializerInstance
_createAndCacheUntypedSerializer, _createAndCacheUntypedSerializer, _createUntypedSerializer, _dateFormat, _findExplicitUntypedSerializer, _handleContextual, _handleContextualResolvable, _handleResolvable, _reportIncompatibleRootType, defaultSerializeDateKey, defaultSerializeDateKey, defaultSerializeDateValue, defaultSerializeDateValue, defaultSerializeField, defaultSerializeNull, defaultSerializeValue, findKeySerializer, findNullKeySerializer, findNullValueSerializer, findTypedValueSerializer, findTypedValueSerializer, findValueSerializer, findValueSerializer, getActiveView, getAnnotationIntrospector, getConfig, getDefaultNullKeySerializer, getDefaultNullValueSerializer, getFilterProvider, getLocale, getSerializationView, getTimeZone, getTypeFactory, getUnknownTypeSerializer, isEnabled, setDefaultKeySerializer, setNullKeySerializer, setNullValueSerializer
protected static final QName ROOT_NAME_FOR_NULL
protected final XmlRootNameLookup _rootNameLookup
public XmlSerializerProvider(XmlRootNameLookup rootNames)
public XmlSerializerProvider(XmlSerializerProvider src, com.fasterxml.jackson.databind.SerializationConfig config, com.fasterxml.jackson.databind.ser.SerializerFactory f)
public com.fasterxml.jackson.databind.ser.DefaultSerializerProvider createInstance(com.fasterxml.jackson.databind.SerializationConfig config, com.fasterxml.jackson.databind.ser.SerializerFactory jsf)
createInstance
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator jgen, Object value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
com.fasterxml.jackson.core.JsonProcessingException
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator jgen, Object value, com.fasterxml.jackson.databind.JavaType rootType) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
com.fasterxml.jackson.core.JsonProcessingException
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator jgen, Object value, com.fasterxml.jackson.databind.JavaType rootType, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
com.fasterxml.jackson.core.JsonGenerationException
protected void _initWithRootName(com.fasterxml.jackson.core.JsonGenerator jgen, QName rootName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2012-2013 FasterXML. All Rights Reserved.