Add List Type to Association

I am using the eUML2 (Free version) plugin to draw a UML class diagram. Now suppose I have a Person class and a Car class. I want the Person class to have a member cars , which is a List<Car> , i.e. private List<Car> cars = null .

My question is how to include this information in the class diagram? More precisely, how to include type information for List in the eUML2 association?

Yours faithfully

+4
source share
2 answers

You create another class called β€œCar,” and then create a one-time directed face-to-machine association and β€œcars” as the role name for the end of the association. You can even do this ;-) by specifying the constraints as {{ordered insertion} "on the association. Because it is a list and insertion, because List supports the insertion order. If you used TreeSet, then that would be" {ordered natural ") .

+2
source

This eUML tool is full of errors and a mediocre copy of EclipseUML. Do not spend too much time on this tool, because it is a waste of time. I tried this tool because it was free, but was very disappointed. The most annoying that I asked a question on their forum, and they did not even answer, because I am not a paid client!

0
source

Source: https://habr.com/ru/post/1333845/


All Articles