Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

alter generalization statement

Alters an existing generalization.

The root class of the generalization is put in context.

Syntax

alter generalization [root ClassName] as
    [on Discriminant]
    [without WithoutSpecializedClass (, WithoutSpecializedClass)*]]
    [with WithSpecializedClass [dominant] (, WithSpecializedClass [dominant])*]
    [comments Comments]
    [tagged
      [without WithoutTagList]
      [with WithTagList]
    ]

Element Type Optionality Notes
ClassName Class name Optional. If no class name is specified, the class in context is used. If no class is in context, an error occurs. Specifies the root (i.e. generalized) class of the generalization to be altered.
Discriminant Expression<Identifier> or Expression<Dictionary<Identifier>> Optional. If no discriminant is specified, the current one is maintained. Specifies the new discriminant of the generalization, either as an identifier or in multilingual dictionary format.
WithoutSpecializedClass Class name Optional. If no classes are specified, no specialized classes are removed. Specifies the specialized classes to remove from the generalization.
WithSpecializedClass Class name Optional. If no classes are specified, no classes are added as specialized. Specifies the classes to add to the generalization as specialized.
dominant Optional. If omitted, the generalization is not made dominant for the associated class. Specifies whether a specialized class will use the generalization as the dominant one.
Comments Expression<Text> or Expression<Dictionary<Text>> Optional. If no commments are specified, the current ones are maintained. Specifies the new commments for the generalization.
WithoutTagList Element name list Optional. If no tags are specified, no tags are removed. Specifies the tags to remove from the generalization.
WithTagList Element name list Optional. If no tags are specified, no tags are added. Specifies the tags to add to the generalization.

Returns

The generalization just altered.

Examples

Intent Code
Alter a generalization to change its discriminant alter generalization root Person as on Species;
Alter the context generalization to add two specialized classes alter generalization as with Cat, Dog;

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