TaskParameterValue

sealed class TaskParameterValue

The data types for the task parameters.

Inheritors

Types

Link copied to clipboard
data class ChunkInt(val value: String) : TaskParameterValue

A range (for example 1-10) or selection of specific (for example 1,3,7,8,10) integers represented as a string.

Link copied to clipboard
data class Float(val value: String) : TaskParameterValue

A double precision IEEE-754 floating point number represented as a string.

Link copied to clipboard
data class Int(val value: String) : TaskParameterValue

A signed integer represented as a string.

Link copied to clipboard
data class Path(val value: String) : TaskParameterValue

A file system path represented as a string.

Link copied to clipboard
Link copied to clipboard
data class String(val value: String) : TaskParameterValue

A UTF-8 string.

Functions

Link copied to clipboard

Casts this TaskParameterValue as a ChunkInt and retrieves its kotlin.String value. Throws an exception if the TaskParameterValue is not a ChunkInt.

Link copied to clipboard

Casts this TaskParameterValue as a ChunkInt and retrieves its kotlin.String value. Returns null if the TaskParameterValue is not a ChunkInt.

Link copied to clipboard

Casts this TaskParameterValue as a Float and retrieves its kotlin.String value. Throws an exception if the TaskParameterValue is not a Float.

Link copied to clipboard

Casts this TaskParameterValue as a Float and retrieves its kotlin.String value. Returns null if the TaskParameterValue is not a Float.

Link copied to clipboard
fun asInt(): String

Casts this TaskParameterValue as a Int and retrieves its kotlin.String value. Throws an exception if the TaskParameterValue is not a Int.

Link copied to clipboard

Casts this TaskParameterValue as a Int and retrieves its kotlin.String value. Returns null if the TaskParameterValue is not a Int.

Link copied to clipboard
fun asPath(): String

Casts this TaskParameterValue as a Path and retrieves its kotlin.String value. Throws an exception if the TaskParameterValue is not a Path.

Link copied to clipboard

Casts this TaskParameterValue as a Path and retrieves its kotlin.String value. Returns null if the TaskParameterValue is not a Path.

Link copied to clipboard

Casts this TaskParameterValue as a String and retrieves its kotlin.String value. Throws an exception if the TaskParameterValue is not a String.

Link copied to clipboard

Casts this TaskParameterValue as a String and retrieves its kotlin.String value. Returns null if the TaskParameterValue is not a String.