XmlSerializationPolicy

Types

Link copied to clipboard
data class ActualNameInfo(val serialName: String, val annotatedName: QName)
Link copied to clipboard
object Companion
Link copied to clipboard
data class DeclaredNameInfo(val serialName: String, val annotatedName: QName?, val isDefaultNamespace: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun attributeListDelimiters(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): Array<String>

Determine the delimiters to use to separate attributes. When writing will always write the first element.

Link copied to clipboard
open fun defaultOutputKind(serialKind: SerialKind): OutputKind
Link copied to clipboard
abstract fun effectiveName(serializerParent: SafeParentInfo, tagParent: SafeParentInfo, outputKind: OutputKind, useName: XmlSerializationPolicy.DeclaredNameInfo = tagParent.elementUseNameInfo): QName
Link copied to clipboard
open fun effectiveOutputKind(serializerParent: SafeParentInfo, tagParent: SafeParentInfo, canBeAttribute: Boolean): OutputKind
Link copied to clipboard
open fun elementNamespaceDecls(serializerParent: SafeParentInfo): List<Namespace>

Determine namespace prefixes to make sure are set upon the tag.

Link copied to clipboard
open fun enumEncoding(enumDescriptor: SerialDescriptor, index: Int): String
Link copied to clipboard
open fun handleAttributeOrderConflict(serializerParent: SafeParentInfo, tagParent: SafeParentInfo, outputKind: OutputKind): OutputKind
Link copied to clipboard
open fun handleUnknownContentRecovering(input: XmlReader, inputKind: InputKind, descriptor: XmlDescriptor, name: QName?, candidates: Collection<Any>): List<XML.ParsedData<*>>
Link copied to clipboard
abstract fun ignoredSerialInfo(message: String)
Link copied to clipboard

Allow modifying the ordering of children.

Link copied to clipboard
open fun invalidOutputKind(message: String)
Link copied to clipboard
abstract fun isListEluded(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): Boolean
Link copied to clipboard
open fun isMapValueCollapsed(mapParent: SafeParentInfo, valueDescriptor: XmlDescriptor): Boolean

Determine whether the key attribute should be collapsed into the value tag rather than the value being nested in a container for the element.

Link copied to clipboard
abstract fun isTransparentPolymorphic(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): Boolean
Link copied to clipboard
open fun mapEntryName(serializerParent: SafeParentInfo, isListEluded: Boolean): QName

Determine the name to use for the map element (only used when a map entry is wrapped)

Link copied to clipboard

Determine the name of map keys for a given map type

Link copied to clipboard

Determine the name of the values for a given map type

Link copied to clipboard
open fun onElementRepeated(parentDescriptor: XmlDescriptor, childIndex: Int)
Link copied to clipboard
open fun overrideSerializerOrNull(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): KSerializer<*>?
Link copied to clipboard
abstract fun polymorphicDiscriminatorName(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): QName?
Link copied to clipboard
open fun preserveSpace(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun shouldEncodeElementDefault(elementDescriptor: XmlDescriptor?): Boolean
Link copied to clipboard
open fun textListDelimiters(serializerParent: SafeParentInfo, tagParent: SafeParentInfo): Array<String>

Determine the delimiters to use to separate primitive/textual list elements when use inside an element. When writing will always write the first element.

Link copied to clipboard