Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Difference between eSuperTypes and eAllSuperTypes(usage and difference between eSuperTypes and eAllSuperTypes)
Difference between eSuperTypes and eAllSuperTypes [message #1110482] Tue, 17 September 2013 00:08 Go to next message
Daniel Tahin is currently offline Daniel TahinFriend
Messages: 27
Registered: July 2013
Junior Member
Hi all,

i have unclarity about the usage of the Ecore functions.
To get the superclasses of a class, i can use eSuperTypes or eAllSuperTypes. Do you know, what is the difference between them?
I found only these (http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EClass.html), (http://help.eclipse.org/indigo/topic/org.eclipse.acceleo.doc/doc/html/ocl_operation_reference.html).

Many thanks,
Daniel
Re: Difference between eSuperTypes and eAllSuperTypes [message #1110561 is a reply to message #1110482] Tue, 17 September 2013 03:13 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 849
Registered: July 2009
Senior Member
Daniel,

Questions about Ecore are best asked on the EMF newsgroup (which I have
copied in this reply).

The eSuperTypes is the list of direct general EClasses. The
eAllSuperTypes list is the closure of all ancestor types: it is
recursively the supertypes, supertypes of those supertypes, etc.

HTH,

Christian


On 2013-09-17 00:08:15 +0000, Daniel Tahin said:

> Hi all,
>
> i have unclarity about the usage of the Ecore functions.
> To get the superclasses of a class, i can use eSuperTypes or
> eAllSuperTypes. Do you know, what is the difference between them?
> I found only these
> (http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EClass.html),
> (http://help.eclipse.org/indigo/topic/org.eclipse.acceleo.doc/doc/html/ocl_operation_reference.html).
>
>
> Many thanks,
> Daniel
Re: Difference between eSuperTypes and eAllSuperTypes [message #1111206 is a reply to message #1110561] Tue, 17 September 2013 23:56 Go to previous message
Daniel Tahin is currently offline Daniel TahinFriend
Messages: 27
Registered: July 2013
Junior Member
Thanks. I got the same result, becuase i had a hierarchy with only 2 levels Smile



Christian W. Damus wrote on Mon, 16 September 2013 23:13
Daniel,

Questions about Ecore are best asked on the EMF newsgroup (which I have
copied in this reply).

The eSuperTypes is the list of direct general EClasses. The
eAllSuperTypes list is the closure of all ancestor types: it is
recursively the supertypes, supertypes of those supertypes, etc.

HTH,

Christian


On 2013-09-17 00:08:15 +0000, Daniel Tahin said:

> Hi all,
>
> i have unclarity about the usage of the Ecore functions.
> To get the superclasses of a class, i can use eSuperTypes or
> eAllSuperTypes. Do you know, what is the difference between them?
> I found only these
> (http://download.eclipse.org/modeling/emf/emf/javadoc/2.9.0/org/eclipse/emf/ecore/EClass.html),
> (http://help.eclipse.org/indigo/topic/org.eclipse.acceleo.doc/doc/html/ocl_operation_reference.html).
>
>
> Many thanks,
> Daniel

Previous Topic:Debugging during code generation
Next Topic:[Acceleo] NullPointer when executing junit test from maven
Goto Forum:
  


Current Time: Tue Dec 23 03:58:07 GMT 2014

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

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