|
|
|
Re: serialized EObjects with xmi [message #428907 is a reply to message #428887] |
Wed, 01 April 2009 15:38 |
Michael Burkhardt Messages: 64 Registered: July 2009 |
Member |
|
|
Hi Ed,
I don't mean java.io.Serializeable. It would be great, if the XMI file would be
used to create a String. In the XMI are information about concat and describe
EObject as String.
Ciao, Micha
--- Original-Nachricht ---
Absender: Ed Merks
Datum: 01.04.2009 15:17
> Micha,
>
> I'm not sure if you were talking about java.io.Serializeable as Palash
> assumed. Maybe this answers your question:
> < http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 8706.html>
>
> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 8706.html
>
> Of course XML resource has this method so you can use a string writer
> directly with that to save to an in-memory string.
>
> /**
> * Saves the resource to the writer using the specified options.
> * @param writer the writer
> * @param options the save options.
> */
> void save(Writer writer, Map<?, ?> options) throws IOException;
>
>
> Michael Burkhardt wrote:
>> Hello *,
>>
>> I have a tree of EObjects and want to serialize them. Within a XMI
>> file is a description of my model. I read about serialize EObjects to
>> String by using XMI, but I did'nt found any tutorial, which describes
>> this transformation.
>>
>> Has anybody an idea how to do this?
>>
>> Ciao, Micha
|
|
|
Re: serialized EObjects with xmi [message #428910 is a reply to message #428907] |
Wed, 01 April 2009 16:28 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Micha,
I did answer that question though didn't I? I.e., save to a
StringWriter. Or am I still missing the point?
Michael Burkhardt wrote:
> Hi Ed,
>
> I don't mean java.io.Serializeable. It would be great, if the XMI file
> would be used to create a String. In the XMI are information about
> concat and describe EObject as String.
>
> Ciao, Micha
>
> --- Original-Nachricht ---
> Absender: Ed Merks
> Datum: 01.04.2009 15:17
>> Micha,
>>
>> I'm not sure if you were talking about java.io.Serializeable as
>> Palash assumed. Maybe this answers your question:
>> < http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 8706.html>
>>
>>
>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 8706.html
>>
>> Of course XML resource has this method so you can use a string writer
>> directly with that to save to an in-memory string.
>>
>> /**
>> * Saves the resource to the writer using the specified options.
>> * @param writer the writer
>> * @param options the save options.
>> */
>> void save(Writer writer, Map<?, ?> options) throws IOException;
>>
>>
>> Michael Burkhardt wrote:
>>> Hello *,
>>>
>>> I have a tree of EObjects and want to serialize them. Within a XMI
>>> file is a description of my model. I read about serialize EObjects
>>> to String by using XMI, but I did'nt found any tutorial, which
>>> describes this transformation.
>>>
>>> Has anybody an idea how to do this?
>>>
>>> Ciao, Micha
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04266 seconds