Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Model and meta model
Model and meta model [message #1849201] Fri, 07 January 2022 15:01 Go to next message
jo ber is currently offline jo berFriend
Messages: 94
Registered: August 2018
Member
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 16:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
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 Apr 25 06:59:17 GMT 2024

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

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

Back to the top