O2DBIWiki/WorkingXMI

From BRF-Software
Jump to navigation Jump to search

O2DBI - Working with O2DBI - Converting XMI files

-> Back to Overview page <-

Building a class scheme from scratch using the O2DBI Designer may be suitable for small class schemes. Large and distributed projects often use UML based design software, e.g. the freely available ArgoUML or the commercial Poseidon or Rational Rose. These application are capable of reading and writing "XMI" files (XML metadata exchange).

XMI files contain a definition of classes, their attributes, relationships, associations etc. They may be used to define a class scheme for O2DBI:

Conversion

The XML format used by O2DBI differs from the format definition of XMI. The O2DBI tarballs provides an XSLT based conversion script.

Example:

xsltproc /path/to/O2DBI/share/xml/xmi_to_o2dbi.xslt your_classes.xmi > your_classes.xml

Common problems with XMI content

XMI allows various ways to express certain structures. Depending on the XMI generating application the conversion may or may not work. The XMI script was written to support the XMI files generated by ArgoUML. You should check the classes in the Designer after conversion. Inheritance and attributes should be ok in most cases, but associations may have wrong names or no names at all.

-> Back to Overview page <-



Author: [1]