How to mark the multiplicity of a class?

195 views
Skip to first unread message

7.l...@gmail.com

unread,
May 7, 2016, 11:20:28 AM5/7/16
to StarUML
I want to display the multiplicity of a class at the right corner of the class icon. for example, to display 1 at the right hand corner of the class to mark as a singleton class. How can I do that using staruml?

StarUML

unread,
May 8, 2016, 11:28:58 PM5/8/16
to StarUML
Hi,

Is the notation specified in UML standard specification?

Thanks,
StarUML Team

2016년 5월 8일 일요일 오전 12시 20분 28초 UTC+9, 7.l...@gmail.com 님의 말:

Kenan Maraşlı

unread,
Nov 20, 2021, 4:25:52 PM11/20/21
to StarUML
Hello,

Yes, this is a standard specification if I am not wrong.

From OMG, UML Specification 2.5.1, 11.2.3.4 Multiplicities and topologies:

>  The multiplicities on ConnectableElements constrain the number of objects that may be created within an instance of the containing StructuredClassifier, according to the semantics of MultiplicityElement.

From the same specification,  11.2.4 Notation:

>  The multiplicity for a Property may also be shown as a multiplicity mark in the top right corner of the part box.

Additionally, from "The Unified Modeling Language User Guide" by Grady Booch, et al., Figure 9-6 Multiplicity.

09fig06.jpg

I suppose currently there is no support for this with StarUML Version 4.1.6.

Let me know if there is any way.

Sincerely,

Kenan

StarUML

unread,
Nov 21, 2021, 9:23:55 PM11/21/21
to StarUML
Hi Kenan,

Thank you for let us the information. Currently this is not supported and this is posted on our main issue tracking system as a feature request.

Thanks,
StarUML Team

2021년 11월 21일 일요일 오전 6시 25분 52초 UTC+9에 musakena...@gmail.com님이 작성:

Kenan Maraşlı

unread,
Nov 22, 2021, 2:11:40 AM11/22/21
to StarUML
Hello,

Thank you for the update.

Have a nice day.

Jean Fex

unread,
Dec 19, 2021, 3:29:05 PM12/19/21
to StarUML
Hello,
The 2nd Edition of the UML User Guide had multiplicities for classes as shown by its Figure 9-6.
However, section 7.5 of the OMG Spec 2.5.1 indicates that multiplicities apply to Multiplicity Elements and section 7.8.8.4 indicates that only Variables, Connector Ends, Parameters, Structural Features and Pins are Multiplicity Elements. Therefore, multiplicities apply to attributes, association ends, parts, Ports, etc. but not to Classifiers like Classes anymore.
OMG section 11.2.3.4 is about the multiplicities Connectable Elements (and their Connectors) which are Structural Features (Properties/attributes) of Structured Classifiers (Collaborations and Classes).
Regards, Jean

StarUML

unread,
Dec 19, 2021, 11:46:00 PM12/19/21
to StarUML
Hi Jean,

Thank you for clarifying!

Thanks,
StarUML Team

2021년 12월 20일 월요일 오전 5시 29분 5초 UTC+9에 jean...@yahoo.fr님이 작성:
Reply all
Reply to author
Forward
0 new messages