Modeling shared constant

1. Creating shared constant

To add shared constant follow these steps:
  1. At first we must have a Class with applied stereotype like slotted_exemplar etc.
  2. Go to the palette, expand Property folder and select shared_constant.
  3. Drop shared constant in properties compartment.

2. Editing shared constant options

Any UML element (with Magik stereotype applied) contains tags, which allow to edit specific generation options. Shared-constant contains Common tags and tags listed below.

Name Values Function
private true false Marker used for defining private shared constant.

Related concepts
Modeling with stereotypes

Related tasks
Common tags