Getting Started

MOF diagrams are Class diagrams that are contained in packages with a metamodel stereotype. To create a MOF diagram, follow the steps below.

  1. Create a package to contain your MOF elements.
  2. Double-click on the package name to display the Properties dialog.
  3. In the Stereotype field type the value metamodel.
  4. Click on the OK button.
  5. Right-click on the package in the Project Browser and select the Add | Add Diagram context menu option. Create a Class diagram (the default diagram).
  6. Give your MOF Class diagram an appropriate name.
  7. In the Toolbox, select the More tools | Metamodel menu option and add the required Metamodel elements to the diagram.

The following is an example of a MOF diagram. A MOF diagram can typically contain Package, Class, Enumeration and Primitive elements, and Generalization, Association, Compose and Aggregate relationships.