Add a data class

Add a data class

Position the cursor outside any class definition and right click the mouse within the editor window. From the context menu select [Content Assist] (or Ctrl+Space).

Select [DataClass – data class skeleton] and name it [DemoData]. Remove the operations and add the following Attributes:

DataClass DemoData {
Attribute int32Val: int32 = "4711"
Attribute int8Array [ 10 ]: int8 = "{1,2,3,4,5,6,7,8,9,10}"
Attribute float64Val: float64 = "0.0"
Attribute stringVal: string = "\"empty\""
}

Save the model and visit the outline view. Note that the outline view contains all data elements as defined in the model.