Creating J static attributes
J static attributes
With MDA Modeler, only “class” meta-attributes can be created. Instance meta-attributes are predefined by the Objecteering metamodel.
Class meta-attributes are used by the J operations that are defined on the same metaclass.
They are not persistent: their values that can be modified in J are not stored in a model.
Creating a J static attribute
J static attributes are created on metaclass references or on work products from a J profile implementation.
Steps:
1. In the explorer, select a metaclass reference or work product from a profile implementation.
2.
Click on the
icon.
3. Enter the name of the attribute, choose its type, indicate the default value.
4. Click on “OK” to confirm.
The “J static attribute” dialog box

Figure 96. The “J static attribute” dialog box
Key:
· “Name”: This field is used to enter the name.
· “Type”: This field is used to enter the type.
· “Is set”: This field is used to define if the attribute is a collection of object or not.
· “Value”: This field is used to enter the default value. For boolean type, “true” or “false” can be defined.
Toolbar
The icons appearing in the “MDA” tab of the auxiliary window can be used to run the following commands:
|
Icon |
Description |
|
|
This icon is used to open this page. |
|
|
This icon is used to check that the J static attribute has been correctly modeled. |