Parameter

data class Parameter<T : Any>(val type: KClass<T>, val name: String, val description: String? = null, val regex: Regex? = null, val optional: Boolean = true, val multiple: Boolean = false, val tag: String? = null, val values: List<T> = emptyList()) : Property<T>

Constructors

Link copied to clipboard
constructor(type: KClass<T>, name: String, description: String? = null, regex: Regex? = null, tag: String? = null, value: T)
constructor(type: KClass<T>, name: String, description: String? = null, regex: Regex? = null, tag: String? = null, values: List<T>)
constructor(type: KClass<T>, name: String, description: String? = null, regex: Regex? = null, optional: Boolean = true, multiple: Boolean = false, tag: String? = null, values: List<T> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val description: String? = null
Link copied to clipboard
open override val multiple: Boolean = false
Link copied to clipboard
val name: String
Link copied to clipboard
open override val names: Set<String>
Link copied to clipboard
open override val optional: Boolean = true
Link copied to clipboard
open override val regex: Regex? = null
Link copied to clipboard
open override val tag: String? = null

TODO To group properties (for listing or alternatives). I.e.: '|alternate|' for grouping options that are exclusive or 'Common Options' to group in help

Link copied to clipboard
open override val type: KClass<T>
Link copied to clipboard
open override val values: List<T>

Functions

Link copied to clipboard
open override fun addValue(value: String): Parameter<T>
Link copied to clipboard
open override fun addValues(value: Property<*>): Property<T>
Link copied to clipboard
open fun check(component: String, namePattern: Regex)
Link copied to clipboard
open fun typeText(): String