Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate getter and setter automatically #79

Open
BurningDev opened this issue Oct 18, 2023 · 1 comment
Open

Generate getter and setter automatically #79

BurningDev opened this issue Oct 18, 2023 · 1 comment

Comments

@BurningDev
Copy link

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.

@modelio-cde
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants