Validator Dsl
class ValidatorDsl(val state: State, val validators: MutableList<Validator<*>> = mutableListOf(), val condition: () -> Boolean = TRUE)(source)
A domain-specific language (DSL) for creating Validators on a State object.
Parameters
validators
the list into which to store Validators that are created in this DSL
condition
the pre-condition to apply to all Validators created by this DSL. If condition returns false
during validation, then the output of the Validators is changed to null
. The condition applies only to Validators constructed at this level of nesting of the DSL, and not, for example, to those already in validators at construction time
See also
to construct this DSL