Builder

open class Builder(source)

A configuration builder for the default serialization policy.

Constructors

Link copied to clipboard
constructor()

Constructor for default builder. To set any values, use the property setters. The primary constructor is internal as it is not stable as new configuration options are added.

constructor(policy: DefaultXmlSerializationPolicy)

Properties

Link copied to clipboard

Rather than using type wrappers use the tag name to distinguish polymorphic types

Link copied to clipboard

Determine whether defaults need to be encoded

Link copied to clipboard

Process attribute name reading strictly according to the XML standard, or a name handling that is a bit more lenient

Link copied to clipboard

Parse boolean data according to the requirements of XML, rather than the (very lenient) toBoolean function from the Kotlin standard library.

Link copied to clipboard

Enable some stricter behaviour

Link copied to clipboard

When a single-value elemement is repeated in the content, will this throw an exception or only retain the final value

Link copied to clipboard

When set, use a type discriminator property

Link copied to clipboard

Function called when an unknown child is encountered. By default it throws an exception, but this function can use its own recovery behaviour

Link copied to clipboard

Verify that element children are in the order required by order annotations (and fail if not correct). Note that attribute order in XML is arbitrary and not meaningful.

Functions

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