Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFCore](Using EMFStore without RCP )
[EMFCore] [message #1016506] Wed, 06 March 2013 17:07 Go to next message
Shiv Reddy is currently offline Shiv ReddyFriend
Messages: 2
Registered: March 2013
Junior Member
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 05:20]

Report message to a moderator

Re: [EMFCore] [message #1016662 is a reply to message #1016506] Thu, 07 March 2013 09:49 Go to previous messageGo to next message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 225
Registered: July 2009
Senior Member
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 15:58 Go to previous messageGo to next message
Shiv Reddy is currently offline Shiv ReddyFriend
Messages: 2
Registered: March 2013
Junior Member
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 18:00 Go to previous message
Maximilian Koegel is currently offline Maximilian KoegelFriend
Messages: 225
Registered: July 2009
Senior Member
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: Sat Dec 20 16:40:55 GMT 2014

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

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