QtMof/QtUml: XMI serialization and metamodel plugins January 21, 2013Posted by Sandro Andrade in planetkde-sandroandrade, planetqt-sandroandrade.
A lot has happening since my last post about QtMof/QtUml – a Qt5 add-on module devoted to (meta-)modeling and model-driven support in Qt (currently in Qt Playground). Auto-generation of meta-models has been further improved, making of use Qt5’s new features for metatypes, XMI serialization is already in place even though not all specified configuration parameters are currently supported by now. In addition, QtUmlEditor example has been a full testbed for QtMof/QtUml and can probably be useful as a working application afterwards.
Meta-models (like MOF and UML) are now implemented as Qt plugins. That enables editor (and XMI serializer) to be fully independent from modeling language and also sets the stage to deal with user-defined meta-models. We are currently implementing the OCL (Object Constraint Language) parser which will allow users to define and execute ‘sanity checks’ and conformance rules on models. That will also enhance auto-generation of meta-models since a lot of operations and derived properties can indeed by specified in OCL (as already happen in Uml meta-model).
How to try it !
- From sources: http://qt.gitorious.org/qtplayground/qtmof
- openSUSE repositories: http://download.opensuse.org/repositories/home:/sandroandrade/
- ArchLinux: you can build it from AUR (yaourt -S qtumleditor) or download and install the following packages (OBS-generated Arch repositories are slightly broken by now):
- Windows x86_64 package: wiki.ifba.edu.br/qtumleditor/qtumleditor.rar
As usual, any help with testing, developing, and reviewing is quite welcome 🙂 Maybe we can expect some model-driven features in QtCreator and KDevelop in a near future ? 🙂
See you …