Hi *, 1. The Name In the UML metamodel, the name is part of the ModelElement, the Generalization extends the ModelElement, and the discriminator is added as an attribute to the Generalization. Nowhere in the UML standard, the name is shown on a diagram. I think that the intention of the UML standard is, that the name is not shown, since there would be no way to distinguish it from the discriminator. So, please do not add this to ArgoUML.
2. The stereotype In the model, Stereotypes can be attached to all ModelElements, hence also to a Generalization. However, I see no reference in the standard docs to showing stereotypes on Generalizations. Maybe we should allow showing stereotypes on the diagram. However, in the simplest implementation, that would mean that at all times, all stereotypes attached to Generalizations, are shown on the diagram. But the sharing feature of discriminator texts on the diagram would not apply to stereotypes. Currently, we do not have this sharing feature, but if we would, then diagrams would look ugly if you can not switch off showing stereotypes. So, I guess there was a reason for not showing stereotypes. I find no issue dealing with stereotypes on Generalizations yet. Regards, Michiel Thomas Neustupny wrote: > Hi, > > this is from the users list. In the code it says "UML spec for > Generalizations doesn't call for name or stereotype", but I peeked into the > spec and couldn't find a reason for not displaying the stereotype. The name > is called discriminator and is to be displayed, by the way. > > Any opinions? > > Thomas > > -------- Original-Nachricht -------- > >> Datum: Wed, 11 Mar 2009 03:14:12 +0100 >> Von: Thomas Grundmann <[email protected]> >> An: [email protected] >> Betreff: [argouml-users] Displaying Stereotyp for Generalizations >> > > >> Hello, >> >> my name is Thomas Grundmann. I'm studying computer science and for a >> current project I wanted to used agroUML to model it. My project is an >> XML Schema project. To model it, I created a profile for XML Schema that >> fits my wishes :) Among others it contains two stereotypes for >> generalizations (xs:restriction and xs:extension). Starting to map my >> current model, that I've already made with another tool, I dicovered >> that the stereotypes for generalizations are not displayed. Is there any >> possibility to enable the displaying of stereotypes for generalizations? >> If not, is it possible, to enable it for the stable 0.28 version? >> >> Regards, >> Thomas Grundmann >> >> ------------------------------------------------------ >> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=449&dsMessageId=1305865 >> >> To unsubscribe from this discussion, e-mail: >> [[email protected]]. >> > > ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=1320936 To unsubscribe from this discussion, e-mail: [[email protected]]. To be allowed to post to the list contact the mailing list moderator, email: [[email protected]]
