Re: [Simple-support] Serializing into 2 similar classes with different names
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-06-11 00:43:39
|
You would need to use the @Convert annotation and Converter interface to handle this, there are examples in the test cases and in the online tutorial. --- On Thu, 9/6/11, Artur T <at....@gm...> wrote: From: Artur T <at....@gm...> Subject: [Simple-support] Serializing into 2 similar classes with different names To: sim...@li... Received: Thursday, 9 June, 2011, 4:23 PM Hi, I'm trying to deserialize an object that contains Vector2f (a compiled class object from a Java game development framework). However, the object was serialized by another framework (for .NET) which deals with the same data type but defines it as Vector2... I don't have the option of altering the files native to either individual frameworks. What can I do to be able to interpret the Vector2 field for the Vector2f variable. Also, I just realized, since I cannot modify the Vector2f class, I cannot add the @Element identifier, does that mean that it won't serialize even if it's part of the classes that I am serializing? Your help is greatly appreciated. Thanks,Artur -----Inline Attachment Follows----- ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |