Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » extending Xpand models (can you do it ?)
icon5.gif  extending Xpand models [message #516283] Tue, 23 February 2010 08:50 Go to previous message
MaximeLecourt  is currently offline 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 Very Happy

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...
 
Read Message icon5.gif
Read Message
Read Message
Previous Topic:[JET2] <c:iterate> tag bahavior
Next Topic:[xtend] How to write this transformation?
Goto Forum:
  


Current Time: Thu May 23 04:36:43 EDT 2013

Powered by FUDForum. Page generated in 0.01680 seconds