|
|
|
Re: Change parent/owner [message #1832976 is a reply to message #1832972] |
Wed, 30 September 2020 09:03 |
German Vega Messages: 104 Registered: December 2015 Location: Grenoble, France |
Senior Member |
|
|
HI
Any classifier can be declared within the scope of a class, according to the UML specification
Quote:
A Class acts as the namespace for various kinds of Classifiers defined within its scope, including Classes. Nested
Classifiers are members of the namespace of the containing Class. Classifier nesting is used for reasons of information
hiding.
The corresponding containment reference is Class#nestedClassifier, so you can try something like this :
Class parent = ...
Classifier nested = ...
parent.getNestedClassifiers().add(nested);
[Updated on: Wed, 30 September 2020 09:06] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03465 seconds