Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFCore](Using EMFStore without RCP )
[EMFCore] [message #1016506] Wed, 06 March 2013 12:07 Go to next message
Eclipse UserFriend
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: [EMFCore] [message #1016662 is a reply to message #1016506] Thu, 07 March 2013 04:49 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you can use EMFStore without the provided UI. There is example code on
how to use EMFStore headless here:
http://eclipse.org/emfstore/documentation/howToUseExamples.php
You could also directly access the Server by XmlRPC, but I think it is a
lot simpler to use the client-side API.

Cheers,
Maximilian

Am 07.03.2013 02:36, schrieb Shiv Reddy:
> 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
>




--
Maximilian Kögel

Get Professional Eclipse Support: http://eclipsesource.com/munich
Re: [EMFCore] [message #1016768 is a reply to message #1016662] Thu, 07 March 2013 10:58 Go to previous messageGo to next message
Eclipse UserFriend
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

Re: [EMFStore] [message #1016805 is a reply to message #1016768] Thu, 07 March 2013 13:00 Go to previous message
Eclipse UserFriend
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
Previous Topic:[EMFatic] Link emfatic file with ecore file
Next Topic:[Texo] using Texo + Eclipselink in a J2SE environment
Goto Forum:
  


Current Time: Tue Jul 22 15:24:44 EDT 2025

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

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

Back to the top