Ametista Validator

open class AmetistaValidator : InputValidator

The InputValidator class is useful to validate the inputs

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
APP_DESCRIPTION_MAX_LENGTH the max valid length for the application description
Link copied to clipboard
APP_NAME_MAX_LENGTH the max valid length for the application name
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected val emailValidator: EmailValidator
Link copied to clipboard
val HOST_ADDRESS_KEY: String = "host_address"
Link copied to clipboard
val INVALID_ADMIN_CODE: String = "invalid_admin_code_key"
INVALID_ADMIN_CODE error message used when the admin code inserted is not valid
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected val urlValidator: UrlValidator
Link copied to clipboard
val WRONG_APP_DESCRIPTION_MESSAGE: String = "wrong_app_description_key"
WRONG_APP_DESCRIPTION_MESSAGE error message used when the application description inserted is not valid
Link copied to clipboard
val WRONG_APP_NAME_MESSAGE: String = "wrong_app_name_key"
WRONG_APP_NAME_MESSAGE error message used when the application name inserted is not valid
Link copied to clipboard
val WRONG_CURRENCY_MESSAGE: String = "wrong_currency_key"
Link copied to clipboard
val WRONG_EMAIL_MESSAGE: String = "wrong_email_key"
Link copied to clipboard
val WRONG_LANGUAGE_MESSAGE: String = "wrong_language_key"
Link copied to clipboard
val WRONG_NAME_MESSAGE: String = "wrong_name_key"
Link copied to clipboard
val WRONG_PASSWORD_MESSAGE: String = "wrong_password_key"
Link copied to clipboard
val WRONG_SURNAME_MESSAGE: String = "wrong_surname_key"

Functions

Link copied to clipboard
open fun isAppDescriptionValid(appDescription: String): Boolean
Method to validate an application description
Link copied to clipboard
open fun isAppNameValid(appName: String): Boolean
Method to validate an application name
Link copied to clipboard
open fun isEmailValid(email: String): Boolean
Link copied to clipboard
open fun isHostValid(host: String): Boolean
Link copied to clipboard
protected open fun isInputValid(field: String): Boolean
Link copied to clipboard
open fun isLanguageValid(language: String): Boolean
Link copied to clipboard
open fun isNameValid(name: String): Boolean
Link copied to clipboard
open fun isNewPasswordValid(password: String): Boolean
Method to validate a new password
Link copied to clipboard
open fun isPasswordValid(password: String): Boolean
Link copied to clipboard
open fun isServerSecretValid(serverSecret: String): Boolean
Link copied to clipboard
open fun isSurnameValid(surname: String): Boolean