CompositeValidator

A validator that is composed of other validators.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addRule(validator: VGSValidator)

Adds a validation rule to the composite validator.

Link copied to clipboard

Removes all validation rules from the composite validator.

Link copied to clipboard
fun removeRule(validator: VGSValidator)

Removes a validation rule from the composite validator.

Link copied to clipboard
fun validate(content: String): List<String>

Validates the given content against all the validation rules.