[EMFCore] [message #1016506] |
Wed, 06 March 2013 12:07  |
Eclipse User |
|
|
|
Hi,
Can i use EMFStore without the RCP way?
i.e. Can i just send xmi and corresponding ecore to the EMFStore so it can validate the xmi against the given ecore and persist the model
Its not for lack of trying i have not found much help on web searches.
Thanks
Shiv
[Updated on: Thu, 07 March 2013 00:20] by Moderator
|
|
|
|
|
Re: [EMFStore] [message #1016805 is a reply to message #1016768] |
Thu, 07 March 2013 13:00  |
Eclipse User |
|
|
|
Hi Shiv,
you can load an XMI-File with EMF as is. Once it is loaded you could add
the EObjects loaded from the Cmi to an EMFStore project as shown in the
tutorial.
Cheers,
Maximilian
Am 07.03.2013 16:58, schrieb Shiv Reddy:
> Hi Maximilian,
>
> I have gone through all the tutorials, my requirement is a little
> different.
>
> As per the tutorial i see the Objects are created as shown below
>
> League league1 = BowlingFactory.eINSTANCE.createLeague();
> league1.setName("league");
> league1.getPlayers().add(createPlayer("no. 1"));
> league1.getPlayers().add(createPlayer("no. 2"));
> project1.getProject().addModelElement(league1);
>
> I would never have a predefined object, i would rather get a ecore
> metamodel and corresponding xmi model that i wish to persist in EMFStore.
>
>
> What i would want is a wrapper on the EMFStore server that would process
> this xmi, validate against the ecore and persist.
>
> Looked at dynamic EMF but couldn't figure out how to go from ecore/xmi
> to EObjects in EMFStore
>
> Shiv
>
>
--
Maximilian Kögel
Get Professional Eclipse Support: http://eclipsesource.com/munich
|
|
|
Powered by
FUDForum. Page generated in 0.21860 seconds