Pandoro Inputs Validator

object PandoroInputsValidator : InputsValidator

Properties

Link copied to clipboard

GROUP_DESCRIPTION_MAX_LENGTH the max description of the name for a group

Link copied to clipboard
const val GROUP_NAME_MAX_LENGTH: Int = 25

GROUP_NAME_MAX_LENGTH the max length of the name for a group

Link copied to clipboard
const val NOTE_CONTENT_MAX_LENGTH: Int = 65535

NOTE_CONTENT_MAX_LENGTH the max length of the content for a note

Link copied to clipboard

PROJECT_DESCRIPTION_MAX_LENGTH the max length of the description for a project

Link copied to clipboard

PROJECT_NAME_MAX_LENGTH the max length of the name for a project

Link copied to clipboard

TARGET_VERSION_MAX_LENGTH the max length of the target version for an update

Link copied to clipboard
const val URL_REGEX: String

URL_REGEX regular expression to validate the urls value

Link copied to clipboard

urlValidator helper to validate the urls values

Functions

Link copied to clipboard
fun areNotesValid(notes: List<String?>?): Boolean

Function to check if all the notes of the list are correct

Link copied to clipboard

Function to check the validity of a content for a note

Link copied to clipboard
fun isGroupDescriptionValid(groupDescription: String?): Boolean

Function to check the validity of a group description

Link copied to clipboard
fun isGroupNameValid(groupName: String?): Boolean

Function to check the validity of a group name

Link copied to clipboard

Function to check the validity of a project description

Link copied to clipboard
fun isValidProjectName(projectName: String?): Boolean

Function to check the validity of a project name

Link copied to clipboard
fun isValidRepository(repository: String?): Boolean

Function to check the validity of a repository url

Link copied to clipboard
fun isValidVersion(version: String?): Boolean

Function to check the validity of a version