getAppliedStereotypes()... [message #45086] |
Wed, 28 November 2007 03:02 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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<-----
|
|
|
Powered by
FUDForum. Page generated in 0.04359 seconds