FeaturesPluginsDocs & SupportCommunityPartners

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:
  • Choose File -> Export Project to XMI, and uncheck the checkbox "Save with diagram data". The resulting XMI file can be processed. Or,
  • Poseidon uses the zip format to store its files. To get the XMI file representing your UML model, extract the file with xmi extension from the *.zuml file corresponding to your UML model. Then, edit the .xmi file and remove all XML nodes with the name UML:Diagram. The resulting file can be processed.

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:
  • MagicDraw uses zip-format by default for storing model files. To get the XMI file representing your UML model unzip the XMI file (the file with xml extension) from the corresponding *.xml.zip file
  • Explicitly choose to save your model into XML file (in Sava As... dialog) - the resulting file will be the XMI file you need.
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by