Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » getAppliedStereotypes()...
getAppliedStereotypes()... [message #45086] Wed, 28 November 2007 03:02 Go to next message
Eclipse UserFriend
Originally posted by: asma.charfi.com

Hi Christian, you find here Ed's answer about getAppliedstereotypes()....
a+

From: "Ed Merks" <merks@ca.ibm.com>
Newsgroups: eclipse.modeling.mdt.uml2
Sent: Tuesday, November 27, 2007 4:59 AM
Subject: Re: getAppliedStereotypes()...



> Ecore has no concept of stereotypes. EAnnotation is the closest analog
> and for that we have EModelElement.getEAnnotations(). So yes, it's only
> a UML concept.
>
> charfi asma wrote:
>> Hi,
>> getAppliedStereotypes() is a method of the class Element in UML
>> metamodel.
>>
>> did this method exsist in the metamoderl Ecore? I look for it in the
>> EObject, ENamedElement, EClass but I did not find it.
>>
>> there is no equivalent to this method in ecore, like part and other
>> method
>> that are only UML concept.
>>
>> is this right?
Re: getAppliedStereotypes()... [message #45125 is a reply to message #45086] Tue, 27 November 2007 18:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Uh, thanks, but I didn't ask because I know this already.

Is there some outstanding question w.r.t. OCL that this relates to?
Something that isn't working as expected?

Cheers,

Christian


charfi asma wrote:

> Hi Christian, you find here Ed's answer about getAppliedstereotypes()....
> a+
>
> From: "Ed Merks" <merks@ca.ibm.com>
> Newsgroups: eclipse.modeling.mdt.uml2
> Sent: Tuesday, November 27, 2007 4:59 AM
> Subject: Re: getAppliedStereotypes()...
>
>
>
>> Ecore has no concept of stereotypes. EAnnotation is the closest analog
>> and for that we have EModelElement.getEAnnotations(). So yes, it's only
>> a UML concept.
>>
>> charfi asma wrote:
>>> Hi,
>>> getAppliedStereotypes() is a method of the class Element in UML
>>> metamodel.
>>>
>>> did this method exsist in the metamoderl Ecore? I look for it in the
>>> EObject, ENamedElement, EClass but I did not find it.
>>>
>>> there is no equivalent to this method in ecore, like part and other
>>> method
>>> that are only UML concept.
>>>
>>> is this right?
Re: getAppliedStereotypes()... [message #45215 is a reply to message #45125] Wed, 28 November 2007 18:06 Go to previous message
Eclipse UserFriend
Originally posted by: asma.charfi.com

Hi,
I thought before, that this method is comming from ecore metamodel (you told
me in a previous message: "The
UML environment finds the getAppliedStereotype() operation because it is
defined in the Element Class in UML.metamodel.uml. The Ecore environment
also finds it because it is also defined in the Element EClass in
UML.ecore.... Of course getAppliedStereotype() isn't defined by the EClass
metaclass.
It's a UML construct. A more appropriate analogue in Ecore for UML's
Element interface would be either EObject or EModelElement, not EClass")
I did not understand that you talked about EAnnotations when you said "A
more appropriate analogue" :-)

I am sorry! any way thanks a lot for your help.
Asma

"Christian W. Damus" <cdamus@ca.ibm.com> a
Re: getAppliedStereotypes()... [message #45305 is a reply to message #45215] Wed, 28 November 2007 13:41 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Hi, Asma,

I think I understand, now. No need to apologize :-)

The labeling of this is always so hard to make clear, and I do tend to get
myself twisted into knots: is the "Element EClass" the "EClass element in
the Ecore metamodel" or the "EClass named 'Element' in the UML metamodel as
expressed in Ecore?" ;-)

cW

charfi asma wrote:

> Hi,
> I thought before, that this method is comming from ecore metamodel (you
> told me in a previous message: "The
> UML environment finds the getAppliedStereotype() operation because it is
> defined in the Element Class in UML.metamodel.uml. The Ecore environment
> also finds it because it is also defined in the Element EClass in
> UML.ecore.... Of course getAppliedStereotype() isn't defined by the EClass
> metaclass.
> It's a UML construct. A more appropriate analogue in Ecore for UML's
> Element interface would be either EObject or EModelElement, not EClass")
> I did not understand that you talked about EAnnotations when you said "A
> more appropriate analogue" :-)
>
> I am sorry! any way thanks a lot for your help.
> Asma

-----8<-----
Previous Topic:Re: [OCL Tools] downloads?
Next Topic:[Announce] MDT OCL 1.1.2 M200711281212 is available
Goto Forum:
  


Current Time: Tue Mar 19 03:12:54 GMT 2024

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

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

Back to the top