Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » References by key only.
References by key only. [message #489511] Sun, 04 October 2009 10:41
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3229
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
Previous Topic:How to create an xpand project in galileo
Next Topic:References by key only.
Goto Forum:
  


Current Time: Mon Nov 24 08:27:35 GMT 2014

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

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