ModelioOpenSource/Modelio

Generate getter and setter automatically

BurningDev opened this issue · 1 comments

It would be very helpful to be able to automatically generate getter and setter operations for class elements in a UML class diagram for an existing attribute. This would increase efficiency enormously.

Hi BurningDev,

The JavaDesigner module has a feature for that.

To deploy Java Designer, just click on "Configuration\Modules..." and add the JavaDesigner module :
1-DeployJavaDesigner

In the Java Designer module's parameters, look for the "Automation\Accessors generation" option :
2-JavaDesignerAccessors

Make your elements "Java element" :
3-JavaElement

Play with your attribute Visiblity and Access mode and you see the accessors appears according to what you choose for "Automation\Accessors generation" option :
4-JavaDesignerAttributeAccessMode

See JavaDesigner help for more details :
5-JavaDesignerHelp

Best regards,
cde.