Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Reading general XMI file
Reading general XMI file [message #627792] Thu, 16 July 2009 17:28
Tom A is currently offline Tom AFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

I'm new the subject of parsing an XMI file with the eclipse libraries.
I've read the "EMF Framework Programmer's Guide" and "Getting Started
with UML2" in the UML2 wiki. I also googled a lot, but I could not find
the right information on how my problem is solved or even an indication
if it can be solved.

I have a XMI file that has nothing to do with EMF/Ecore. The file
contains a metamodel, unlike most guides (which seem only to work with
concrete datamodels in their xmi files). This metamodel can for instance
be a class diagram exported from IBM's Rational Rose or Visual Paradigm.
I want to write an application that reads the classifiers and their
associations from this XMI file. I believe it has to be possible to
transform the metamodel to some Ecore object-set that can be browsed in
Java. Am I correct?

If so, how should I configure a ResourceSet to load the XMI file in this
way? I tried using the UMLPackage.eINSTANCE in my code but with no
succes, because I don't seem to understand the core concepts of
ResourceSets and how I might configure them to load any XMI file. There
seem to be an overwhelming amount of settings for Resouces that are to
my knowledge not covered in some tutorial.

Ideas? Sample source code would be highly appreciated :-)

Regards,
Tom
Previous Topic:UML2 editor exception on stereotype application
Next Topic:Operations Package Export in GenModel
Goto Forum:
  


Current Time: Thu Dec 18 08:38:31 GMT 2014

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

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