Skip to main content



      Home
Home » Modeling » UML2 » UML2 API vs UML metamodel
UML2 API vs UML metamodel [message #692501] Mon, 04 July 2011 11:31 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Can all Classifier take part in an Association?
Next Topic:Implementation of (all) constraints - is it intended?
Goto Forum:
  


Current Time: Wed Jul 23 17:46:47 EDT 2025

Powered by FUDForum. Page generated in 0.02357 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top