EasyFormsValidationType

abstract class EasyFormsValidationType(minLength: Int, maxLength: Int, regex: String?)

Constructors

EasyFormsValidationType
Link copied to clipboard
fun EasyFormsValidationType(minLength: Int = Int.MIN_VALUE, maxLength: Int = Int.MAX_VALUE, regex: String? = null)

Functions

isValid
Link copied to clipboard
open fun isValid(value: String): Boolean
Opened so it can be overridden to suits your validation needs.

Properties

maxLength
Link copied to clipboard
open val maxLength: Int
defines a text should have a maximum set of chars.
minLength
Link copied to clipboard
open val minLength: Int
defines a text should have a minimum set of chars.
regex
Link copied to clipboard
open val regex: String? = null
the regex to be used to validate the text if any.

Inheritors

EmailValidationType
Link copied to clipboard
PasswordValidationType
Link copied to clipboard
PhoneNumberValidationType
Link copied to clipboard
UrlValidationType
Link copied to clipboard
NameValidationType
Link copied to clipboard
CardValidationType
Link copied to clipboard

Sources

androidJvm source
Link copied to clipboard