Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Serialization of EType Parameter(Serialization of EType Parameter)
Serialization of EType Parameter [message #1248609] Mon, 17 February 2014 13:02 Go to next message
Martin Gröger is currently offline Martin GrögerFriend
Messages: 3
Registered: February 2014
Junior Member
I have an ecore model with the usage of generics. The generated code works fine so far. But when I serialize the model, then the generic type information isn't contained in xml file.
Is it possible to get this information also in the serialized file?
Re: Serialization of EType Parameter [message #1249258 is a reply to message #1248609] Tue, 18 February 2014 04:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30687
Registered: July 2009
Senior Member
Martin,

Comments below.

On 17/02/2014 2:02 PM, Martin Gröger wrote:
> I have an ecore model with the usage of generics. The generated code
> works fine so far. But when I serialize the model,
You mean instances of your model not the Ecore model itself...
> then the generic type information isn't contained in xml file.
It's not clear what you're expecting. Keep in mind that type parameters
in Java don't exist at runtime. I.e., given an instance new
ArrayList<Integer>(), there's no way to determine that it's anything
other than a java.util.ArrayList.class at runtime.
> Is it possible to get this information also in the serialized file?
No, just as it isn't possible purely with Java...
Previous Topic:Reflection, class not found [SOLVED]
Next Topic:[cdo] how several CDO transactions can commit their changes using one durable view?
Goto Forum:
  


Current Time: Tue Dec 10 11:10:07 GMT 2019

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

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

Back to the top