YamlSource

class YamlSource(entries: Map<String, String>, origin: String? = null) : MapBackedSource(source)

YAML source parsed by kaml, with full YAML 1.2 support (anchors, block scalars, flow collections). Mappings become dotted keys (database: {url: x} is database.url), lists of scalars become [a, "b"] lists, and lists of mappings are numbered (servers.0.name).

Constructors

Link copied to clipboard
constructor(entries: Map<String, String>, origin: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val fallbackKeyFormats: List<KeyFormat>
Link copied to clipboard
open override val keyFormat: KeyFormat
Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard
open override fun children(key: String): Map<String, String>?
Link copied to clipboard
open override fun get(key: String): String?