View Question

add multiplicity to association


Do you have a function that adds the multiplicity to the association? I can't find it in the Astah SDK API. Can you give me an example also?

Thank you a lot.

Product: Astah Professional

Hi Ano,

You cannot add multiplicity to the association but to the Association End. So get Association End from Association, and then add multiplicity to the Association End. You can get Association End with IAssociation#getMemberEnds() method.

Hope this figure helps to understand how API works towards the models on diagram ("JUDE" is a former name of Astah):

Image Text

Cheers, SJ

Answer Question

This content has the following tags: