[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.stp.sca-tools] Re: ecore model instance

Hi,

now I tried loading the XML using the Ecore mechanism. Unfortunately it failed. When using the ScaResourceImpl I get into trouble since the implementation can't hanlde the eclipse "platform" scheme (java.net.MalformedURLException: unknown protocol: platform).

As an alternativ I tried the defualt XMLResourceImpl which inturn can't load the composite root element (Class 'composite' not found).

What's the right way to load the ".composite" XML file?

Regards,
Mischa



"Stephane Drapeau" <Stephane.Drapeau@xxxxxxx> schrieb im Newsbeitrag news:49AC06BC.809@xxxxxxxxxx
Mischa a écrit :
Hi all,

is it possible to access a SCA model instance in a "Ecore like" way (SCA meta model is already defined using EMF)? Currently I have a "xyz.composite" xml file conforming to the http://www.osoa.org/xmlns/sca/1.0 namespace.
A xyz.ecore / xyz.xmi would be great, in particular to apply the oAW generator framework.


Thanks in advance,

Mischa

Hi,

The EMF meta model of SCA (.ecore + .genmodel + java code) is defined and available in the plugin org.eclipse.stp.sca. So, I think that you have all you need to parse an SCA model with the oAW generator. Compared to an XMI model, remember that an XML model has a root element named "DocumentRoot".

I successfully tried with Acceleo (a great code generator).

Stephane Drapeau
Obeo