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.

Image 'documentation/Documentation-String-Projections-screenshot1.png' seems to be missing
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.

Image 'documentation/Documentation-String-Projections-screenshot2.png' seems to be missing
Figure 1. A multi-line string property
© 2018 - 2025 Freon contributors - Freon is open source under the MIT License.