I wish to generate Java code using genmodel based on a UML model.
I am working on Eclipse Oxygen, UML model from Papyrus (with some usage of the Ecore profile) in order to generate the Ecore using GenModel wizard to finally generate the model Java code (standard Eclipse plugin).
I have separated my generated source from handwritten ones so a @Generated NOT + manual modification solution is to be avoided :)
Whether I change the UML visibility parameter of my attributes, nothing change in the generated model code (everything is public).
I have not found info about the possibility to do so in the doc I have read (EMF help, Vogella blog, opCoach blog, Google...)
My questions are these:
- Is it possible to have visibility of UML objects be taken into account by GenModel processing?
- Is this possible to setup UML Ecore profile to force visibility on generated code? (I have tried without succeed so far)