Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

alter package statement

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

The altered package is put in context.

Syntax

alter package [PackageName] as
    [name Name]
    [description Description]
    [comments Comments]
    [tagged
      [without WithoutTagList]
      [with WithTagList]
    ]

Element Type Optionality Notes
PackageName Package name Optional. If no package name is specified, the package in context is used. If no package is in context, an error occurs. Specifies the existing package 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 package, either as an identifier or in multilingual dictionary format.
Description Expression<Text> or Expression<Dictionary<Text>> Optional. If no description is specified, the current one is maintained. Specifies the new description of the package.
Comments Expression<Text> or Expression<Dictionary<Text>> Optional. If no commments are specified, the current ones are maintained. Specifies the new commments for the package.
WithoutTagList Element name list Optional. If no tags are specified, no tags are removed. Specifies the tags to remove from the package.
WithTagList Element name list Optional. If no tags are specified, no tags are added. Specifies the tags to add to the package.

Returns

The package just altered.

Examples

Intent Code
Alter a package to change its name alter package Organization.Staff as name Personnel;
Alter the context package to add a tag alter package 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