Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Namespace reference(Unknown reference)
icon4.gif  Namespace reference [message #506687] Fri, 08 January 2010 18:38 Go to next message
BALLESTA Mising name is currently offline BALLESTA Mising name
Messages: 6
Registered: July 2009
Location: Paris
Junior Member
Hi,

I try to write an Entity/Relationship metamodel in a file named "mm_ER.emf" :

=============================
@namespace(uri="mm_ER",
prefix="mm_ER")

package mm_ER;

// Simplified Entity/Relationship meta model
class mm_ER {
attr String name;
attr String description;
val Entity[*]#model entites;
}
...

=============================


I get a Warning Description in Problems Tag:
"The opposite of the opposite may not be a reference different from this one"

The folowing lines are underlined in orange:
"@namespace(uri="mm_ER",
prefix="mm_ER")

package mm_ER;
"

I do not have a clear understanding of namespaces and prefixes in Epsilon; where coumld i find some explanations.

Best regards
Bernard

Re: Namespace reference [message #506798 is a reply to message #506687] Sun, 10 January 2010 10:51 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
Hi Bernard,

You're most likely getting this warning because the "model" reference in
your Entity class doesn't define an opposite (it should be "entites" so
that opposites match).

Namespaces and prefixes do not seem to be related to this problem and in
fact they are EMF concepts (Emfatic - the notation you use in your .emf
files - is a textual syntax for EMF Ecore and is developed independently
of Epsilon).

If the problem persists, please send me your .emf file so that I can
have a closer.

Cheers,
Dimitris

On 08/01/2010 18:38, BALLESTA wrote:
> Hi,
>
> I try to write an Entity/Relationship metamodel in a file named
> "mm_ER.emf" :
>
> =============================
> @namespace(uri="mm_ER", prefix="mm_ER")
>
> package mm_ER;
>
> // Simplified Entity/Relationship meta model class mm_ER {
> attr String name;
> attr String description;
> val Entity[*]#model entites;
> }
> ..
> =============================
>
>
> I get a Warning Description in Problems Tag:
> "The opposite of the opposite may not be a reference different from this
> one"
>
> The folowing lines are underlined in orange:
> "@namespace(uri="mm_ER", prefix="mm_ER")
>
> package mm_ER;"
>
> I do not have a clear understanding of namespaces and prefixes in
> Epsilon; where coumld i find some explanations.
>
> Best regards Bernard
>
>
Re: Namespace reference - .inconsistant emf references [message #506821 is a reply to message #506798] Sun, 10 January 2010 13:40 Go to previous messageGo to next message
BALLESTA Mising name is currently offline BALLESTA Mising name
Messages: 6
Registered: July 2009
Location: Paris
Junior Member
Dimitris,

Thank you for your fast answer,
the problem was effectively on my side, due to inconsistents references in .emf file.

Cheers,
Bernard
Re: Namespace reference - .inconsistant emf references [message #584603 is a reply to message #506798] Sun, 10 January 2010 13:40 Go to previous message
BALLESTA Mising name is currently offline BALLESTA Mising name
Messages: 6
Registered: July 2009
Location: Paris
Junior Member
Dimitris,

Thank you for your fast answer,
the problem was effectively on my side, due to inconsistents references in .emf file.

Cheers,
Bernard
Previous Topic:Namespace reference
Next Topic:Problem calling Native java code
Goto Forum:
  


Current Time: Sun Sep 21 20:09:16 GMT 2014

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

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