Re: UML 15 association and CompositeViolation

"Anders W. Tell" <[email protected]> Tue, 19 Aug 2003 16:17:12 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Organization Financial Toolsmiths AB
Message-ID <[email protected]>
There are two (unrelated) references 

ModeElement[0..*] <-> [0..1]Namespace
and
Association[1..1] <-> [2..*]AssociationEnd.

and
aEnd.refSetValue("namespace", as)
aEnd.refSetValue("association", as)

is accepted by the MDR's JMI impl.

/anders

Stefan Ocke wrote:

>  
>
>>Thanks Stefan,
>>
>>I missed the [0..1]  for namespaces:(  The JMI impl seems to accept two
>>composite relations to the same container.
>>
>>    
>>
>
>Why do you set the same container twice? (Or did I just misunderstand your
>comment?)
>
>Stefan.
>
>
>
>  
>