Module tools.jackson.dataformat.xml
Package tools.jackson.dataformat.xml.ser
package tools.jackson.dataformat.xml.ser
-
ClassDescriptionValue container to represent XML Document Type Declaration, to be written using
XmlGeneratorInitializer.Entity representing binding from prefix to namespace URI, used to determine prefix to use for given namespace URI (and dynamically adding necessary declarations)Value container to represent XML Comment within Prolog part of the Document (before XML Root element, after XML declaration if one written), to be written usingXmlGeneratorInitializer.Base API for XML nodes -- Comments, DTDs, Processing Instructions -- to be written in Document Prolog (before actual XML Document (root node), after optional XML Declaration).Value container to represent XML Processing Instruction (PI) within Prolog part of the Document (before XML Root element, after XML declaration if one written), to be written usingXmlGeneratorInitializer.Value container to represent an attribute to add to the root XML element being written, to be registered viaXmlGeneratorInitializer.addRootAttribute(QName, String)(or its String-name overload).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; not 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.Immutable entity representing an XML Declaration to write (e.g.DefaultGeneratorInitializerimplementation to use withToXmlGenerator, registered viaObjectWriter.with(GeneratorInitializer).Common API for XML entities to write viaToXmlGenerator.Property writer sub-class used for unwrapped (no wrapper element) Collection/array 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.