UML2 API vs UML metamodel [message #692501] |
Mon, 04 July 2011 11:31  |
Eclipse User |
|
|
|
I tried to figure out the relationship between UML2 API and
the UML metamodel (UML2.2 Feb. 2009). In the metamodel, Figure
7.18 shows the two associations among Classifier, Generalization and GeneralizationSet. When I check UML2 API, I find all all get methods
for each association end/property. But I only find one set method
in GeneralizationSet which allows to set powertype. It makes sense since
the asso. between Classifier and GeneralizationSet is bidirectional.
So, the set method takes care of the set of the other association
end to Classifier. Is that right? But, either Generalization nor GeneralizationSet
provides a set method. So, how a get method returns the appropriate
information? I get confused about this. Thanks
W.
|
|
|
Re: UML2 API vs UML metamodel [message #692548 is a reply to message #692501] |
Mon, 04 July 2011 13:02  |
Eclipse User |
|
|
|
Hi
generalizations have a many multiplicity so you do
getGeneralizations().add/remove/...
Regards
Ed Willink
On 04/07/2011 16:31, Williams wrote:
> I tried to figure out the relationship between UML2 API and
> the UML metamodel (UML2.2 Feb. 2009). In the metamodel, Figure
> 7.18 shows the two associations among Classifier, Generalization and
> GeneralizationSet. When I check UML2 API, I find all all get methods
> for each association end/property. But I only find one set method
> in GeneralizationSet which allows to set powertype. It makes sense since
> the asso. between Classifier and GeneralizationSet is bidirectional.
> So, the set method takes care of the set of the other association
> end to Classifier. Is that right? But, either Generalization nor
> GeneralizationSet
> provides a set method. So, how a get method returns the appropriate
> information? I get confused about this. Thanks
> W.
|
|
|
Powered by
FUDForum. Page generated in 0.02357 seconds