Bundt Scripting Reference
·
Bundt Scripting Language version 1.0.1.0
redefine attribute
statement
Redefines an existing attribute into a new redefinition, and puts it in context.
The class owning the new redefinition attribute is also put in context.
Syntax
redefine attribute AttributeName as
Name:
Cardinality [^] (BaseType | enum EnumType)
[( AspectList )]
Element |
Type |
Optionality |
Notes |
AttributeName |
Attribute name |
Mandatory. |
Specifies the existing attribute to be redefined. |
Name |
Expression<Identifier> or Expression<Dictionary<Identifier>> |
Mandatory. |
Specifies the name of the new redefinition attribute, either as an identifier or in multilingual dictionary format. |
Cardinality |
Cardinality |
Mandatory. |
Specifies the cardinality of the new redefinition attribute. |
^ |
|
Optional. If omitted, the new redefinition attribute is not made sorted. |
Specifies whether the new redefinition attribute must be sorted. |
BaseType |
Base type name |
Optional. If this is specified, then EnumType cannot be specified. |
Specifies the base type for the new redefinition attribute. |
EnumType |
Enumerated type name |
Optional. If this is specified, then BaseType cannot be specified. |
Specifies the enumerated type for the new redefinition attribute. |
AspectList |
Marker list |
Optional. |
Specifies the aspects used by the new redefinition attribute. Accepted markers are S for subjective, K for constant, T for temporal, and L for multilingual. |
Returns
The attribute redefinition just created.
Examples
Intent |
Code |
Redefine the Name attribute inherited by Book as as having a new name |
redefine attribute Book.Name as Title: 1 Text; |
Redefine the Name attribute inherited by Book as having a new multilingual name |
redefine attribute Book.Name as [en_GB: Title, es_ES: TÃtulo]: 1 Text; |
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