Condition

A class modelling the possible conditions used by both transformations and load rules to determine whether or not to execute.

If the variable to access resides in a sub-object, then use the path variable to extract the value from the appropriate location.

Although Condition instances can be made manually, there are many helper functions to make creations more straightforward and easy to read.

With the exception of isDefined/isNotDefined which explicitly check for the existence of values at given keys, Operators are typically expected to

Parameters

variable

The actual key in the DataObject to get the value from

operator

The behavior of this Condition

filter

The target value, in String format.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard

A Condition.Operator is a specific type of predicate, that applies some functionality to a given DataItem, and determines if it matches a given target filter value.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun asDataItem(): DataItem

Should return an instance of a DataItem that represents all required properties of the implementing class, such that it could be:

Link copied to clipboard
open override fun matches(input: DataObject): Boolean

Returns whether or not the this Matchable matches the given input.