Christian works as a developer and consultant for itemis AG in Stuttgart/Germany. He is interested in model driven software development, especially textual DSLs with Xtext.

  1. November 24, 2014 at 10:57

    I am using XPand/Xtend for dynamic EMF to code generation and now I want to migrate existing Xpand/Xtend project to Xtend. I got to know that XTend is a successor of Xpand. It means I can do everything that is possible with Xpand/Xtend to latest version of Xtend (www.eclipse.org/xtend).

    I understand that Xtend is a statically-typed programming language which translates to comprehensible Java source code. I also read in some blog that dynamic EMF feature is not available in the Xtend which was previously available with XPand/Xtend. If this is true then I would like to know how can I use Xtend with dynamic metamodel which is not finalized before build.

    Let me try to summarize the question:

    I have an XSD schema (Static Meta Model) and another meta model (Dynamic meta model) which is generated from the values of an xml file whose tags are defined in the XSD schema. Right now I am able to use Dynamic meta model in case of Xpand/Xtend but now what is the way out in case of Xtend?

    Thanks and Regards, Hemal Bavishi

    • November 24, 2014 at 11:19


      there is not way out besides turning you dynamic stuff to somehow static stuff. but if you have an xsd schema it is not really dynamic. you can use the xsd importer to generate an ecore and generate the java classes for that ecore by creating a corresponding genmodel (this is the same a the xsd adaptor of xpand does it on the fly)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: