Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Why can a stereotype extend a stereotype in profile in papyrus
Why can a stereotype extend a stereotype in profile in papyrus [message #1849116] Tue, 04 January 2022 16:04 Go to next message
Jingliu Xiong is currently offline Jingliu XiongFriend
Messages: 14
Registered: August 2021
Junior Member
A stereotype cannot be used by itself, but must always be used with one of the metaclasses it extends. Stereotype cannot be extended by another stereotype in UML doc. But in Papyrus, it can.
Btw, does the import of metaclass only support the import of metaclass in UML?
Re: Why can a stereotype extend a stereotype in profile in papyrus [message #1849117 is a reply to message #1849116] Tue, 04 January 2022 16:26 Go to previous messageGo to next message
Carsten Pitz is currently offline Carsten PitzFriend
Messages: 495
Registered: May 2015
Location: Germany
Senior Member
Hi,
I am not aware of any constraint stated within the OMG UML 2.5.1 specification, that forbids a stereotype to extend another stereotype, what does not imply no such contraint exits.
So can you please cite the text fragment you refer to?
On that base we can base further discussion.
/Carsten

[Updated on: Tue, 04 January 2022 16:35]

Report message to a moderator

Re: Why can a stereotype extend a stereotype in profile in papyrus [message #1849119 is a reply to message #1849117] Tue, 04 January 2022 19:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Hi

Stereotypes would be very very limiting if inheritance was not available to support polymorphic families of behavior. I think you have misread something.

Regards

Ed Willink
Re: Why can a stereotype extend a stereotype in profile in papyrus [message #1849122 is a reply to message #1849117] Wed, 05 January 2022 01:52 Go to previous messageGo to next message
Jingliu Xiong is currently offline Jingliu XiongFriend
Messages: 14
Registered: August 2021
Junior Member
When I use a tool called starUml, I find stereotype can not be extended by stereotype. I am reading uml 2.5.0 doc now.
This is a ref indicates that stereotype cannot be extended by stereotype.
https://www.uml-diagrams.org/stereotype.html#:~:text=Stereotype%20cannot%20be%20extended%20by,for%20the%20extended%20model%20element.
Re: Why can a stereotype extend a stereotype in profile in papyrus [message #1849123 is a reply to message #1849119] Wed, 05 January 2022 01:53 Go to previous messageGo to next message
Jingliu Xiong is currently offline Jingliu XiongFriend
Messages: 14
Registered: August 2021
Junior Member
I think it should be extended, too. I am reading realted doc now.
Re: Why can a stereotype extend a stereotype in profile in papyrus [message #1849144 is a reply to message #1849123] Wed, 05 January 2022 10:19 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 470
Registered: March 2011
Location: Paris Saclay, France
Senior Member
A stereotype may not extend another stereotype (but generalization is possible, as Ed pointed out). If you validate such a profile with Papyrus, you get an error [1]. It can be discussed whether the tool should prevent you to create an invalid relationship (I tend to say yes) or the current permissive behavior with a validation error afterwards is ok.

[1] Error The opposite features 'metaclass' of '<Extension> E_StaticClassifier_Synchronized53' and 'extension' of '<Stereotype> Synchronized' do not refer to each other <Extension> E_StaticClassifier_Synchronized53 TestProfile EMF Problem
Re: Why can a stereotype extend a stereotype in profile in papyrus [message #1849145 is a reply to message #1849144] Wed, 05 January 2022 10:34 Go to previous message
Jingliu Xiong is currently offline Jingliu XiongFriend
Messages: 14
Registered: August 2021
Junior Member
I understand it, thank you.
Previous Topic: Is there any way to hide some unnecessary options in the properties interface
Next Topic:Class Tree Table and Label
Goto Forum:
  


Current Time: Wed Sep 25 19:29:34 GMT 2024

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

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

Back to the top