HttpUnitPackageFacade pack = (HttpUnitPackageFacade) getPackage();
this should work fine as long as your metafacade properly maps onto all packages
this however throws a ClassCastException as getPackage() continues to return org.andromda.metafacades.uml14.PackageFacadeLogicImpl instances.
hmm .. that's strange, something must be wrong in your metafacademapping
am I mapping the correct thing here then? I tried the following three mappings, but all resulted in a ClassCastException
org.omg.uml.modelmanagement.UmlPackage$Impl org.omg.uml.UmlPackage$Impl org.omg.uml.modelmanagement.Model$Impl
<metafacade class="com.codeczar.andromda.cartridges.httpunit.metafacades.HttpUnitPackageFacadeLogicImpl">
<mapping class="org.omg.uml.modelmanagement.UmlPackage$Impl"/> </metafacade>
I'm right in thinking that metafacade mappings are defined in andromda-metafacades.xml and nowhere else?
thanks again, Nathan
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
