Scheme

open class Scheme : Described, MetaRepr, MutableMetaProvider, Configurable

A base for delegate-based or descriptor-based scheme. Scheme has an empty constructor to simplify usage from Specification. Default item provider and MetaDescriptor are optional

Constructors

Scheme
Link copied to clipboard
common
fun Scheme()

Functions

getMeta
Link copied to clipboard
common
open override fun getMeta(name: Name): MutableMeta?
getValue
Link copied to clipboard
common
open override fun getValue(name: Name): Value?
setMeta
Link copied to clipboard
common
open override fun setMeta(name: Name, node: Meta?)
setValue
Link copied to clipboard
common
open override fun setValue(name: Name, value: Value?)
toMeta
Link copied to clipboard
common
open override fun toMeta(): Laminate
validate
Link copied to clipboard
common
open fun validate(name: Name, meta: Meta?): Boolean

Check if property with given name could be assigned to meta

Properties

descriptor
Link copied to clipboard
common
override var descriptor: MetaDescriptor? = null
meta
Link copied to clipboard
common
override val meta: ObservableMutableMeta

Backing config

Extensions

spec
Link copied to clipboard
common
fun <T : Scheme> Scheme.spec(spec: Specification<T>, key: Name? = null): ReadWriteProperty<Any?, T>