On this page ...
String Projections
String can be displayed as a single-line or multi-line text.
Single Line
The single line display is the default, therefore there is no need to add any information other than adding the string-typed property to the projection.
As an example, we used the productName property of the concept InsuranceProduct.
// Insurance/src/defs/language-main.ast#L53-L55
concept InsuranceProduct {
name: identifier; // internal name
productName: string; // name by which this product is known to the public The property is displayed like this.
// Insurance/src/defs/editor-main-default.edit#L39-L39
Insurance Product ${name} ( public name: ${productName} ) USES ${basedOn horizontal separator[, ]} This produces the following result.
Figure 1. A single line string property
Multi-Line
To indicate the use of a multi-line display add the keyword multiline to the projection.
// Insurance/src/defs/editor-main-comments.edit#L37-L37
Insurance Product ${name} ( public name: ${productName} ) USES ${basedOn horizontal separator[, ]} This results in the following.
Figure 1. A multi-line string property