Module tools.jackson.dataformat.xml
Package tools.jackson.dataformat.xml.ser
package tools.jackson.dataformat.xml.ser
-
ClassesClassDescription
JsonGeneratorthat outputs JAXB-style XML output instead of JSON content.Copy ofUnwrappingBeanSerializerrequired to extendXmlBeanSerializerBasefor XML-specific handling.Property writer sub-class used for handling element wrapping needed for serializing collection (array, Collection; possibly Map) types.Variant ofBeanSerializerfor XML handling.Specific sub-class ofBeanSerializerBaseneeded to take care of some xml-specific aspects, such as distinction between attributes and elements.We need aValueSerializerModifierto replace defaultBeanSerializerwith XML-specific one; mostly to ensure that attribute properties are output before element properties.We need to override some parts ofSerializationContextimplementation to handle oddities of XML output, like "extra" root element.Factory implementation we need to provide customSerializationContextvariants.