Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML2 API vs UML metamodel
UML2 API vs UML metamodel [message #692501] Mon, 04 July 2011 15:31 Go to next message
Williams Mising name is currently offline Williams Mising name
Messages: 43
Registered: July 2009
Member
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 17:02 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4093
Registered: July 2009
Senior Member
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: Thu Oct 23 02:22:15 GMT 2014

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

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