Re: [mdr-users] Guidance for Use of MDR
Richard Ciglansky <[email protected]> Wed, 08 Feb 2006 09:58:28 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.user |
|---|---|
| Message-ID | <[email protected]> |
bhakti daftardar wrote: > > > > Respected Sir/Madam > > > i am working on a project of developing a tool which > calulates software metric of an UML Diagram and I am planning to use > XMI file > containing the UML Diagram as a input to my tool. With the help of case > tools i am able to get the XMI's. Now I have to parse the XMI and load the > available info in a Object Model (which acts as a repository for my tool). > I had 2 options > > FIRST i make my own object model and load it using SAX parser. But > creating and > managing such a huge Model(MODEL SHOULD BE M2 layer of the 4 layers of MOF > Architecture) for almost 9 uml diagrams (if i limit my self to uml 1.3 > or uml > 1.4) seems to be a difficult and cumbersome task. > > So i thought of 2nd option of using already existing repostory as > Poseidon is > using. Poseidon is using NetBeans MDR as there metadata repository. I > downloaded > Netbeans 3.5.1 updated it for MDR and tried to use it. I drew small > sample class > diagram in all above three UML Case Tools and exported the xmi out of > it. MDR > requires XMI[MOF] format which is given by only Enterprise Architect . If you export XMI from Poseidon and select in a checkbox in the export dialog TO NOT EXPORT DIAGRAMS, the resulting XMI is surely importable by MDR. > So i > exported XMI[MOF 1.4] format from enterprise Architect and imported it > in MDR How exactly you imported the model ? Did you import UML metamodel at first ? Richard Ciglansky > but the results which i was expecting i.e i will get M2 layer i didn't > get M2 > layer instead i got just 3 classes of i think M3 layer which i am not > able to > use any how as there are no tutorials or examples on how to use the > JMI API > created by MDR Explorer. >