Non-EMF object XMI serialization [message #1015781] |
Sat, 02 March 2013 13:49  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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;
>
> ?
|
|
|
Powered by
FUDForum. Page generated in 0.02612 seconds