Menu

How to define a list / collection between classes?

Anonymous
2014-10-14
2014-10-20
  • Anonymous

    Anonymous - 2014-10-14

    Hi!

    I'm trying to use your application from a Windows 7 PC and I'm unable to create a association that creates a List, Collection or similar structure with few elements inside.

    What can I do in order to create a link/association between different classes (0..N or 1..N)? I'd tried to link them using the multiplicity property but it doesn't work! :-?

    Best regards,

     
  • Janusz Szpilewski

    Connect classes with a Composition or Aggregation link, select it on the diagram and you will be able to set multiplicity with the Properties panel. You may also take a look at the Help file accessible with "Help - Contents" or F1.

     
  • Anonymous

    Anonymous - 2014-10-15

    Hi!
    Thank you Janusz for your quick answer.
    I'd tried to link two classes using both links (Composition and/or Aggregation) and seems that it doesn't work at all. For example, the model below does not generate any collection type inside both classes:
    http://www.evernote.com/l/ABYm3116YhBEl4hSKkYQurxujAnTf5g3LHg/
    Best regards,

     
  • Janusz Szpilewski

    So this is what you get on a UML diagram. Unfortunately if you are expecting getting collection data types in generated source code it is not supported with the code generation plugins in the current state. This tool focuses principally on creating UML models.

     
  • Anonymous

    Anonymous - 2014-10-20

    Hmm what is a "Collection Type" inside a Class? You may be able to define a Profile for this Type if you want... (but if it's not UML Standard, please keep it out of WhiteStarUML...)

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.