ValidationType

sealed class ValidationType

Sealed class defining all supported types of error validation. For use with setValidation.

Types

DateValidation
Link copied to clipboard
data class DateValidation(errorMessage: String, dateFormatString: String, dateFormat: DateFormat, constraints: CalendarConstraints) : EnterpriseTextInputField.ValidationType
Validates on dateFormat and constraints.
EmailValidation
Link copied to clipboard
data class EmailValidation(errorMessage: String) : EnterpriseTextInputField.ValidationType
Validates on simple email regex android.util.Patterns.EMAIL_ADDRESS.
GenericValidation
Link copied to clipboard
data class GenericValidation(errorMessage: String, regex: Regex) : EnterpriseTextInputField.ValidationType
Validates on provided regex parameter.
LengthValidation
Link copied to clipboard
data class LengthValidation(errorMessage: String, minLength: Int?, maxLength: Int?) : EnterpriseTextInputField.ValidationType
Validates on minLength and maxLength parameters.
PhoneValidation
Link copied to clipboard
data class PhoneValidation(errorMessage: String) : EnterpriseTextInputField.ValidationType
RequiredValidation
Link copied to clipboard
data class RequiredValidation(errorMessage: String) : EnterpriseTextInputField.ValidationType
Validates on String.isNotBlank.
SocialSecurityValidation
Link copied to clipboard
data class SocialSecurityValidation(errorMessage: String) : EnterpriseTextInputField.ValidationType
Validates on InputUtil.SSN_MAX_LENGTH.
UrlValidation
Link copied to clipboard
data class UrlValidation(errorMessage: String) : EnterpriseTextInputField.ValidationType
Validates on simple URL regex android.util.Patterns.WEB_URL.

Properties

errorMessage
Link copied to clipboard
abstract val errorMessage: String

Functions

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

Inheritors

EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard
EnterpriseTextInputField.ValidationType
Link copied to clipboard