Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

redefine association statement

Redefines an extisting semi-association into a new redefinition, and puts it in context.

The class owning the new redefinition semi-association is also put in context.

Syntax

redefine semiassociation SemiAssociationName as
    Name:
    Cardinality [^] [role Role] OppositeClass
    [[!] whole] [[!] strong] [( AspectList )]

Element Type Optionality Notes
SemiAssociationName Semi-association name Mandatory. Specifies the existing semi-association to be redefined.
Name Expression<Identifier> or Expression<Dictionary<Identifier>> Mandatory. Specifies the name of the new redefinition semi-association, either as an identifier or in multilingual dictionary format.
Cardinality Cardinality Mandatory. Specifies the cardinality of the new redefinition semi-association.
^ Optional. If omitted, the new redefinition semi-association is not made sorted. Specifies whether the new redefinition semi-association must be sorted.
Role Expression<Identifier> or Expression<Dictionary<Identifier>> Optional. Specifies the role of the new redefinition semi-association, either as an identifier or in multilingual dictionary format.
OppositeClass Class name Mandatory. Specifies the opposite class for the new redefinition semi-association.
whole Optional. If omitted, the whole flag of the new redefinition semi-association is copied from the redefined one. If preceded by !, the new redefinition semi-association is not made whole. Specifies whether the new redefinition semi-association must be whole.
strong Optional. If omitted, the strong flag of the new redefinition semi-association is copied from the redefined one. If preceded by !, the new redefinition semi-association is not made strong. Specifies whether the new redefinition semi-association must be strong.
AspectList Marker list Optional. Specifies the aspects used by the the new redefinition semi-association. Accepted markers are S for subjective, K for constant, and T for temporal.

Returns

The semi-association redefinition just created.

Examples

Intent Code
Redefine the Creator semi-association inherited by Book as as having a new name redefine semiassociation Book.Creator as Author: 1..* Person;
Redefine the Creator semi-association inherited by Book as having a new multilingual name redefine semiassociation Book.Creator as [en_GB: Author, es_ES: Autor]: 1..* Person;

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