Skip to main content

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 #618217] Sun, 04 October 2009 10:41
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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 == 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?

Thomas Hallgren
Previous Topic:References by key only.
Next Topic:DSL-book: Where's the errata?
Goto Forum:

Current Time: Thu Aug 18 17:15:05 GMT 2022

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

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

Back to the top