Re: [mdr-users] constraints in UML to MOF
"Pieter Van Gorp" <[email protected]> Tue, 6 Nov 2007 15:56:35 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Richard, The MOF version supported by MDR does support constraints (see section 3.4.26 in the MOF 1.4 spec, http://www.omg.org/docs/formal/02-04-03.pdf) but the NetBeans UML2MOF transformation does not support the translation from constraints attached to UML Classifiers to constraints attached to MOF Classifiers. It should be possible to build such a translation but I don't know of any existing one. Best regards, Pieter Van Gorp On Nov 6, 2007 4:14 PM, Mgr. Richard Ciglansky <[email protected]> wrote: > Hello, > > it seems you are making some MOF-metamodel of your own. > This metamodel should be expressed in MOF terms. As there was no MOF > tool available in old days to do this directly, but many UML tools were > available, uml2mof tool was developed to simplify creation of 'MOF > metamodel' in the way, that it can be designed in UML as 'UML model' > using some very restricted sub-set of UML and then this 'UML Model' can > be using 'uml2mof' converted into 'MOF metamodel'. > All UML features not 'mappable' to MOF are ignored. > I believe that 'MOF metamodel' cannot contain constraints. therefore all > constraints from UML are ignored by 'uml2mof' tool. > Check documentation for 'uml2mof' how to prepare you UML Model to be > fully convertible to MOF-metamodel. > > > The behavior is by design.