Book a Demo

Author Topic: accesing method parameter multiplicity  (Read 5119 times)

Mariusz Popiolek

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
accesing method parameter multiplicity
« on: November 24, 2010, 01:48:36 am »
Hello

I would like to read method parameter multiplicity. Parameter class doesn't contain such attribute, StyleEx is empty. Is there a way to retrieve this information from model?
Thanks in advance for any help.

Best regards,
Mariusz Popiolek

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: accesing method parameter multiplicity
« Reply #1 on: November 24, 2010, 05:03:08 pm »
Mariusz,

The multiplicity information is stored in the t_xref table.
The description column from my example has following info:
Code: [Select]
@PROP=@NAME=lower@ENDNAME;@TYPE=Integer@ENDTYPE;@VALU=1@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;@PROP=@NAME=upper@ENDNAME;@TYPE=UnlimitedNatural@ENDTYPE;@VALU=*@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;
I think the only solution right now (before sparx exposes this property in the API, you better send them a feature request) is to use Repository.SQLQuery and then parse the description column to get the info you need.

Geert

Mariusz Popiolek

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: accesing method parameter multiplicity
« Reply #2 on: November 25, 2010, 02:09:13 am »
Thanks for the help. I have sent change request :)

Best regards,
Mariusz

Mariusz Popiolek

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: accesing method parameter multiplicity
« Reply #3 on: December 22, 2010, 01:23:23 am »
How can I find t_xref row for my method parameter? 'where (t_xref.XrefID = parameterGUID)' returns empty set.

Best regards,
Mariusz Popiolek