ParameterValue

sealed class ParameterValue

An object that includes the data type of a security control parameter and its current value.

Inheritors

Types

Link copied to clipboard
data class Boolean(val value: Boolean) : ParameterValue

A control parameter that is a boolean.

Link copied to clipboard
data class Double(val value: Double) : ParameterValue

A control parameter that is a double.

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

A control parameter that is an enum.

Link copied to clipboard
data class EnumList(val value: List<String>) : ParameterValue

A control parameter that is a list of enums.

Link copied to clipboard
data class Integer(val value: Int) : ParameterValue

A control parameter that is an integer.

Link copied to clipboard
data class IntegerList(val value: List<Int>) : ParameterValue

A control parameter that is a list of integers.

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

A control parameter that is a string.

Link copied to clipboard
data class StringList(val value: List<String>) : ParameterValue

A control parameter that is a list of strings.

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
fun asEnum(): String

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

Link copied to clipboard

Casts this ParameterValue as a EnumList and retrieves its List value. Throws an exception if the ParameterValue is not a EnumList.

Link copied to clipboard

Casts this ParameterValue as a EnumList and retrieves its List value. Returns null if the ParameterValue is not a EnumList.

Link copied to clipboard

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

Link copied to clipboard
fun asInteger(): Int

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

Link copied to clipboard

Casts this ParameterValue as a IntegerList and retrieves its List value. Throws an exception if the ParameterValue is not a IntegerList.

Link copied to clipboard

Casts this ParameterValue as a IntegerList and retrieves its List value. Returns null if the ParameterValue is not a IntegerList.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Casts this ParameterValue as a StringList and retrieves its List value. Throws an exception if the ParameterValue is not a StringList.

Link copied to clipboard

Casts this ParameterValue as a StringList and retrieves its List value. Returns null if the ParameterValue is not a StringList.

Link copied to clipboard

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