I can't get association cardinalities reflected directly in the xsd. I
have set up some test cases to look at this and
0..0 yields minOccurs="0" maxOccurs="1"
0..1 yields minOccurs="0" maxOccurs="1" (correct)
0..* yields minOccurs="0" maxOccurs="unbounded" (correct)
4..5 yields minOccurs="1" maxOccurs="unbounded"
So the two obvious ones are correct and the two others seem to be making
it up. I would expect these cardinalities to be directly reflected. Am I
wrong?
I have traced this down into the vsl but getMinOccurs() and
getMaxOccurs() empirically seem not to be directly linked to the values
entered into the MagicDraw diagram. The xmi seems to have some
"cleverness" since absence of a "value" attribute seems to denote zero
and -1 denotes unbounded.
I can't get hold of the source since the AndroMDA site references old
sourceforge cvs links.
Nigel