StringControlData

@Serializable
data class StringControlData(val keyName: String, val value: String, val allowedValues: List<String>, 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-transfer object carrying the state of a single StringControlIfc.

Parallel to ControlData for numeric controls, but holds a String value and an optional constraint list instead of a numeric range.

Parameters

keyName

unique access key: "${elementName}.${propertyName}"

value

current string value of the control

allowedValues

the set of permitted values declared on the annotation; an empty list means unconstrained (any string is accepted)

elementName

name of the model element that owns this control

elementId

identifier of the model element

elementType

simple class name of the model element

propertyName

name of the annotated property

comment

optional comment supplied in the annotation

modelName

name of the model that contains the element

Constructors

Link copied to clipboard
constructor(keyName: String, value: String, allowedValues: List<String>, 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