I agree with Paolo, specification should be inherited, but only if u are trying to create a new specification, it instead u are trying to create a class that is built to that specification u should use 'realize' (which doesn't inherit the stereotype). For that purpose, the 'IsSpecification' property should also be inherited.
Alexander, I'm not clear on what you are saying here. Your words seem a bit self-contradictory.
Are you saying that for normal inheritance (Generalization),
IsSpecification should inherit, and for Realization (the creation of a client according to the supplied specification),
IsSpecification shouldn't inherit? If you are, then I agree.
I remember that discussion about stereotype inheritance, i would like to know if u (Paolo) have been working to build something to implement this in EA and the problems you've discovered. If there is a topic where u have continue discussing this, can u point me to it?
The discussion on inheritability of stereotypes is found here:
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=UMLPRO;action=display;num=1115649626Additional discussions on multiple inheritance are found here:
http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=UMLPRO;action=display;num=1118716834;start=0#0I have been working on some things, which may or may not be of interest to you.
The issue is compounded by EA's (self-)inconsistent behaviour when creating Generalization links. Thomas Kilian was the first to raise the question as to whether EA has been built using OO principles, but he only beat me to it by a couple of days.
The way in which EA implements multiple stereotypes also doesn't help...
As it happens, based on my experiences over the last few weeks I was about to publish some thoughts on the questions of Generalization, Realization, Parameterized Classes, UML 2 Templates and so on.
If you are interested I can start a new thread on these.
Cheerz,
Paolo