Re: [mdr-users] constraints in UML to MOF
"Frédéric Jouault" <[email protected]> Tue, 6 Nov 2007 19:35:37 -0500
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, The UML2MOF ATL transformation has a rule to translate constraints from UML to MOF. See: http://www.eclipse.org/m2m/atl/atlTransformations/#UML2MOF In case this transformation does not completely fit your need, you may improve it. This should be simpler than changing the UML2MOF tool written in Java. Best regards, Fr=E9d=E9ric On 11/6/07, Pieter Van Gorp <[email protected]> wrote: > 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]> wrot= e: > > 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 al= l > > 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. >