GenericValidation

data class GenericValidation(errorMessage: String, regex: Regex) : EnterpriseTextInputField.ValidationType

Validates on provided regex parameter.

Parameters

errorMessage

Type-specific error message String.

regex

Regex to validate on.

Constructors

GenericValidation
Link copied to clipboard
fun GenericValidation(errorMessage: String, regex: Regex)
Type-specific error message String.

Properties

errorMessage
Link copied to clipboard
open override val errorMessage: String
Type-specific error message String.
regex
Link copied to clipboard
val regex: Regex
Regex to validate on.

Functions

isValid
Link copied to clipboard
open override fun isValid(text: String): Boolean