Home » Modeling » EMF » [CDO] Export feature
| |
Re: [CDO] Export feature [message #422023 is a reply to message #422020] |
Wed, 20 August 2008 13:00 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Ed,
thanks for your insight. What you comment makes much sense, however,
AFAIK CDOResourceImpl does not extend XMIResourceImpl, extends
EObject(Impl). So maybe things would be a little bit more complicated.
Maybe an adapter?
Ed Merks escribió:
> Víctor,
>
> I imagine for both CDO and Teneo, that if their specialized resource
> implementations extended XMIResourceImpl then potentially they could
> support XMI/XML serialization based on options passed to save. Perhaps
> I oversimplify... And unfortunately the create methods like
> createXMLHelper and such aren't passed the options, but I'd be willing
> look at refactoring this in the base to support downstream efforts
> though...
>
>
> Víctor Roldán Betancort wrote:
>> Hi Eike, Simon and others,
>>
>> quick question. There is import feature in CDO. Is there export
>> feature? (create an XMI serialization from the database data). Could
>> this be raised as an enhancement feature?
>>
>> Kind regards,
>> ViK.
|
|
|
Re: [CDO] Export feature [message #422025 is a reply to message #422023] |
Wed, 20 August 2008 13:15 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Víctor,
Oh yeah, I forgot he wanted a resource to be an EObject...
XMLHelperImpl.saveString is a closely guarded secret...
Víctor Roldán Betancort wrote:
> Ed,
>
> thanks for your insight. What you comment makes much sense, however,
> AFAIK CDOResourceImpl does not extend XMIResourceImpl, extends
> EObject(Impl). So maybe things would be a little bit more complicated.
> Maybe an adapter?
>
> Ed Merks escribió:
>> Víctor,
>>
>> I imagine for both CDO and Teneo, that if their specialized resource
>> implementations extended XMIResourceImpl then potentially they could
>> support XMI/XML serialization based on options passed to save.
>> Perhaps I oversimplify... And unfortunately the create methods like
>> createXMLHelper and such aren't passed the options, but I'd be
>> willing look at refactoring this in the base to support downstream
>> efforts though...
>>
>>
>> Víctor Roldán Betancort wrote:
>>> Hi Eike, Simon and others,
>>>
>>> quick question. There is import feature in CDO. Is there export
>>> feature? (create an XMI serialization from the database data). Could
>>> this be raised as an enhancement feature?
>>>
>>> Kind regards,
>>> ViK.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: [CDO] Export feature [message #422035 is a reply to message #422025] |
Wed, 20 August 2008 15:07 |
|
Hey guys,
Yes, CDOResourceImpl is rather an EObjectImpl than an XMIResourceImpl. I
feel that it is simpler to just copy the needed objects into a real
XMIResourceImpl and save that one to a file. Just as with the importer.
Is that ok?
Cheers
/Eike
Ed Merks schrieb:
> Víctor,
>
> Oh yeah, I forgot he wanted a resource to be an EObject...
> XMLHelperImpl.saveString is a closely guarded secret...
>
>
> Víctor Roldán Betancort wrote:
>> Ed,
>>
>> thanks for your insight. What you comment makes much sense, however,
>> AFAIK CDOResourceImpl does not extend XMIResourceImpl, extends
>> EObject(Impl). So maybe things would be a little bit more
>> complicated. Maybe an adapter?
>>
>> Ed Merks escribió:
>>> Víctor,
>>>
>>> I imagine for both CDO and Teneo, that if their specialized resource
>>> implementations extended XMIResourceImpl then potentially they could
>>> support XMI/XML serialization based on options passed to save.
>>> Perhaps I oversimplify... And unfortunately the create methods like
>>> createXMLHelper and such aren't passed the options, but I'd be
>>> willing look at refactoring this in the base to support downstream
>>> efforts though...
>>>
>>>
>>> Víctor Roldán Betancort wrote:
>>>> Hi Eike, Simon and others,
>>>>
>>>> quick question. There is import feature in CDO. Is there export
>>>> feature? (create an XMI serialization from the database data).
>>>> Could this be raised as an enhancement feature?
>>>>
>>>> Kind regards,
>>>> ViK.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Export feature [message #422036 is a reply to message #422035] |
Wed, 20 August 2008 15:11 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Eike,
thanks perfect for me. It might be an interesting enhancement. Shall I
raise a bugzilla?
Eike Stepper escribió:
> Hey guys,
>
> Yes, CDOResourceImpl is rather an EObjectImpl than an XMIResourceImpl. I
> feel that it is simpler to just copy the needed objects into a real
> XMIResourceImpl and save that one to a file. Just as with the importer.
> Is that ok?
>
> Cheers
> /Eike
>
>
> Ed Merks schrieb:
>> Víctor,
>>
>> Oh yeah, I forgot he wanted a resource to be an EObject...
>> XMLHelperImpl.saveString is a closely guarded secret...
>>
>>
>> Víctor Roldán Betancort wrote:
>>> Ed,
>>>
>>> thanks for your insight. What you comment makes much sense, however,
>>> AFAIK CDOResourceImpl does not extend XMIResourceImpl, extends
>>> EObject(Impl). So maybe things would be a little bit more
>>> complicated. Maybe an adapter?
>>>
>>> Ed Merks escribió:
>>>> Víctor,
>>>>
>>>> I imagine for both CDO and Teneo, that if their specialized resource
>>>> implementations extended XMIResourceImpl then potentially they could
>>>> support XMI/XML serialization based on options passed to save.
>>>> Perhaps I oversimplify... And unfortunately the create methods like
>>>> createXMLHelper and such aren't passed the options, but I'd be
>>>> willing look at refactoring this in the base to support downstream
>>>> efforts though...
>>>>
>>>>
>>>> Víctor Roldán Betancort wrote:
>>>>> Hi Eike, Simon and others,
>>>>>
>>>>> quick question. There is import feature in CDO. Is there export
>>>>> feature? (create an XMI serialization from the database data).
>>>>> Could this be raised as an enhancement feature?
>>>>>
>>>>> Kind regards,
>>>>> ViK.
|
|
|
Re: [CDO] Export feature [message #422039 is a reply to message #422036] |
Wed, 20 August 2008 15:18 |
|
Víctor Roldán Betancort schrieb:
> Eike,
>
> thanks perfect for me. It might be an interesting enhancement. Shall I
> raise a bugzilla?
Of course!
And don't forget the patch ;-)
Later...
Cheers
/Eike
>
> Eike Stepper escribió:
>> Hey guys,
>>
>> Yes, CDOResourceImpl is rather an EObjectImpl than an
>> XMIResourceImpl. I feel that it is simpler to just copy the needed
>> objects into a real XMIResourceImpl and save that one to a file. Just
>> as with the importer. Is that ok?
>>
>> Cheers
>> /Eike
>>
>>
>> Ed Merks schrieb:
>>> Víctor,
>>>
>>> Oh yeah, I forgot he wanted a resource to be an EObject...
>>> XMLHelperImpl.saveString is a closely guarded secret...
>>>
>>>
>>> Víctor Roldán Betancort wrote:
>>>> Ed,
>>>>
>>>> thanks for your insight. What you comment makes much sense,
>>>> however, AFAIK CDOResourceImpl does not extend XMIResourceImpl,
>>>> extends EObject(Impl). So maybe things would be a little bit more
>>>> complicated. Maybe an adapter?
>>>>
>>>> Ed Merks escribió:
>>>>> Víctor,
>>>>>
>>>>> I imagine for both CDO and Teneo, that if their specialized
>>>>> resource implementations extended XMIResourceImpl then potentially
>>>>> they could support XMI/XML serialization based on options passed
>>>>> to save. Perhaps I oversimplify... And unfortunately the create
>>>>> methods like createXMLHelper and such aren't passed the options,
>>>>> but I'd be willing look at refactoring this in the base to support
>>>>> downstream efforts though...
>>>>>
>>>>>
>>>>> Víctor Roldán Betancort wrote:
>>>>>> Hi Eike, Simon and others,
>>>>>>
>>>>>> quick question. There is import feature in CDO. Is there export
>>>>>> feature? (create an XMI serialization from the database data).
>>>>>> Could this be raised as an enhancement feature?
>>>>>>
>>>>>> Kind regards,
>>>>>> ViK.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO] Export contents to XMI [message #422081 is a reply to message #422039] |
Thu, 21 August 2008 11:13 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
Bug created: "Export resource to XMI"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244801
Eike Stepper escribió:
> Víctor Roldán Betancort schrieb:
>> Eike,
>>
>> thanks perfect for me. It might be an interesting enhancement. Shall I
>> raise a bugzilla?
> Of course!
> And don't forget the patch ;-)
> Later...
>
> Cheers
> /Eike
>
>
>>
>> Eike Stepper escribió:
>>> Hey guys,
>>>
>>> Yes, CDOResourceImpl is rather an EObjectImpl than an
>>> XMIResourceImpl. I feel that it is simpler to just copy the needed
>>> objects into a real XMIResourceImpl and save that one to a file. Just
>>> as with the importer. Is that ok?
>>>
>>> Cheers
>>> /Eike
>>>
>>>
>>> Ed Merks schrieb:
>>>> Víctor,
>>>>
>>>> Oh yeah, I forgot he wanted a resource to be an EObject...
>>>> XMLHelperImpl.saveString is a closely guarded secret...
>>>>
>>>>
>>>> Víctor Roldán Betancort wrote:
>>>>> Ed,
>>>>>
>>>>> thanks for your insight. What you comment makes much sense,
>>>>> however, AFAIK CDOResourceImpl does not extend XMIResourceImpl,
>>>>> extends EObject(Impl). So maybe things would be a little bit more
>>>>> complicated. Maybe an adapter?
>>>>>
>>>>> Ed Merks escribió:
>>>>>> Víctor,
>>>>>>
>>>>>> I imagine for both CDO and Teneo, that if their specialized
>>>>>> resource implementations extended XMIResourceImpl then potentially
>>>>>> they could support XMI/XML serialization based on options passed
>>>>>> to save. Perhaps I oversimplify... And unfortunately the create
>>>>>> methods like createXMLHelper and such aren't passed the options,
>>>>>> but I'd be willing look at refactoring this in the base to support
>>>>>> downstream efforts though...
>>>>>>
>>>>>>
>>>>>> Víctor Roldán Betancort wrote:
>>>>>>> Hi Eike, Simon and others,
>>>>>>>
>>>>>>> quick question. There is import feature in CDO. Is there export
>>>>>>> feature? (create an XMI serialization from the database data).
>>>>>>> Could this be raised as an enhancement feature?
>>>>>>>
>>>>>>> Kind regards,
>>>>>>> ViK.
|
|
|
Re: [CDO] Export contents to XMI [message #422204 is a reply to message #422081] |
Mon, 25 August 2008 14:58 |
Victor Roldan Betancort Messages: 524 Registered: July 2009 |
Senior Member |
|
|
A patch has been submitted to bugzilla.
Víctor Roldán Betancort escribió:
> Bug created: "Export resource to XMI"
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=244801
>
> Eike Stepper escribió:
>> Víctor Roldán Betancort schrieb:
>>> Eike,
>>>
>>> thanks perfect for me. It might be an interesting enhancement. Shall
>>> I raise a bugzilla?
>> Of course!
>> And don't forget the patch ;-)
>> Later...
>>
>> Cheers
>> /Eike
>>
>>
>>>
>>> Eike Stepper escribió:
>>>> Hey guys,
>>>>
>>>> Yes, CDOResourceImpl is rather an EObjectImpl than an
>>>> XMIResourceImpl. I feel that it is simpler to just copy the needed
>>>> objects into a real XMIResourceImpl and save that one to a file.
>>>> Just as with the importer. Is that ok?
>>>>
>>>> Cheers
>>>> /Eike
>>>>
>>>>
>>>> Ed Merks schrieb:
>>>>> Víctor,
>>>>>
>>>>> Oh yeah, I forgot he wanted a resource to be an EObject...
>>>>> XMLHelperImpl.saveString is a closely guarded secret...
>>>>>
>>>>>
>>>>> Víctor Roldán Betancort wrote:
>>>>>> Ed,
>>>>>>
>>>>>> thanks for your insight. What you comment makes much sense,
>>>>>> however, AFAIK CDOResourceImpl does not extend XMIResourceImpl,
>>>>>> extends EObject(Impl). So maybe things would be a little bit more
>>>>>> complicated. Maybe an adapter?
>>>>>>
>>>>>> Ed Merks escribió:
>>>>>>> Víctor,
>>>>>>>
>>>>>>> I imagine for both CDO and Teneo, that if their specialized
>>>>>>> resource implementations extended XMIResourceImpl then
>>>>>>> potentially they could support XMI/XML serialization based on
>>>>>>> options passed to save. Perhaps I oversimplify... And
>>>>>>> unfortunately the create methods like createXMLHelper and such
>>>>>>> aren't passed the options, but I'd be willing look at refactoring
>>>>>>> this in the base to support downstream efforts though...
>>>>>>>
>>>>>>>
>>>>>>> Víctor Roldán Betancort wrote:
>>>>>>>> Hi Eike, Simon and others,
>>>>>>>>
>>>>>>>> quick question. There is import feature in CDO. Is there export
>>>>>>>> feature? (create an XMI serialization from the database data).
>>>>>>>> Could this be raised as an enhancement feature?
>>>>>>>>
>>>>>>>> Kind regards,
>>>>>>>> ViK.
|
|
|
Goto Forum:
Current Time: Tue Apr 23 08:20:40 GMT 2024
Powered by FUDForum. Page generated in 0.04000 seconds
|