|Reading general XMI file [message #627792]
||Thu, 16 July 2009 17:28
| Tom A
Registered: July 2009
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 :-)
Powered by FUDForum
. Page generated in 0.10429 seconds