|A Questino about Composition [message #627375]
||Fri, 06 February 2009 19:25
| wws_ques wws_ques
Registered: July 2009
I used RSA 7.5 to create a composition. Class University owns Class |
I tried to use UML 2 API to get the composite end at Class University as
EList<Property> properties = cClass.getAllAttributes();
Property property = properties.get(k);
Association association = property.getOwningAssociation();
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.
Powered by FUDForum
. Page generated in 0.01919 seconds