Package com.uchuhimo.konf.source.base

Types

EmptyMapSource
Link copied to clipboard
class EmptyMapSource : MapSource
Source from an empty map.
EmptyStringNode
Link copied to clipboard
object EmptyStringNode : SubstitutableNode, ListNode
FlatSource
Link copied to clipboard
open class FlatSource(map: Map<String, String>, type: String, info: SourceInfo, allowConflict: Boolean) : Source
Source from a map in flat format.
KVSource
Link copied to clipboard
open class KVSource(map: Map<String, Any>, type: String, info: SourceInfo) : ValueSource
Source from a map in key-value format.
ListStringNode
Link copied to clipboard
class ListStringNode(value: String, substituted: Boolean, originalValue: Any?) : ListSourceNode, SubstitutableNode
MapSource
Link copied to clipboard
open class MapSource(map: Map<String, Any>, type: String, info: SourceInfo) : ValueSource
Source from a hierarchical map.
SingleStringListNode
Link copied to clipboard
class SingleStringListNode(value: String, substituted: Boolean, originalValue: Any?) : SubstitutableNode, ListNode
ValueSource
Link copied to clipboard
open class ValueSource(value: Any, type: String, info: SourceInfo) : Source
Source from a single value.

Functions

asKVSource
Link copied to clipboard
fun Map<String, Any>.asKVSource(): KVSource
kvToTree
Link copied to clipboard
fun Map<String, Any>.kvToTree(): TreeNode
promoteToList
Link copied to clipboard
fun ContainerNode.promoteToList(): TreeNode
fun String.promoteToList(substitute: Boolean = false, originalValue: Any? = null): TreeNode
toFlatMap
Link copied to clipboard
fun Config.toFlatMap(): Map<String, String>
Returns a map in flat format for this config.
toHierarchical
Link copied to clipboard
fun TreeNode.toHierarchical(): Any
Returns a hierarchical value for this tree node.
toHierarchicalMap
Link copied to clipboard
fun Config.toHierarchicalMap(): Map<String, Any>
Returns a hierarchical map for this config.