Currently we do not persist metas in any form. However, it might be useful to allow metas to be persisted in Ion to
/* or Element, depending on the interface which defines metas at the time of implementation */
interface IonElement {
// Change metas to:
val metas: Map<String, IonElementConvertible>
}
interface IonElementConvertible {
fun toIonElement(): IonElement
}
This also implies the need for some method of reading metas. For that:
interface IonElementTransformer<T> {
fun transform(element: IonElement): T
}
interface IonElementLoaderOptions {
val metaLoaderRegistry: Map<String, IonElementTransformer<IonElementConvertible>>
}
Currently we do not persist metas in any form. However, it might be useful to allow metas to be persisted in Ion to
This also implies the need for some method of reading metas. For that:
IonElementLoaderOptions
is also described in #19