Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Export feature
[CDO] Export feature [message #422017] Wed, 20 August 2008 12:20 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
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 #422020 is a reply to message #422017] Wed, 20 August 2008 12:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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 #422023 is a reply to message #422020] Wed, 20 August 2008 13:00 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 #422036 is a reply to message #422035] Wed, 20 August 2008 15:11 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
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 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 #422081 is a reply to message #422039] Thu, 21 August 2008 11:13 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
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 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
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.
Previous Topic:Problem when copying both a model (stereotypes) and its meta-model (profile definition)
Next Topic:Problem opening genmodel file in the Eclipse editor
Goto Forum:
  


Current Time: Tue Apr 23 08:20:40 GMT 2024

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

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

Back to the top