[mdr-users] How to load an xmi file consistent with a loaded metamodel
"carol cervello" <[email protected]> Thu, 22 Jun 2006 12:24:59 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <000e01c695e6$1dd569a0$0a00a8c0@CAROL> |
This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C695F6.E0E49CD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=20 We're trying to use the mdr project in order to have an internal = representation of the UML2.0 metamodel. Our aim is to have this internal = representation in memory so that we can load any conceptual schema = consistent with this metamodel.=20 At the moment, we've been capable of generating the internal = representations (Java interfaces) using the MDR. We've also been = successful in loading the metamodel from its xml file description in MOF = and have made some simple tests using the generated interfaces. Our = problem comes know that we'd like to read an xmi file with a conceptual = schema description and get it as an instance of the UML2.0 metamodel = loaded (as an instanceof the interfaces created when we load the = metamodel). The thing is we're not quite sure of how to read this xmi = file to load it as an instance of the metamodel. We've seen that the = XMIReader seems to do so, but how could we know exactly which format = should have this xmi file so that the XMIReader can read it?=20 Anyway, does anyone know if there's any example available of how to read = an xmi file consistent with a loaded metamodel and get it as an instance = of this metamodel? Thanks a lot=20 Carol Cervello ------=_NextPart_000_000B_01C695F6.E0E49CD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi, </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>We're trying to use the mdr project in = order to=20 have an internal representation of the UML2.0 metamodel. Our aim is to = have this=20 internal representation in memory so that we can load any conceptual = schema=20 consistent with this metamodel. </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>At the moment, we've been capable of = generating the=20 internal representations (Java interfaces) using the MDR. We've also = been=20 successful in loading the metamodel from its xml file description = in MOF=20 and have made some simple tests using the generated interfaces. Our = problem=20 comes know that we'd like to read an xmi file with a conceptual schema=20 description and get it as an instance of the UML2.0 metamodel loaded (as = an=20 instanceof the interfaces created when we load the metamodel). The = thing is=20 we're not quite sure of how to read this xmi file to load it as an = instance of=20 the metamodel. </FONT><FONT face=3DArial size=3D2>We've seen that the = XMIReader=20 seems to do so, but how could we know exactly which format should have = this xmi=20 file so that the XMIReader can read it? </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Anyway, does anyone know if there's any = example=20 available of how to read an xmi file consistent with a loaded metamodel = and get=20 it as an instance of this metamodel?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks a lot </FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Carol Cervello</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> ------=_NextPart_000_000B_01C695F6.E0E49CD0--