Skip to main content



      Home
Home » Modeling » EMF » Model and meta model
Model and meta model [message #1849201] Fri, 07 January 2022 10:01 Go to next message
Eclipse UserFriend
Hi

Imagine I create my own modeling language 'MyModelingLanguage' in ecore with instance having extension 'mml'.
In this language, I define the concept/class important in my business area, in e.g. my model 'MyBusinessArea.mml'.
How can I then generate the java classes with emf infrastrructure from 'MyBusinessArea.mml'?
Do I have to convert instances from 'MyBusinessArea.mml' to ecore to do so or is there an alternative way?

Thank you and kind regards,
Re: Model and meta model [message #1849202 is a reply to message #1849201] Fri, 07 January 2022 11:07 Go to previous message
Eclipse UserFriend
You could convert to Ecore to reuse/leverage its existing Java generation capabilities, if the concepts are relatively closely matched. Or you can write your own generator directly against your own model; you might implement your generator using Xtend, or using JET templates as we've done for Ecore, or just using plain old Java.
Previous Topic:How could I fully get EMF models from an XML resource?
Next Topic:Display Icon from platform: instead of plugin:
Goto Forum:
  


Current Time: Thu Jul 03 09:18:14 EDT 2025

Powered by FUDForum. Page generated in 0.28641 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top