Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

alter property statement

Alters an existing property and puts it in context.

The class owning the property is also put in context.

Syntax

alter property [PropertyName] as
    [name Name]
    [: Cardinality [^]]
    [( AspectList )]
    [definition Definition]
    [comments Comments]
    [tagged
      [without WithoutTagList]
      [with WithTagList]
    ]

Element Type Optionality Notes
PropertyName Property name Optional. If no property name is specified, the property in context is used. If no property is in context, an error occurs. Specifies the existing property to be altered.
Name Expression<Identifier> or Expression<Dictionary<Identifier>> Optional. If no name is specified, the current one is maintained. Specifies the new name of the property, either as an identifier or in multilingual dictionary format.
Cardinality Cardinality Optional. If no cardinality is specified, the current one is maintained. Specifies the new cardinality of the property.
^ Optional. If omitted, the current one is maintained. Specifies whether the property must be sorted.
AspectList Marker list Optional. Specifies the aspects used by the property. Accepted markers are S for subjective, K for constant, and T for temporal, optionally prefixed by ! to negate them.
Definition Expression<Text> or Expression<Dictionary<Text>> Optional. If no definition is specified, the current one is maintained. Specifies the new definition of the property.
Comments Expression<Text> or Expression<Dictionary<Text>> Optional. If no commments are specified, the current ones are maintained. Specifies the new commments for the property.
WithoutTagList Element name list Optional. If no tags are specified, no tags are removed. Specifies the tags to remove from the property.
WithTagList Element name list Optional. If no tags are specified, no tags are added. Specifies the tags to add to the property.

Returns

The property just altered.

Examples

Intent Code
Alter a property to change its name alter property Building.Location as name Address;
Alter a property to make it temporal and not subjective alter property Building.Address as (!S, T);
Alter the context property to add a tag alter property as tagged with ToRevise;

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