by [gw] Stefan Mueller » Tue Jun 28, 2005 9:43 am
Hi,
getRange() return a Collection which includes object of class org.omg.uml.foundation.datatypes.MultiplicityRange.
Each MultiplicityRange has an 'upper' and 'lower'. So the collection represents the Multiplicity of ONE associationEnd, e.g.: 2-4, 5-9, 20-30. This list of ranges is allowed in UML 1.4.
To get the multiplicity of the 'other side' of the aossication you need to get the associatinEnd of the opposite end and get the MultiplicityRange for it.
To get the AssociationEnds of an association you can get association.getConnection(). It returns a list of all AssociationEnds of this association (normally 2 if it is an binary association).
Regards,
Stefan Mueller
Stefan Mueller [Gentleware]