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

Property

class Property

Represents prompted property bound with its definition. Can interact with other properties using common context.

Constructors

<init>

Property(definition: PropertyDefinition, prompt: PropertyPrompt, context: PropertyContext)

Represents prompted property bound with its definition. Can interact with other properties using common context.

Properties

definition

val definition: PropertyDefinition

description

val description: String

enabled

var enabled: Boolean

invalid

val invalid: Boolean

label

val label: String

name

val name: String

optionalWithValue

val optionalWithValue: Boolean

options

val options: Any?

required

var required: Boolean

type

val type: PropertyType

value

var value: String

Functions

control

fun control(): Unit

other

fun other(name: String): Property

others

fun others(pattern: String): List<Property>

toggle

fun toggle(): Unit
fun toggle(vararg names: String): Unit
fun toggle(names: List<String>): Unit
fun toggle(flag: Boolean, vararg names: String): Unit
fun toggle(flag: Boolean, patterns: List<String>): Unit

toString

fun toString(): String

validate

fun validate(): PropertyValidator