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 13:49 Go to next message
Gordan Vosicki is currently offline Gordan Vosicki
Messages: 2
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 02:00 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25917
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;
>
> ?
Previous Topic:Require thoughts on upgrading an EMF model
Next Topic:Undo/Redo two Commands at once
Goto Forum:
  


Current Time: Wed Jul 23 22:21:30 EDT 2014

Powered by FUDForum. Page generated in 0.02436 seconds