NovaInputValidator

open class NovaInputValidator : InputValidator

The NovaInputValidator class is useful to validate the inputs

Author

N7ghtm4r3 - Tecknobit

Constructors

Link copied to clipboard
private constructor()
Constructor to init the NovaInputValidator class No-any params required

Properties

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
PROJECT_NAME_MAX_LENGTH the max valid length for the name of a project
Link copied to clipboard
REASONS_MAX_LENGTH the max valid length for the reasons
Link copied to clipboard
RELEASE_NOTES_MAX_LENGTH the max valid length for the release notes
Link copied to clipboard
RELEASE_VERSION_MAX_LENGTH the max valid length for the release version
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
TAG_COMMENT_MAX_LENGTH the max valid length for the tag comment
Link copied to clipboard
protected val urlValidator: UrlValidator
Link copied to clipboard
val WRONG_ASSETS_MESSAGE: String = "wrong_release_assets_key"
WRONG_ASSETS_MESSAGE error message used when the release assets uploaded are 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_MAILING_LIST_MESSAGE: String = "wrong_mailing_list_key"
WRONG_MAILING_LIST_MESSAGE error message used when the mailing list inserted is not valid
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_REASONS_MESSAGE: String = "wrong_rejection_reasons_key"
WRONG_REASONS_MESSAGE error message used when the rejected reasons inserted are not valid
Link copied to clipboard
val WRONG_RELEASE_NOTES_MESSAGE: String = "wrong_release_notes_key"
WRONG_RELEASE_NOTES_MESSAGE error message used when the release notes inserted are not valid
Link copied to clipboard
val WRONG_RELEASE_VERSION_MESSAGE: String = "wrong_release_version_key"
WRONG_RELEASE_VERSION_MESSAGE error message used when the release version inserted is not valid
Link copied to clipboard
val WRONG_SURNAME_MESSAGE: String = "wrong_surname_key"
Link copied to clipboard
val WRONG_TAG_COMMENT_MESSAGE: String = "wrong_comment_tag_key"
WRONG_TAG_COMMENT_MESSAGE error message used when the tag comment inserted is not valid

Functions

Link copied to clipboard
Method to validate a rejected reasons
Link copied to clipboard
open fun areReleaseNotesValid(releaseNotes: String): Boolean
Method to validate a release notes
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 isMailingListValid(mailingList: List<JSONObject>): Boolean
Method to validate a mailing list
Link copied to clipboard
open fun isNameValid(name: String): Boolean
Link copied to clipboard
open fun isPasswordValid(password: String): Boolean
Link copied to clipboard
open fun isProjectNameValid(projectName: String): Boolean
Method to validate a project name
Link copied to clipboard
open fun isReleaseVersionValid(releaseVersion: String): Boolean
Method to validate a release version
Link copied to clipboard
open fun isServerSecretValid(serverSecret: String): Boolean
Link copied to clipboard
open fun isSurnameValid(surname: String): Boolean
Link copied to clipboard
open fun isTagCommentValid(comment: String): Boolean
Method to validate a tag comment