|
|
Re: Merging resources that share the same root node. [message #1803005 is a reply to message #1802976] |
Wed, 20 February 2019 16:21 |
Tobias Fox Messages: 10 Registered: February 2019 |
Junior Member |
|
|
Hi Ed.
Thank you for your reply, it is appreciated. I'm reading your book on EMF now and I'm trying to understand the relationship between the contents of a resource and that contents' contents, as is plainly visible in XML.
Supposing my XMI loaded into two resources is
<Model ..... >
<javaProjects ...> ... </javaProjects>
</Model>
<Model ...>
<cProjects> ... </cProjects>
</Model>
how could this become the object representing the following?
<Model ...>
<javaProjects ...> ... </javaProjects>
<cProjects ...> ... </cProjects>
</Model>
The resource holding the first instance of Model has no specific method for setting children, I was hoping there would be a way around it by doing something like
resource1.contents[0].eContents.add(resource2.contents[0].eContents)
If it is possible to do such a thing in a generic way.
Thanks again,
Tobias
[Updated on: Wed, 20 February 2019 16:47] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02233 seconds