Yeah as you've discovered: the context thing isn't very reliable (I've even 
thought about taking it out because of this).  Its hard to get it to work 
correctly because its basically set by the first metafacade that calls 
shieldedElement or shieldedElements on a given element.  I would recommend 
mapping by properties instead (you can do what you want to do with this method 
and its reliable).



Just add a new attribute on your A metafacade that returns whether or not the 
owner is what you want it to be, for example you could call it "ownerIsC1", and 
then you could map it like this:



  

<metafacade class="org.andromda.cartridges.stmdsoc.metafacades.A">

&nbsp; &nbsp; <mapping class="org.omg.uml.foundation.core.AssociationEnd$Impl">

&nbsp; &nbsp; &nbsp; &nbsp; <property name="ownerIsC1"/>

&nbsp; &nbsp; </mapping>

</metafacade>





This would map the association end to A whenever the ownerIsC1 is true on A.
--
Chad Brandon - [EMAIL PROTECTED]

http://www.andromda.org
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1976#1976
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to