Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:18:45+00:00 2026-06-10T22:18:45+00:00

I have a transformation sequence of models that eventually outputs an EMF model, instance

  • 0

I have a transformation sequence of models that eventually outputs an EMF model, instance of some EMF Meta model (the meta model I defined myself).

I am looking for a good way to generate code from this. Of course, there is XPand, I used to use that for other projects, but I wonder if XText or XTend is a suitable alternative (since it’s so actively developed).

In other words, I have an EMF model, don’t need an editor for it (so don’t need XText for THAT purpose), but I DO need to build a code generator. Could I use XText for only that part?

And would it be advisable over XPand or Acceleo?

Any advice would be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:18:46+00:00Added an answer on June 10, 2026 at 10:18 pm

    I try to do a fair comparison between the tools, but it is really hard.

    Xtext has nothing to do with code generation – it is for creating editors and parsers.

    Xtend2 is designed as a successor of Xpand with a similar syntax – however, it is not tailored specifically to code generation but as a general purpose language that is nicely usable for code generation as well. The main difference between other generation engines is that you work on the source code level (basically, Xtend2 translates to Java), and you have to provide your own engine that drives the generation – although of course it is possible to use Modeling Workflow Engine for this reason – just as in case of Xpand.

    Acceleo is more tailored for simple code generation. It’s syntax is based on an OMG specification for code generation, and provides a full-featured IDE for developing code generation. However, if you need complex control structure during code generation, it might be not the best solution.

    About M2T-JET, as Chris suggested, I would vote against, except for very specific needs. It’s development support is much weaker (e.g. it’s editor), and is more based on the idea of having a single template for output opposed to a higher level, rule based approach of Xpand/Xtend/Acceleo. This results in somewhat better performance during code generation, however, it often results in harder to understand templates. Ignore this paragraph because it is too negative.

    Alltogether, if you are using only EMF models, both Acceleo and Xtend can be a nice choice for code generation, and you should choose between them based on your (or your teams) expertise and your more specific needs. If you need to support both EMF models and other data sources, then Acceleo is not the best choice; however, neither JET nor Xtend builds on the fact that your input is an EMF model, but provides easy way to call any Java code available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am designing a Proxy Service sequence that includes an XQuery transformation. I have
I have this view and I do some rotation transformation to it using something
I have a maven project that loads an xslt file and executes the transformation
I have a SOAP web service that is defined contract-first--the request and response xml
I have an XSL transformation where I used to query a string that way:
I have an application, which performs some custom data gathering, transformation and reporting. Currently,
Let say I have a Transformation class that extending a CommonDomain class. and I
In my XSLT transformation I have two analyze-strings that I need to use to
I have a data transformation problem that I'm struggling with: Assume I have a
I have some performance-heavy code that performs bit manipulations. It can be reduced to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.