You can create new annotation types to attach to your objects.
- Create a class and then double-click it to access its property sheet.
- On the General tab, in the Stereotype list:
- Click the Attributes tab, and add an attribute for each parameter accepted by the annotation type.
- [optional] Click the Preview tab to review the code to be generated for the annotation type:
- Click OK to return to the diagram. The annotation type will be represented as follows: