TransformationRule

interface TransformationRule

A transformation for meta item or a group of items

Functions

matches
Link copied to clipboard
common
abstract fun matches(name: Name, item: Meta?): Boolean

Check if this transformation should be applied to a node with given name and value

selectItems
Link copied to clipboard
common
open fun selectItems(meta: Meta): Sequence<Name>

Select all items to be transformed. Item could be a value as well as node

transformItem
Link copied to clipboard
common
abstract fun transformItem(name: Name, item: Meta?, target: MutableMeta)

Apply transformation for a single item (Node or Value) to the target

Inheritors

KeepTransformationRule
Link copied to clipboard
SingleItemTransformationRule
Link copied to clipboard
RegexItemTransformationRule
Link copied to clipboard