Chapter 4 Managing Profiles


Defining a stereotype as a metaclass

Stereotypes can be used to create sub-classifications within a selected metaclass. You can select the Use as Metaclass check box in the stereotype property page and turn the stereotype into a metaclass inside the current metaclass.

The metaclass stereotype feature can be useful when you need to:

Note   Sub-objects
When a stereotype is defined on a sub-object (like a table column or an entity attribute), you cannot turn it into a metaclass stereotype.

The new metaclass stereotype enjoys all the attributes of a standard metaclass:

Steps To define a stereotype as a metaclass:

  1. Right-click a metaclass and select New→Stereotype in the contextual menu.

    A new stereotype is created with a default name.
  2. Type a stereotype name, select a parent in the corresponding boxes.
  3. Select the Use as metaclass check box.
  4. Click Apply.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.