MetaTransformation

value class MetaTransformation(transformations: Collection<TransformationRule>)

A set of TransformationRule to either transform static meta or create dynamically updated MutableMeta

Constructors

MetaTransformation
Link copied to clipboard
common
fun MetaTransformation(transformations: Collection<TransformationRule>)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

apply
Link copied to clipboard
common
fun apply(source: Meta): Meta

Transform a meta, replacing all elements found in rules with transformed entries

bind
Link copied to clipboard
common
fun bind(source: ObservableMeta, target: MutableMeta)

Listens for changes in the source node and translates them into second node if transformation set contains a corresponding rule.

generate
Link copied to clipboard
common
fun generate(source: Meta): Meta

Produce new meta using only those items that match transformation rules

fun generate(source: ObservableMeta): ObservableMeta

Generate an observable configuration that contains only elements defined by transformation rules and changes with the source