Search code examples
umlclass-diagramvisual-paradigm

visual paradigm reverse java code, class diagram


Using this tool the classes corresponding to my code were created.

Each class has attributes with its getter and setter methods. The attributes are created in the diagram but with the label << Property >> Without the corresponding methods, as you can see from the image. enter image description here Moreover, lists are not attributed to the type List , even if I change the association into aggregation.

  The label << Property >> tells you precisely an attribute which correspond getter and setter?

I could not find anything about this label in the UML documentation


Solution

  • What you call label is a stereotype. Attributes with a <<Property>> stereotype are usually marked this way to tell a code generator that appropriate getter and setter methods shall be created if the target language supports (or requires) that.

    Lists do not depend on the composition symbol but on the multiplicity which is barely readable, but I guess the dots near the associations are asterisks (for any multiplicity). The dots at the end of the associations are isOwned attributes (saying the the dot-marked class owns the association).