Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Carl on January 05, 2020, 02:19:38 am

Title: Showing Multiplicity of Parameters as Array Brackets
Post by: Carl on January 05, 2020, 02:19:38 am
Hi,

I saw a few old posts saying the EA couldn't show the [] of a parameter set to multiplicity 0..*.  Setting this on say a field of "char" doesn't display any difference on a class diagram.  Isn't this part of the UML spec?  I'm looking at Section 9.5.5 of v2.5.1 and there's a size field of type Integer[0..1] showing.

Thanks,
Carl
Title: Re: Showing Multiplicity of Parameters as Array Brackets
Post by: qwerty on January 05, 2020, 06:55:39 am
Go to the attributes properties page. Select one attribute and open the Multiplicity in the window lower left. Enter a multiplicity other than 1 and you will see it in the attributes compartment.

q.
Title: Re: Showing Multiplicity of Parameters as Array Brackets
Post by: Carl on January 06, 2020, 07:26:53 am
Hi,

This worked perfectly for attributes.  Is there anyway for it to work for operation parameters?  I have the Multiplicity set but my "char" parameter still appears as "char" w/o the brackets.

Thanks,
Carl
Title: Re: Showing Multiplicity of Parameters as Array Brackets
Post by: qwerty on January 06, 2020, 07:51:37 am
AFAIK, no. This might be a shortcoming of EA. It only shows the type and nothing else. The diagram properties/features allows for showing name and type, but that's it. You might send a bug report/feature request. You might as well enjoy a nice cold beer which is much more pleasing.

q.