Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Re: XMI Parser
Re: XMI Parser [message #626469] Thu, 01 May 2008 11:58
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030100080004050309000608
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Naeem,

Comments below.


Khan wrote:
> hallo every one,
>
> I am intermediate level Java programmer. I have to parse the XMI 2.0
> to check the classes, its attributes, data types and relations among
> classes (Class diagram converted from UML2 into XMI). I am trying
> since 2 months. First I followed a book called Mastering XMI with
> Netbeans. It was not good enough. Then I came to EMF and Ecore. I like
> to have clear example where I can access my XMI and grab every object
> in it. Could any one help me out to make my concept clear with some
> examples.
> I am also trying to get any tutorial about this. But didnt find any.
There is a common misconception that you can just throw an XMI
serialization at a system and out will pop well formed model. Of course
this misconception is aided by the fact that this is generally how it's
supposed to work. The misconception part is that you can throw any old
XMI serialized instance at the system with the expectation that nice a
model will pop out. In reality the system must effectively know the
model that corresponds to each namespace mentioned in the XMI
serialization and if it doesn't know that model in intimate detail, the
XMI is just so much meaningless syntax.

Given you have a UML2 serialization, it's best to ask on the UML2
newsgroup how to read it; I've added that group to the "to" list of the
reply. Of course starting with the documentation at their website would
be best:
<http://www.eclipse.org/modeling/mdt/?project=uml2>

http://www.eclipse.org/modeling/mdt/?project=uml2
http://wiki.eclipse.org/index.php/MDT-UML2

>
> Your help definitely will bring me out from this problem.
>
> Best Regards,
> Naeem Khan
>
>


--------------030100080004050309000608
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Naeem,<br>
<br>
Comments below.<br>
<br>
<br>
Khan wrote:
<blockquote
cite="mid:06d44eb0c2099cb2bffcd74b6636103f$1@www.eclipse.org"
type="cite">hallo every one,
<br>
<br>
I am intermediate level Java programmer. I have to parse the XMI 2.0 to
check the classes, its attributes, data types and relations among
classes (Class diagram converted from UML2 into XMI). I am trying since
2 months. First I followed a book called Mastering XMI with Netbeans.
It was not good enough. Then I came to EMF and Ecore. I like to have
clear example where I can access my XMI and grab every object in it.
Could any one help me out to make my concept clear with some examples. <br>
I am also trying to get any tutorial about this. But didnt find any.
<br>
</blockquote>
There is a common misconception that you can just throw an XMI
serialization at a system and out will pop well formed model.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:May a Parameter have no type?
Next Topic:Imported UML plugins implications to a runtime-workbench
Goto Forum:
  


Current Time: Wed Sep 25 01:07:18 GMT 2024

Powered by FUDForum. Page generated in 0.03635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top