AdrianoKF
AdrianoKF

Reputation: 3021

UML2 class diagram - embedded notation for generalization?

Enterprise Architect offers an embedded textual notation for generalization relationships by putting the name of the associated classifier into the top right corner of the specializing classifier in italics. The EA UML2 tutorial lists

Test

as an equivalent alternative to the usual notation

Test
(source: sparxsystems.com)

I was wondering if this visual presentation is specific to EA, or if the UML specification has anything to say about this. Neither the sections on Generalization nor Class/Classifiers in the UML infrastructure contain any pointers in this direction.

Upvotes: 7

Views: 351

Answers (2)

BobRodes
BobRodes

Reputation: 6175

I haven't seen the first notation anywhere in the OMG specs. I'm pretty sure it isn't a UML standard.

It seems of limited use to me as well, given that multiple shapes (and if you don't have multiple shapes, you don't have anything to generalize from the shapes and therefore no reason for a generalization) will have the base class redundantly specified in all the subclasses. On the other hand, it could be a useful shorthand in a situation where it makes sense to diagram out only one member of a specialization set.

Upvotes: 1

qwerty_so
qwerty_so

Reputation: 36333

Page 84 of UML Infrastructure Specification, v2.3: Notation The name of an abstract Classifier is shown in italics.

Upvotes: 2

Related Questions