Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Non-EMF object XMI serialization(Is there a "java.util.Serializable"-like interface for EDataType objects to XMI)
Non-EMF object XMI serialization [message #1015781] Sat, 02 March 2013 18:49 Go to next message
Gordan Vosicki is currently offline Gordan VosickiFriend
Messages: 13
Registered: March 2013
Junior Member
Is there a way to serialize non-EMF objects to XMI and load them back ?
I'm not an XMI guru, but I was thinking of a Serializable-like interface with a read and a write method which, if implemented by a ckass, would allow it to be serialized in an XMI file:

void readXMIObject(XMIInput inStream) throws XxxException;
void writeXMIObject(XMIOutput outStream) throws XxxException;

?
Re: Non-EMF object XMI serialization [message #1016611 is a reply to message #1015781] Thu, 07 March 2013 07:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Gordan,

You must define an EDataType to wrap the Java type and implement the
createFromString/convertToString for it in the generated factory.


On 07/03/2013 1:34 AM, Gordan Vosicki wrote:
> Is there a way to serialize non-EMF objects to XMI and load them back ?
> I'm not an XMI guru, but I was thinking of a Serializable-like
> interface with a read and a write method which, if implemented by a
> ckass, would allow it to be serialized in an XMI file:
>
> void readXMIObject(XMIInput inStream) throws XxxException;
> void writeXMIObject(XMIOutput outStream) throws XxxException;
>
> ?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Require thoughts on upgrading an EMF model
Next Topic:Undo/Redo two Commands at once
Goto Forum:
  


Current Time: Thu Mar 28 14:20:01 GMT 2024

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

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

Back to the top