KbTransformScope
The receiver scope inside a KbTransform lambda. Exposes coercion helpers and the active KpaElementFactory so transforms can read inputs as Kotlin types and produce typed KpaElement results without hard-coding an adapter family.
This interface is sealed: consumer code receives a KbTransformScope as the receiver inside a transform body and cannot implement it directly. Sealing lets new members be added in future versions without breaking binary compatibility for consumers.
Properties
Functions
Extracts the wrapped kotlin.time.Instant from value, or null when value is not a KbTransformable.DateTime.
Coerces element to a Double when it wraps a numeric primitive or a numeric-string primitive; null otherwise.
Coerces value to its rendered string form using the same rule as {{ identifier }}.
Wraps value as a boolean KbTransformable.
Wraps value as a KbTransformable.DateTime.
Null-safely wraps value as a KbTransformable, returning null when value is null.
Wraps items as a list KbTransformable using the active KbTransformScope.factory.
Wraps value as a numeric KbTransformable.
Reports a soft failure for the value currently being transformed and returns null to propagate the missing value.
Wraps value as a string KbTransformable.