Stereotypes
Overview
Objecteering defines stereotypes which are used to designate certain objects as being concerned by the generation of C# code. In this way, a constraint concerning an operation will be used as a pre-condition if it carries the "CsPreCondition" stereotype.
Note: Certain stereotypes can be added to certain model elements directly through the "C#" tab of the auxiliary window. For more information, please see "The auxiliary window and C# Developer".
Stereotypes on a class
|
The
... stereotype |
is
used to ... |
|
CsAttribute |
generate a class as a C# attribute. |
|
CsDelegateContainer |
generate a class as a "delegate" container. |
|
CsIndexer |
define an indexer within a class. |
Stereotypes on an operation
|
The
... stereotype |
is
used to ... |
|
CsDelegate |
declare an operation as being a "delegate". |
|
CsOperator |
declare a C# operator. |
|
create |
define a constructor. |
|
destroy |
define a destroyer. |
|
CsStaticConstructor |
define a static constructor. |
Stereotypes on a constraint
|
The
... stereotype |
is
used to ... |
|
CsInvariant |
indicate an invariant expressed in C#. Such a constraint is only taken into account if it concerns a class. |
|
CsPreCondition |
indicate a pre-condition expressed in C#. Such a constraint is only taken into account if it concerns an operation. |
|
CsPostCondition |
indicate a post-condition expressed in C#. Such a constraint is only taken into account if it concerns an operation. |