Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » A Questino about Composition
A Questino about Composition [message #627375] Fri, 06 February 2009 19:25
wws_ques wws_ques is currently offline wws_ques wws_quesFriend
Messages: 64
Registered: July 2009
Member
I used RSA 7.5 to create a composition. Class University owns Class
Department.
I tried to use UML 2 API to get the composite end at Class University as
follows:

...
EList<Property> properties = cClass.getAllAttributes();
for(int k=0;k<properties.size();k++){
Property property = properties.get(k);

Association association = property.getOwningAssociation();
if(association!=null){
..........
}

Based on UML2, an association end is a Property. But when I use
getOwningAssociation() on one composite end, shouldn't I get the
corresponding composition? In reality, the association is null?
Also, I find the description of getOwningAssociation is simple?
Can someone give me some explanation here? THanks.
Wuwei
Previous Topic:Redefined property type in Genmodel
Next Topic:No automatic generation of OCL classes
Goto Forum:
  


Current Time: Sun Apr 05 23:16:42 GMT 2020

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

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

Back to the top