UML Tools Support

Author:
Martin Matula, NetBeans / Sun Microsystems

History:
Available in the CVS
The tool was tested with two brands of UML tools with support for UML 1.4 I know of. They are Poseidon for UML 1.5 or higher from Gentleware AG and MagicDraw 6.0 or higher from NoMagic. For both tools a project file ("template") is provided containing all the pre-defined stereotypes (in case of MagicDraw also tags) from UML Profile for MOF. To make use of these templates just download the template for the UML tool of your preference (below), open it in the tool and choose "Save As..." to save it under desired name - now you can work on your model as if you would create it from scratch, just the stereotypes you will use for representing MOF elements will already be there.

Poseidon for UML 1.5 and 1.6

Download: Template | Simple XML Metamodel

Above you can download the template for creating MOF models in Poseidon. The second download is the Sample XML Metamodel (from the sample MDR XML module) created using Poseidon.

Getting XMI File

Poseidon uses zip-format for storing its files. To get the XMI file representing your UML model, extract this file (the file with xmi extension) from the *.zargo file coresponding to your UML model.

Poseidon for UML 2.x

For creating MOF models please use the template for Poseidon for UML 1.5 above.

Getting XMI File

There are two ways of obtaining the XMI file:

MagicDraw 6.x and 7.x

Download: Template | Simple XML Metamodel

Above you can download the template for creating MOF models in MagicDraw. The second download is the Sample XML Metamodel (from the sample MDR XML module) created using MagicDraw.

Modeling Guidelines

MagicDraw 6.0 has a small bug that causes the XMI serialization of unlimited multiplicity to be incorrect. To avoid problems importing your UML models to MDR or converting them to MOF, "-1" needs to be used instead of "*" to indicate multiplicity of "many". E.g. instead of 0..* suggested by MagicDraw always use 0..-1, etc.

Getting XMI File

There are two options of obtaining the XMI file from MagicDraw: