Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

create generalization statement

Creates a new generalization.

The generalized class is put in context.

Syntax

create generalization [root GeneralizedClass]
    on Discriminant
    into SpecializedClass [dominant] (, SpecializedClass [dominant])*

Element Type Optionality Notes
GeneralizedClass Class name Optional. If no generalized class is specified, the class in context is used. If no class is in context, an error occurs. Specifies the generalized class on which the new generalization is rooted.
Discriminant Expression<Identifier> or Expression<Dictionary<Identifier>> Mandatory. Specifies the discriminant of the new generalization, either as an identifier or in multilingual dictionary format.
SpecializedClass Class name Mandatory. At least one specialized class must be provided. Specifies one or more classes that will specialize from the root generalized class.
dominant Optional. If omitted, the new generalization is not made the dominant one. Specifies whether a specialized class will use the new generalization as the dominant one.

Returns

The generalization just created.

Examples

Intent Code
Create a new generalization rooted on the class in context create generalization on Use into House, Mall, Factory;
Create a new generalization rooted on an explicit class create generalization root Building on Use into House, Mall, Factory;

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