ControlData

@Serializable
data class ControlData(val controlType: ControlType, val value: Double, val keyName: String, val lowerBound: Double, val upperBound: Double, val elementName: String, val elementId: Int, val elementType: String, val propertyName: String, val comment: String, val modelName: String, val parentElementName: String? = null, val parentElementId: Int? = null, val parentElementType: String? = null, val elementPath: List<String> = emptyList())(source)

A data class for transferring the data associated with a control.

Parameters

controlType

the type of control (DOUBLE, INTEGER, LONG, FLOAT, SHORT, BYTE, BOOLEAN)

value

the value of the control

keyName

the name for the control. This is the string "

${elementName}.$

{propertyName}"

lowerBound

the lower bound permitted for the control

upperBound

the upper bound permitted for the control

elementName

The name of the model element that has the control.

elementType

The simple class name associated with the model element that has the control.

elementId

The id of the model element associated with the control

propertyName

The name of the property annotated by the control

comment

The comment string that was supplied in the control annotation.

modelName

The name of the model that holds the element associated with the control.

parentElementName

Name of the parent of the model element that holds the control, or null when that element is a direct child of the Model. Old snapshots that pre-date this field deserialize with null.

parentElementId

Identifier of the parent model element, or null.

parentElementType

Simple class name of the parent model element, or null.

elementPath

Ancestor names from the model root down to (but not including) the model element holding the control, also excluding the Model itself. Empty when the holding element is a direct child of the Model. Old snapshots deserialize with an empty list.

Constructors

Link copied to clipboard
constructor(controlType: ControlType, value: Double, keyName: String, lowerBound: Double, upperBound: Double, elementName: String, elementId: Int, elementType: String, propertyName: String, comment: String, modelName: String, parentElementName: String? = null, parentElementId: Int? = null, parentElementType: String? = null, elementPath: List<String> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard