extending Xpand models [message #516283] |
Tue, 23 February 2010 13:50 |
MaximeLecourt Messages: 108 Registered: February 2010 Location: France |
Senior Member |
|
|
I'm currently trying to see what it is possible to do using Xpand + MWE + Xtext (and ecore), and if I can use it for my intership.
So I've got a question, as I can't find exactly what is possible and what is not
My point is to create databases, creating first a generic metamodel for a database, and using a more specific model for each database I'll have to create.
I want to generate API for those specific models automaticly, in any langage (providing I have the needed template, of course).
So there are my questions :
Can a model refer to another model, extending it ?
Can I do recursive extending, having a model refer to a model that refers to a model and so on ?
Can i redefine types ?
As in a "age" type, on which I define constraints (obviously an non-negative int).
Can I than use it as a simple type to classes, as we usually use int, string, bool ?
One day I shall master M2T, but that day has yet to come...
|
|
|
|
Re: extending Xpand models [message #516615 is a reply to message #516487] |
Wed, 24 February 2010 15:33 |
MaximeLecourt Messages: 108 Registered: February 2010 Location: France |
Senior Member |
|
|
Darius Jockel wrote on Wed, 24 February 2010 03:31 | If the subtyp also inherit from a 'simple type' you can use it like other simple types in your model.
|
It's exactly what I meant.
Thank you
Maxime
One day I shall master M2T, but that day has yet to come...
|
|
|
Powered by
FUDForum. Page generated in 0.09525 seconds