Package-level declarations

Package with some code that allows for types that help with automatic serialization/deserialization based upon interface. This is not related to kotlinx.serialization.

Package with some code that allows for types that help with automatic serialization/deserialization based upon interface. This is not related to kotlinx.serialization.

Package with some code that allows for types that help with automatic serialization/deserialization based upon interface. This is not related to kotlinx.serialization.

Types

Link copied to clipboard
abstract class BaseSerializableContainer<T : XmlSerializable>(val name: <Error class: unknown class>) : XmlSerializable

Created by pdvrieze on 27/04/16.

Link copied to clipboard

Interface that allows more customization on child deserialization than SimpleXmlDeserializable. Created by pdvrieze on 04/11/15.

Link copied to clipboard
class SerializableCollection<T : XmlSerializable>(name: <Error class: unknown class>, delegate: Collection<T>) : BaseSerializableContainer<T> , Collection<T>
Link copied to clipboard
class SerializableContainer<T : XmlSerializable>(name: <Error class: unknown class>, delegate: Iterable<T>) : BaseSerializableContainer<T> , Iterable<T>
Link copied to clipboard
class SerializableList<T : XmlSerializable>(name: <Error class: unknown class>, delegate: List<T>) : BaseSerializableContainer<T> , List<T>
Link copied to clipboard

Despite the name it is reasonably sophisticated, but it structures the parsing of the children and provides them individually. This in contrast to ExtXmlDeserializable that provides full access to parse the content whatever way desired. Created by pdvrieze on 04/11/15.

Link copied to clipboard
annotation class XmlDeserializer(val value: KClass<out XmlDeserializerFactory<*>>)

Annotation that specifies the Deserializer for this type.

Link copied to clipboard

Functions

Link copied to clipboard
fun <T : XmlSerializable> Collection<T>.asSerializable(name: <Error class: unknown class>): SerializableCollection<T>
fun <T : XmlSerializable> Iterable<T>.asSerializable(name: <Error class: unknown class>): SerializableContainer<T>
fun <T : XmlSerializable> List<T>.asSerializable(name: <Error class: unknown class>): SerializableList<T>
Link copied to clipboard
Link copied to clipboard
inline fun <T : Any> <Error class: unknown class>.deSerialize(): T

Extension functions for XmlReader that only work on Java

fun <T> <Error class: unknown class>.deSerialize(type: Class<T>): T
fun <T : Any> <Error class: unknown class>.deSerialize(type: KClass<T>): T

Utility method to deserialize a list of xml containing strings

Link copied to clipboard
fun <T : Any> <Error class: unknown class>.deserializerFor(type: Class<T>): SerializationProvider.XmlDeserializerFun?
fun <T : Any> <Error class: unknown class>.deserializerFor(klass: KClass<T>): SerializationProvider.XmlDeserializerFun?
Link copied to clipboard
fun XmlSerializable.serialize(writer: <Error class: unknown class>)

Serialize the object to XML

Link copied to clipboard
Link copied to clipboard

Extension functions for writing that need different js/jvm implementations

Link copied to clipboard

Create a reader that can be used to read the xml serialization of the element.

Link copied to clipboard

Do bulk toString conversion of a list. Note that this is serialization, not dropping tags.

Link copied to clipboard
fun toString(serializable: XmlSerializable): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmName(name = "writeChildren2")
fun XmlWriter.writeChildren(children: Iterable<XmlSerializable>?)