Meta

@Type(id = "meta")
interface Meta : MetaRepr, MetaProvider

A meta node TODO add documentation Same name siblings are supported via elements with the same Name but different indices.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

equals
Link copied to clipboard
common
abstract operator override fun equals(other: Any?): Boolean
getMeta
Link copied to clipboard
common
open override fun getMeta(name: Name): Meta?
getValue
Link copied to clipboard
common
open override fun getValue(name: Name): Value?
hashCode
Link copied to clipboard
common
abstract override fun hashCode(): Int
toMeta
Link copied to clipboard
common
open override fun toMeta(): Meta
toString
Link copied to clipboard
common
abstract override fun toString(): String

Properties

items
Link copied to clipboard
common
abstract val items: Map<NameToken, Meta>
value
Link copied to clipboard
common
abstract val value: Value?

Inheritors

TypedMeta
Link copied to clipboard
MutableMeta
Link copied to clipboard
ObservableMeta
Link copied to clipboard

Extensions

asMutableMeta
Link copied to clipboard
common
fun Meta.asMutableMeta(): MutableMeta
boolean
Link copied to clipboard
common
val Meta?.boolean: Boolean?
copy
Link copied to clipboard
common
inline fun Meta.copy(block: MutableMeta.() -> Unit = {}): Meta

Create a copy of this Meta, optionally applying the given block. The listeners of the original Config are not retained.

double
Link copied to clipboard
common
val Meta?.double: Double?
enum
Link copied to clipboard
common
inline fun <E : Enum<E>> Meta?.enum(): E?
float
Link copied to clipboard
common
val Meta?.float: Float?
get
Link copied to clipboard
common
operator fun Meta.get(token: NameToken): Meta?
operator fun Meta.get(name: Name): Meta?

Perform recursive item search using given name. Each NameToken is treated as a name in Meta.items of a parent node.

operator fun Meta.get(key: String): Meta?

Parse Name from key using full name notation and pass it to Meta.get

getIndexed
Link copied to clipboard
common
fun Meta.getIndexed(name: Name): Map<String?, Meta>

Get all items matching given name. The index of the last element, if present is used as a Regex, against which indexes of elements are matched.

int
Link copied to clipboard
common
val Meta?.int: Int?
isEmpty
Link copied to clipboard
common
fun Meta.isEmpty(): Boolean
isLeaf
Link copied to clipboard
common
val Meta.isLeaf: Boolean

True if this Meta does not have children

iterator
Link copied to clipboard
common
operator fun Meta.iterator(): Iterator<Pair<Name, Meta>>
long
Link copied to clipboard
common
val Meta?.long: Long?
nodeSequence
Link copied to clipboard
common
fun Meta.nodeSequence(): Sequence<Pair<Name, Meta>>

Get a sequence of all Name-TypedMeta pairs in a top-down traversal

number
Link copied to clipboard
common
val Meta?.number: Number?
seal
Link copied to clipboard
common
fun Meta.seal(): SealedMeta

Generate sealed node from this. If it is already sealed return it as is.

short
Link copied to clipboard
common
val Meta?.short: Short?
string
Link copied to clipboard
common
val Meta?.string: String?
stringList
Link copied to clipboard
common
val Meta.stringList: List<String>?
toDynamic
Link copied to clipboard
js
fun Meta.toDynamic(): dynamic

Represent or copy this Meta to dynamic object to be passed to JS libraries

toJson
Link copied to clipboard
common
fun Meta.toJson(descriptor: MetaDescriptor? = null): JsonObject
toMap
Link copied to clipboard
common
fun Meta.toMap(descriptor: MetaDescriptor? = null): Map<String, Any?>

Convert meta to map of maps

toMutableMeta
Link copied to clipboard
common
fun Meta.toMutableMeta(): ObservableMutableMeta

Create a mutable copy of this meta. The copy is created even if the Meta is already mutable

valueSequence
Link copied to clipboard
common
fun Meta.valueSequence(): Sequence<Pair<Name, Value>>

Get a sequence of Name-Value pairs using top-down traversal of the tree

withDefault
Link copied to clipboard
common
fun Meta.withDefault(default: Meta?): Meta

Create a provider that uses given provider for default values if those are not found in this provider