Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generating the java object model using XTEXT
Generating the java object model using XTEXT [message #671822] Thu, 19 May 2011 05:47 Go to next message
rexpiyum  is currently offline rexpiyum Friend
Messages: 1
Registered: May 2011
Junior Member
Currently apache synapse configuration is done by a xml file. I wanna replace xml using new DSL which is already created by me. What is the best way to create the java objects for the currently existing java object model using new language.
Re: Generating the java object model using XTEXT [message #672016 is a reply to message #671822] Thu, 19 May 2011 15:00 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 5/19/11 7:47 AM, rexpiyum wrote:
> Currently apache synapse configuration is done by a xml file. I wanna
> replace xml using new DSL which is already created by me. What is the
> best way to create the java objects for the currently existing java
> object model using new language.

The "java object model" must be done with EMF. If you want to use Xtext
to generate a model of non EMF java objects, you need to do (EMF) model
to java object transformation.

If you already have the "model implemented" in java, you could use that
to get an ecore model. Your grammar can then make references to this
ecore model.

Not sure if that is what you were asking about though...
- henrik
Re: Generating the java object model using XTEXT [message #672058 is a reply to message #671822] Thu, 19 May 2011 18:12 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
On 19/05/2011 06:47, rexpiyum wrote:
> Currently apache synapse configuration is done by a xml file. I wanna
> replace xml using new DSL which is already created by me. What is the
> best way to create the java objects for the currently existing java
> object model using new language.
At least the first part of this is exactly what (Modisco) the Model
Discovery project is aimed at.

Regards

Ed Willink
Previous Topic:Run command
Next Topic:how to resolve import files when using in standalone mode
Goto Forum:
  


Current Time: Sat Apr 27 02:10:01 GMT 2024

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

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

Back to the top