Hello Yong,


Thursday, July 14, 2005, 2:01:42 AM, you wrote:



YC> Hallo, Matthias, 

YC> thank you very much for your answer.

you're welcome.



YC> What I tried to unterstand is, how the mapping from UML-Models to java

YC> object is in Andromda realised? There should be some method like

YC> XMIReader or XMITransformer. Where are they?



These classes are inside a component called "Netbeans Metadata

Repository" (see http://mdr.netbeans.org). This is an open source

metadata repository which implements the OMG MOF specification (see

the OMG website for more info), it implements JMI and XMI.



YC> Another question from me: What I still have not found out is,

YC> where these org.omg.uml.* come from. Who implemented it?



These are all interfaces that have been byte code generated by

Netbeans MDR from a the official UML 1.4 metamodel XMI file provided

by the OMG (modified by Gentleware to add features for UML diagram

interchange). The interfaces are implemented at runtime of MDR. The

classes that implement those interfaces are generated as Java byte

code and thrown away as soon as MDR terminates (which happens when

AndroMDA terminates). Consequently, there is no source code for those

classes. The Javadoc for the org.omg.* interfaces is available on the 
http://docs.andromda.org website.



After the metamodel has been loaded into MDR, MDR can loaded arbitrary models 
based on that metamodel. It produces an abstract syntax tree in memory, tiny 
little objects that implement the org.omg.* JMI interfaces.



Next, AndroMDA wraps those metamodel objects with metafacades and passes the 
metafacades to the template engine. For more info about metafacades, see also 
http://docs.andromda.org.



YC> I will very appreciate it if you can help me with these two

YC> questions.



Enjoy AndroMDA!



Cheers...

Matthias
--
Matthias Bohlen

"Consulting that helps project teams to succeed..."



Internet:

   http://www.andromda.com

   [EMAIL PROTECTED]
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2585#2585
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to