Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » eSuperTypes vs. eGenericSuperTypes
eSuperTypes vs. eGenericSuperTypes [message #429152] Fri, 10 April 2009 06:43 Go to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
Hello,

I am using COPE to migrate a model which is on the meta level. while saving
I am getting the strange behavior that a referenced ecore model gets
modified while it shouldn't. the problem seems to be within emf itself.

COPE uses the reflective interfaces of the meta level (EClass,
EReference...) to operate on EObjects. when operating on an ecore model an
EClass EObject has the References eSuperTypes as well as
eGenericSuperTypes. Because both are not set to IS_DERIVED an other EClass
is added to them. In my opinion eSuperTypes should be set to isDerived as
it is documentated in the user doc of EClass.getESuperTypes(). In addition
both should be set to unique because a double addition of a EClass EObject
is possible (first with eSuperTypes then with eGenericSuperTypes) which
results to validation errors when generating a GenModel of it.

Best Regards

Enrico
Re: eSuperTypes vs. eGenericSuperTypes [message #429153 is a reply to message #429152] Fri, 10 April 2009 07:01 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Enrico,

On Aug. 8th, 2007 I asked a similar question here (subject:
eGenericSuperTypes).
Perhaps that thread has some answers for you?

Cheers
/Eike

----
http://thegordian.blogspot.com



Enrico Schnepel schrieb:
> Hello,
>
> I am using COPE to migrate a model which is on the meta level. while saving
> I am getting the strange behavior that a referenced ecore model gets
> modified while it shouldn't. the problem seems to be within emf itself.
>
> COPE uses the reflective interfaces of the meta level (EClass,
> EReference...) to operate on EObjects. when operating on an ecore model an
> EClass EObject has the References eSuperTypes as well as
> eGenericSuperTypes. Because both are not set to IS_DERIVED an other EClass
> is added to them. In my opinion eSuperTypes should be set to isDerived as
> it is documentated in the user doc of EClass.getESuperTypes(). In addition
> both should be set to unique because a double addition of a EClass EObject
> is possible (first with eSuperTypes then with eGenericSuperTypes) which
> results to validation errors when generating a GenModel of it.
>
> Best Regards
>
> Enrico
>


Previous Topic:Operations in XML Schema Not Translating
Next Topic:confused about when a resource and resourceSet are associated
Goto Forum:
  


Current Time: Thu Apr 25 15:11:45 GMT 2024

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

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

Back to the top