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 |
_generator, _objectIdGenerators, _seenObjectIds
_attributes, _config, _dateFormat, _keySerializer, _knownSerializers, _nullKeySerializer, _nullValueSerializer, _serializationView, _serializerCache, _serializerFactory, _stdNullValueSerializer, _unknownTypeSerializer, CACHE_UNKNOWN_MAPPINGS, DEFAULT_NULL_KEY_SERIALIZER, DEFAULT_UNKNOWN_SERIALIZER
Modifier | Constructor and Description |
---|---|
|
XmlSerializerProvider(XmlRootNameLookup rootNames) |
protected |
XmlSerializerProvider(XmlSerializerProvider src) |
|
XmlSerializerProvider(XmlSerializerProvider src,
com.fasterxml.jackson.databind.SerializationConfig config,
com.fasterxml.jackson.databind.ser.SerializerFactory f) |
Modifier and Type | Method and Description |
---|---|
protected ToXmlGenerator |
_asXmlGenerator(com.fasterxml.jackson.core.JsonGenerator gen) |
protected void |
_initWithRootName(ToXmlGenerator xgen,
QName rootName) |
protected QName |
_rootNameFromConfig() |
protected void |
_serializeUnwrappedObjectNode(ToXmlGenerator xgen,
Object value,
com.fasterxml.jackson.databind.JsonSerializer<Object> ser) |
protected void |
_serializeXmlNull(com.fasterxml.jackson.core.JsonGenerator gen) |
protected boolean |
_shouldUnwrapObjectNode(ToXmlGenerator xgen,
Object value) |
protected void |
_startRootArray(ToXmlGenerator xgen,
QName rootName) |
protected IOException |
_wrapAsIOE(com.fasterxml.jackson.core.JsonGenerator g,
Exception e) |
com.fasterxml.jackson.databind.ser.DefaultSerializerProvider |
copy() |
com.fasterxml.jackson.databind.ser.DefaultSerializerProvider |
createInstance(com.fasterxml.jackson.databind.SerializationConfig config,
com.fasterxml.jackson.databind.ser.SerializerFactory jsf) |
void |
serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator gen,
Object value,
com.fasterxml.jackson.databind.JavaType rootType,
com.fasterxml.jackson.databind.JsonSerializer<Object> valueSer,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
void |
serializeValue(com.fasterxml.jackson.core.JsonGenerator gen,
Object value) |
void |
serializeValue(com.fasterxml.jackson.core.JsonGenerator gen,
Object value,
com.fasterxml.jackson.databind.JavaType rootType) |
void |
serializeValue(com.fasterxml.jackson.core.JsonGenerator gen,
Object value,
com.fasterxml.jackson.databind.JavaType rootType,
com.fasterxml.jackson.databind.JsonSerializer<Object> ser) |
_createObjectIdMap, _serializeNull, acceptJsonFormatVisitor, cachedSerializersCount, findObjectId, flushCachedSerializers, generateJsonSchema, getGenerator, hasSerializerFor, includeFilterInstance, includeFilterSuppressNulls, serializerInstance
_createAndCacheUntypedSerializer, _createAndCacheUntypedSerializer, _createUntypedSerializer, _dateFormat, _findExplicitUntypedSerializer, _handleContextualResolvable, _handleResolvable, _reportIncompatibleRootType, bufferForValueConversion, bufferForValueConversion, canOverrideAccessModifiers, constructSpecializedType, defaultSerializeDateKey, defaultSerializeDateKey, defaultSerializeDateValue, defaultSerializeDateValue, defaultSerializeField, defaultSerializeNull, defaultSerializeValue, findContentValueSerializer, findContentValueSerializer, findKeySerializer, findKeySerializer, findNullKeySerializer, findNullValueSerializer, findPrimaryPropertySerializer, findPrimaryPropertySerializer, findTypedValueSerializer, findTypedValueSerializer, findTypeSerializer, findValueSerializer, findValueSerializer, findValueSerializer, findValueSerializer, getActiveView, getAnnotationIntrospector, getAttribute, getConfig, getDefaultNullKeySerializer, getDefaultNullValueSerializer, getDefaultPropertyFormat, getDefaultPropertyInclusion, getFilterProvider, getLocale, getTimeZone, getTypeFactory, getUnknownTypeSerializer, handlePrimaryContextualization, handleSecondaryContextualization, hasSerializationFeatures, invalidTypeIdException, isEnabled, isEnabled, isEnabled, isUnknownTypeSerializer, mappingException, mappingException, reportBadDefinition, reportBadDefinition, reportBadDefinition, reportBadPropertyDefinition, reportBadTypeDefinition, reportMappingProblem, reportMappingProblem, setAttribute, setDefaultKeySerializer, setNullKeySerializer, setNullValueSerializer
_colonConcat, _desc, _format, _quotedString, _throwNotASubtype, _throwSubtypeClassNotAllowed, _throwSubtypeNameNotAllowed, _truncate, constructType, converterInstance, objectIdGeneratorInstance, objectIdResolverInstance, reportBadDefinition, resolveAndValidateSubType, resolveSubType
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)
protected XmlSerializerProvider(XmlSerializerProvider src)
public com.fasterxml.jackson.databind.ser.DefaultSerializerProvider copy()
copy
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
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 gen, Object value) throws IOException
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, Object value, com.fasterxml.jackson.databind.JavaType rootType) throws IOException
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
public void serializeValue(com.fasterxml.jackson.core.JsonGenerator gen, Object value, com.fasterxml.jackson.databind.JavaType rootType, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) throws IOException
serializeValue
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
public void serializePolymorphic(com.fasterxml.jackson.core.JsonGenerator gen, Object value, com.fasterxml.jackson.databind.JavaType rootType, com.fasterxml.jackson.databind.JsonSerializer<Object> valueSer, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
serializePolymorphic
in class com.fasterxml.jackson.databind.ser.DefaultSerializerProvider
IOException
protected void _serializeXmlNull(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
IOException
protected void _startRootArray(ToXmlGenerator xgen, QName rootName) throws IOException
IOException
protected void _initWithRootName(ToXmlGenerator xgen, QName rootName) throws IOException
IOException
protected QName _rootNameFromConfig()
protected boolean _shouldUnwrapObjectNode(ToXmlGenerator xgen, Object value)
protected void _serializeUnwrappedObjectNode(ToXmlGenerator xgen, Object value, com.fasterxml.jackson.databind.JsonSerializer<Object> ser) throws IOException
IOException
protected ToXmlGenerator _asXmlGenerator(com.fasterxml.jackson.core.JsonGenerator gen) throws com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.databind.JsonMappingException
protected IOException _wrapAsIOE(com.fasterxml.jackson.core.JsonGenerator g, Exception e)
Copyright © 2022 FasterXML. All rights reserved.