Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

create class statement

Creates a new class in the context type model. If no type model is in context, an error occurs.

The created class is put in context.

Syntax

create class Name
    [( MarkerList )]
    [[ AspectList ]]
    [in Container]

Element Type Optionality Notes
Name Expression<Identifier> or Expression<Dictionary<Identifier>> Mandatory. Specifies the name of the new class, either as an identifier or in multilingual dictionary format.
MarkerList Marker list Optional. Specifies the markers to apply to the new class. The only accepted marker is A for abstract.
AspectList Marker list Optional. Specifies the model aspects implemented by the new class. Accepted markers are S for subjective and T for temporal.
Container Package name Optional. Specifies the package that will contain the new class, or "none" for no package.

Returns

The class just created.

Examples

Intent Code
Create a new class with a simple name create class Building;
Create a new class with a multilingual name create class [en_GB: Building, es_ES: Edificio];
Create a new abstract class create class Structure (A);
Create a new class in a package create class Building in MaterialEntities;
Create a new temporal aspect class create class Event [T];

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