Skip to main content



      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 13:49 Go to next message
Eclipse UserFriend
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 02:00 Go to previous message
Eclipse UserFriend
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;
>
> ?
Previous Topic:Require thoughts on upgrading an EMF model
Next Topic:Undo/Redo two Commands at once
Goto Forum:
  


Current Time: Wed Jul 23 01:34:54 EDT 2025

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

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

Back to the top