Setter and Getters

Hello

Im doing uml class diagram with a large number of classes.

There is anyway to set getter and setter active by default for code generation , instead of marking field by field and class by class ?

thanks in advance

Hi Leonxio,

Thanks for your post. You simply need to check “Setter” and/or “Getter” in Property pane or Specification dialog of attribute (please see attached image below) so they will be generated in code. You do not need to create setter and getter on your own (this will have duplication of setter/getter in generated code).

Hope this helps. Please feel free to have a post again if you have any further inquiry.

Best regards,
Lilian Wong

check_setter_getter.png