which UML class is equivalent to the XMI <UML:Model>

Writing your own cartridge ? Come and take a look in here ...

which UML class is equivalent to the XMI <UML:Model>

Postby Ali Abdel-Aziz » Mon 3. May 2010, 15:15

Which UML class I should map to if I need my metafacade Class just get mapped once during the model parsing process?

In other format I have UMLModelFacadeLogicImpl which I need it to be mapped to UML:Model how can I do that?
what is the equivalent UML class for the XMI <UML:Model> tag element?

for example when I wanna map my Facade to the uml class that represent XMI <UML:Class> tag element
I mapped it as follow:
Code: Select all
<metafacade class="org.andromda.cartridges.deployment.metafacades.UMLClassFacadeLogicImpl">
     <mapping class="org.omg.uml.foundation.core.UmlClass$Impl">           
     </mapping>
</metafacade>


so <UML:Class> is equivalent to org.omg.uml.foundation.core.UmlClass$Impl
so which class is equivalent to <UML:Model>
Ali Abdel-Aziz
 
Posts: 50
Joined: Sun 13. Nov 2005, 17:24
Location: Dubai, UAE

Re: which UML class is equivalent to the XMI <UML:Model>

Postby Bob Fields » Thu 6. May 2010, 17:14

For UML14 and UML2, where a model can be either a package or a model, it's PackageFacade.

You can see the existing mapping in uml14 metafacades.xml:

Code: Select all
    <metafacade class="org.andromda.metafacades.uml14.PackageFacadeLogicImpl">
        <mapping class="org.omg.uml.modelmanagement.UmlPackage$Impl"/>
    </metafacade>
    <metafacade class="org.andromda.metafacades.uml14.ModelFacadeLogicImpl">
        <mapping class="org.omg.uml.UmlPackage$Impl"/>
    </metafacade>
Thanks

Bob Fields
bobfieldsfb <at> hotmail <dot> com
Bob Fields
Experienced Member
 
Posts: 425
Joined: Mon 23. Oct 2006, 20:26
Location: Orlando, FL, USA


Return to Cartridge development

Who is online

Users browsing this forum: No registered users and 1 guest