RE: [mdr-users] RE: Problems with diff file
"Pete Rivett" <[email protected]> Sun, 28 May 2006 11:20:37 -0700
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <674FC3679265A241ACB4BF58BA0EB3BE257E84@DHOST001-50.DEX001.intermedia.net> |
Here is a link to the official UML 2.1 XMI files (it turns out the UML 2.0 metamodel had some internal structural problems that means that valid XMI could not be generated when the package merge rules were applied!): http://www.omg.org/cgi-bin/doc?ptc/06-04-07 The Zip file has many files within it: to make sense of them you need to understand that: a) UML2 has several levels of compliance:=20 L0 corresponds to structure of EMOF (subset of MOF 1.4 - has no Associations) LM corresponds to structure of CMOF (superset of MOF 1.4 - has association generalization, redefinition) L1 to L3 correspond to different levels of UML Superstructure b) UML2 makes use of a technique called Package Merge (a bit like inheritance but at the package level). For convenience the metamodel is also provided in merged form though this is not the normative version (by which I mean that in the unlikely case of discrepancy the unmerged version is the official one) c) The version of XMI corresponding to MOF 2.0 is XMI 2.1 (XMI 2.0 is for MOF 1.4 only) For more explanation of any of the above see the following specs: UML 2.1 Superstructure http://www.omg.org/cgi-bin/doc?ptc/06-04-02 UML 2.1 Infrastructure http://www.omg.org/cgi-bin/doc?ptc/06-04-03 MOF 2.0 Core http://www.omg.org/cgi-bin/doc?formal/06-01-01 XMI 2.1 http://www.omg.org/cgi-bin/doc?formal/05-09-01 (this does have some examples of diffs) There is also a UML 2.1 XSD file (for L3 only): http://www.omg.org/cgi-bin/doc?ptc/06-05-07 As with all versions of XMI, the XSD (or DTD) is not very tight in terms of what it validates. Do not make the mistake of thinking that a document that is validated by the XSD is valid XMI! (However if it cannot be validated by the XSD you can be confident that it is not valid XMI). There are revisions of MOF (MOF 2.2) and XMI (XMI 2.2) due to complete in the next few months. MOF 2.1 will be built on UML 2.1 as you might expect. I am co-chair of the Revision Task Forces of all the above so if you have any questions or issues please let me know. Regards, Pete Pete Rivett (mailto:[email protected])=20 CTO, Adaptive Inc.=20 Hello House, 135 Somerford Road, Christchurch, BH23 3PY, UK=20 Tel: +44 (0)1202 491243 Fax: +44 (0)1202 491241=20 http://www.adaptive.com=20 > -----Original Message----- > From: ludger goeke [mailto:[email protected]]=20 > Sent: Tuesday, May 23, 2006 10:07 AM > To: [email protected]; [email protected] > Subject: [mdr-users] RE: Problems with diff file >=20 > Hello Elena, >=20 > the exception could thrown because the nbmdr doese not=20 > recognizes your=20 > diff-File and then it can not generate Interfaces like Class=20 > with the Operation "getClass()". But I must admit that I=20 > don't know the concept of diff files. Is there an example on=20 > the NetBeans website or could you tell me how it works? I=20 > created the Parts of the UML2-model I needed by myself with=20 > the Posidon-Tool. There I could attach the nessessary Tags to=20 > model elements like Class. Is there in the meantime an=20 > official XMI-File of the UML2-Metamodell existing on the OMG=20 > Website? I didn't found it there.=20 >=20 > Regards > Ludger Goeke > --=20 >=20 >=20 > Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! > Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer > =20 >=20