Book a Demo

Author Topic: Showing Multiplicity of Parameters as Array Brackets  (Read 4251 times)

Carl

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Showing Multiplicity of Parameters as Array Brackets
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Showing Multiplicity of Parameters as Array Brackets
« Reply #1 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.

Carl

  • EA User
  • **
  • Posts: 24
  • Karma: +1/-0
    • View Profile
Re: Showing Multiplicity of Parameters as Array Brackets
« Reply #2 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Showing Multiplicity of Parameters as Array Brackets
« Reply #3 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.