ValidationBuilder

This class provides an API for set up rules for validation person name.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Creates a rule.

Link copied to clipboard

Configure maximum length which will support.

Link copied to clipboard

Configure minimum length which will support.

Link copied to clipboard
fun setRegex(regex: String, errorMsg: String = RegexValidator.DEFAULT_ERROR_MSG): PersonNameRule.ValidationBuilder

Configure regex for validation input.