[EMF Model] XMI namespace URI [message #1413325] |
Thu, 28 August 2014 09:21 |
|
Hi,
Discalimer: This might be an XMI question more than en Epsilon one.
Does Epsilon has any control over how the xmi namesapce URIs are stored in the a generated model?
I was assuming that if configured the launch configuration to use a metamodel file instead of an URI, the xmi model whould have the namespace pointing to this file rather than the URI of the metamodel. However, the model uses the URI of the metamodel and sice this URI is not registered in Eclipse, I can't load this model using any of the editors.
Any ideas?
Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
|
|
|
Re: [EMF Model] XMI namespace URI [message #1413339 is a reply to message #1413325] |
Thu, 28 August 2014 09:53 |
Ed Merks Messages: 33155 Registered: July 2009 |
Senior Member |
|
|
Horacio,
EMF always uses the nsURI of the EPackage in the serialization. However,
you can include an associated schema location for it:
https://wiki.eclipse.org/EMF/FAQ#How_can_I_ensure_that_an_xsi:schemaLocation_is_serialized_for_my_packages.3F
In the latest version of EMF (2.10), you can us an annotation like this
on the EPackage:
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="schemaLocation" value="..."/>
</eAnnotations>
Here the "..." is the physical location of the model. I.e., the latest
version of EMF will generate the overrides describe in the FAQ.
On 28/08/2014 11:21 AM, Horacio Hoyos wrote:
> Hi,
>
> Discalimer: This might be an XMI question more than en Epsilon one.
>
> Does Epsilon has any control over how the xmi namesapce URIs are
> stored in the a generated model?
>
> I was assuming that if configured the launch configuration to use a
> metamodel file instead of an URI, the xmi model whould have the
> namespace pointing to this file rather than the URI of the metamodel.
> However, the model uses the URI of the metamodel and sice this URI is
> not registered in Eclipse, I can't load this model using any of the
> editors.
> Any ideas?
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.04069 seconds