Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

alter enum type statement

Alters an existing enumerated type in the context model. If no model is in context, an error occurs.

The altered enumerated type is put in context.

Syntax

alter enum type [EnumTypeName] as
    [name Name]
    [in Container | none]
    [definition Definition]
    [comments Comments]
    [tagged
      [without WithoutTagList]
      [with WithTagList]
    ]

Element Type Optionality Notes
EnumTypeName Enumerated type name Optional. If no enumerated type name is specified, the enumerated type in context is used. If no enumerated type is in context, an error occurs. Specifies the existing enumerated type 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 enumerated type, either as an identifier or in multilingual dictionary format.
Container Package name Optional. If no container or "none" is specified, the current one is maintained. Specifies the package where to put the enumerated type, or "none" for no package.
none Optional. If this is specified, then Container cannot be specified. Specifies that the enumerated type is to be put outside any packages.
Definition Expression<Text> or Expression<Dictionary<Text>> Optional. If no definition is specified, the current one is maintained. Specifies the new definition of the enumerated type.
Comments Expression<Text> or Expression<Dictionary<Text>> Optional. If no commments are specified, the current ones are maintained. Specifies the new commments for the enumerated type.
WithoutTagList Element name list Optional. If no tags are specified, no tags are removed. Specifies the tags to remove from the enumerated type.
WithTagList Element name list Optional. If no tags are specified, no tags are added. Specifies the tags to add to the enumerated type.

Returns

The enumerated type just altered.

Examples

Intent Code
Alter an enumerated type to change its name alter enum type Colours as name Hues;
Alter the context enumerated type to add a tag alter enum type as tagged with ToRevise;
Alter an enumerated type to put it in a different package alter enum type Colours as in Utils.Descriptions;

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