Parse UML2 diagrams with Papyrus [message #1232029] |
Wed, 15 January 2014 22:05  |
Eclipse User |
|
|
|
Hi,
We want to parse UML2 models created by Papyrus so that we can creat other formats of files to be processed by other tools. So, how can I do this with Papyrus?
Thanks.
Robin
|
|
|
|
Re: Parse UML2 diagrams with Papyrus [message #1232124 is a reply to message #1232108] |
Thu, 16 January 2014 04:26   |
Eclipse User |
|
|
|
Thank you, Camille.
To be precisely, my use case is basically reading Papyrus/UML files from our own tools to extract some model information, e.g., components, layers, and relations among these modle elments, and then these information can be used as a design specification as its own file format needed by our own tools.
Since this reading (parsing) maybe complex as you said it is trivial, can we extract these information in the Papyrus environment and write them via Papyrus APIs to a formatted file we want?
Regards,
Robin
|
|
|
Re: Parse UML2 diagrams with Papyrus [message #1232132 is a reply to message #1232124] |
Thu, 16 January 2014 04:38  |
Eclipse User |
|
|
|
Hi Robin,
It would be easier to read these files directly from Papyrus, then produce the files you need. If the external tool is compatible with EMF, you can also import the Eclipse/UML2 metamodel in this other tool, then use their APIs to read the models from this other tool.
The files used by Papyrus are pure-EMF, so any documentation related to EMF (Eclipse Modeling Framework) should help you to achieve that.
Regards,
Camille
|
|
|
Powered by
FUDForum. Page generated in 0.05521 seconds