Modelio icon indicating copy to clipboard operation
Modelio copied to clipboard

Generate getter and setter automatically

Open BurningDev opened this issue 2 years ago • 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.

BurningDev avatar Oct 18 '23 14:10 BurningDev

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.

modelio-cde avatar Nov 02 '23 14:11 modelio-cde