File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes uml to xmi export Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "uml to xmi export " Watch "uml to xmi export " New topic

uml to xmi export

omabozahra zahra

Joined: Mar 06, 2006
Posts: 1
I am working in make tool for extract metrics from UML
Could you please help me with ideas of how to start on extract information from XMI(XML metadata interchange)
# Which is the suitable UML tool ( Rational Rose , Poseidon, magic draw ,.........)?
# How can I convert UML diagrams to XMI 0.2 ?
# By which parser can I retrieve values from XMI ?
# Which is the first step and the clear points to make the object oriented metrics tool?
please I want the simplest method and thank you very much for your time and e
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hi, welcome to the Ranch!

Google is your friend. A quick search for "export xmi" got me Visual Paradigm. I'd bet most UML tools do it, too.

XMI is just XML, though I have to admit I've never looked at it. We purchased a toolkit that uses XSD to simplify XMI before we see it. Still, you should be able to parse it with any XML parser. If you're new to XML look for the XML forum here on the ranch.

Robert Martin has defined a set of metrics dealing with dependency and abstractness. See the JDepend tool which analyzes all the metrics on compiled code. You can probably find most of the same information in the XMI.

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Scott Ambler
Ranch Hand

Joined: Dec 12, 2003
Posts: 608
I'd recommend doing some research first, as Stan suggests. There are already tools which derive metrics from models, this category of tool has been around a couple of decades, and it's never taken off.

Furthermore, there is significant doubt that there is much value in these sorts of metrics, other than to keep the bureaucrats among us entertained.

- Scott

<a href="" target="_blank" rel="nofollow">Scott W. Ambler</a><br />Practice Leader Agile Development, IBM Rational<br /> <br />Now available: <a href="" target="_blank" rel="nofollow">Refactoring Databases: Evolutionary Database Design</a>
I agree. Here's the link:
subject: uml to xmi export
It's not a secret anymore!