| References by key only. [message #489511] |
Sun, 04 October 2009 06:41 |
Thomas Hallgren Messages: 3166 Registered: July 2009 |
Senior Member |
|
|
Hi,
I'm working on an ecore model that describes the Buckminster RMAP. It needs to serialize/parse according to an already
existing XSD. The XSD is however far from ideal as a good base for my model so I want to turn things around and use the
ecore model as base and then generate a compatible XSD from there.
Here is one problem that I've encountered that I would like some advice on:
The 'locator' element of the RMAP has a reference to a 'searchPath' element which is required to be in the same
document. This reference is using the 'name' attribute of the searchPath. It typically looks like this:
<searchPath name="eclipse.platform"> ... </searchPath>
...
<locator pattern="..." searchPathRef="eclipse.platform"/>
I.e. it's not a strict reference per se, it's just a match where Locator.searchPathRef == SearchPath.name. Nevertheless,
I want to model this as a 0..1, non-containing reference, from Locator to SearchPath so that I get all nice lookup
functionality etc. that the generated editor provides. What tweaks do I need to make this happen?
Regards,
Thomas Hallgren
|
|
|
Powered by
FUDForum. Page generated in 0.01472 seconds