TransformationSettingsBuilder

abstract class TransformationSettingsBuilder<T : TransformationSettingsBuilder<T>>(val transformationId: String, val transformerId: String)

A builder class for configuring the settings available for Transformations. This base class allows the configuration of settings that are common to all Transformations.

Subclasses can add additional methods to provide custom settings that are required by those Transformations. They should do this by overriding onBuildConfiguration and returning those custom settings. These will be surfaced on the TransformationSettings.configuration object.

Constructors

Link copied to clipboard
constructor(transformationId: String, transformerId: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun setCondition(condition: Rule<Condition>): T

Sets the optional conditions that must be matched in order for the transformationId to be executed.

Link copied to clipboard
fun setOrder(order: Int): T

Sets when this transformationId should be executed. Transformations are executed in ascending order, that is, a Transformation with order 1 will be executed before a Transformation with order 2.

Link copied to clipboard

Sets the TransformationScope that the transformationId is applicable for.