Skip to main content



      Home
Home » Modeling » EMF » Serialization of EType Parameter(Serialization of EType Parameter)
Serialization of EType Parameter [message #1248609] Mon, 17 February 2014 08:02 Go to next message
Eclipse UserFriend
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] Mon, 17 February 2014 23:31 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 21:44:26 EDT 2025

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

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

Back to the top