|Re: How to implement generalization in XText ? [message #1722576 is a reply to message #1722460]
||Sat, 06 February 2016 02:04
| Parsa Pourali
Registered: February 2014
Thanks a lot Christian for your quick reply and help.|
Do you know if we have an attribute (let's say name) in Concept, and Message also inherits this "name" attribute form Concept, then from what I can see we need to declare name in the Message and not in Concept. Because concept here is just a transient element, right ? I tried having name for both Concept and for Message. In the generated ecore file it adds name attribute for both elements. However, since it is a inheritance, only Concept should have it and inherited Message can have name attribute by inheritance... What do you suggest ?
I want to end yup with generating an ecore file like below:
So, Message still has name attribute by the definition of inheritance. Not sure, how to do in XText.
Powered by FUDForum
. Page generated in 0.01511 seconds