Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

create property statement

Creates a new property and puts it in context.

The class owning the new property is also put in context.

Syntax

create property Name:
    Cardinality [^]
    [( AspectList )]
    [of Owner]

Element Type Optionality Notes
Name Expression<Identifier> or Expression<Dictionary<Identifier>> Mandatory. Specifies the name of the new property, either as an identifier or in multilingual dictionary format.
Cardinality Cardinality Mandatory. Specifies the cardinality of the new property.
^ Optional. If omitted, the new property is not made sorted. Specifies whether the new property must be sorted.
AspectList Marker list Optional. Specifies the aspects used by the new property. Accepted markers are S for subjective, K for constant, and T for temporal.
Owner Class name Optional. If no owner is specified, the class in context is used. If no class is in context, an error occurs. Specifies the class that will own the new property.

Returns

The property just created.

Examples

Intent Code
Create a new property with a simple name in the context class create property Location: 1;
Create a new property with a multilingual name in the context class create property [en_GB: Location, es_ES: LocalizaciĆ³n]: 1;
Create a new property in an explicit class create property Location: 1 of Building;
Create a new constant property in an explicit class create property Location: 1 (K) of Building;

See Also


Contents distributed under a Creative Commons Attribution 4.0 International License · About · Terms of Use · Contact Us · last updated on 08 October 2020