com.neva.gradle.fork.config.properties / PropertyValidator

PropertyValidator

class PropertyValidator

Constructors

<init>

PropertyValidator(property: Property)

Properties

errors

val errors: MutableList<String>

property

val property: Property

Functions

alpha

fun alpha(): Unit

alphanumeric

fun alphanumeric(): Unit

capitalized

fun capitalized(): Unit

checkPath

fun checkPath(value: String = property.value): Boolean

checkRegex

fun checkRegex(regex: String, value: String = property.value): Boolean

checkTrimmingSpaces

fun checkTrimmingSpaces(value: String = property.value): Boolean

checkUrl

fun checkUrl(value: String = property.value): Boolean

contains

fun contains(otherName: String, ignoreCase: Boolean = true): Unit

endsWith

fun endsWith(otherName: String, ignoreCase: Boolean = true): Unit

error

fun error(message: String): Unit

hasErrors

fun hasErrors(): Boolean

javaPackage

fun javaPackage(): Unit

lowercased

fun lowercased(): Unit

notBlank

fun notBlank(): Unit

notContains

fun notContains(otherName: String, ignoreCase: Boolean = true): Unit

notEmpty

fun notEmpty(): Unit

notEndsWith

fun notEndsWith(otherName: String, ignoreCase: Boolean = true): Unit

notStartsWith

fun notStartsWith(otherName: String, ignoreCase: Boolean = true): Unit

numeric

fun numeric(): Unit

path

fun path(): Unit

regex

fun regex(regex: String): Unit
fun regex(valueType: String, regex: String): Unit

startsWith

fun startsWith(otherName: String, ignoreCase: Boolean = true): Unit

uppercased

fun uppercased(): Unit

uri

fun uri(): Unit

url

fun url(): Unit

Companion Object Properties

URL_VALIDATOR

val URL_VALIDATOR: UrlValidator