Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [EMF Model] XMI namespace URI
[EMF Model] XMI namespace URI [message #1413325] Thu, 28 August 2014 09:21 Go to next message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 240
Registered: October 2009
Location: Mexico
Senior Member

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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
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/
Re: [EMF Model] XMI namespace URI [message #1413357 is a reply to message #1413339] Thu, 28 August 2014 10:54 Go to previous message
Horacio Hoyos is currently offline Horacio HoyosFriend
Messages: 240
Registered: October 2009
Location: Mexico
Senior Member

Hi Ed,

Thanks for the swift reply. I will give it a try for sure!

Regards,


Horacio Hoyos Rodriguez
Kinori Tech
Need professional support for Epsilon, EMF?
Go to: https://kinori.tech
Previous Topic:Use Java ENUM from eol
Next Topic:Model visibility in ETL-guard
Goto Forum:
  


Current Time: Fri Mar 29 06:01:47 GMT 2024

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

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

Back to the top