Creating a New Annotation Type

You can create new annotation types to attach to your objects.

  1. Create a class and then double-click it to access its property sheet.
  2. On the General tab, in the Stereotype list:

    • For Java 5.0 - select AnnotationType

    • For .NET 2.0 - select AttributeType

  3. Click the Attributes tab, and add an attribute for each parameter accepted by the annotation type.

  4. [optional] Click the Preview tab to review the code to be generated for the annotation type:

  5. Click OK to return to the diagram. The annotation type will be represented as follows:


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com