|
Re: Serialization of EType Parameter [message #1249258 is a reply to message #1248609] |
Tue, 18 February 2014 04:31 |
Ed Merks Messages: 33133 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...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02518 seconds