Re: [mdr-users] MDR for activity diagram

Richard Ciglansky <[email protected]> Thu, 14 Jul 2005 21:16:11 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <1121368571.3597.12.camel@ares>
On Thu, 2005-07-14 at 20:24, Cheng yong wrote:
> Hi, Leo, 
>  
> thank for your quick answer. One more question. Do you know where I
> can find an avaiable UML metamodel in XMI? I think it should be
> standardized. But I didn't find it in the internet. Thanks a lot.

Check :
http://mdr.netbeans.org/metamodels.html

At the bottom of the page there are metamodels for UML 1.3, 1.4, 1.5 . 

Use the version you need, they are different and don't rely on
compatibility between them :-)

Be sure to download UML metamodel and JMI tags as well, store both ( UML
metamodel XMI file and JMI tags XMI file ) in the same directory and
load "JMI tags" XMI into MDR . Links belonging to particular version are
UNDER the title, in my browser it graphically seems that links are above
the title so mistake could happen easily.

This seems strange, but JMI tags actually "import" UML metamodel and
renames/modifies some UML element ( for example Class ) to avoid
problems when compiling generated interface in Java ( Class becomes
UmlClass ).

Richard


>  
> cheers
>  
> lucia
>  
> 
> Leonardo Gresta Paulino Murta <[email protected]> wrote:
>         Hi,
>         
>         That is all... You need to load (read) the uml metamodel and 
>         instantiate it. Then, use the JMI interfaces to create your
>         activity 
>         graph and save it or to load the activity graph from an
>         existing XMI file.
>         
>         Leo
>         
>         Cheng yong wrote:
>         > Hello, everyone,
>         > 
>         > I'm new here. I've just read the start-up documentation and
>         one
>         > example. Now I have one question.
>         > 
>         > The first step in MDR is normally to create a MOF model,
>         convert into a
>         > MOF XMI, then load the model into MDR and generate JMI
>         interfaces from
>         > the model. What I in my application need is just one modul
>         to
>         > read/write an UML activity diagram. It means that the JMI
>         interfaces are 
>         > already
>         > available. So I can simply call read and write method of
>         MDR. Is it all
>         > right? Has anyone made a try? If I am wrong, does it mea! n
>         I still need a 
>         > MOF model for my activity diagram?
>         > 
>         > best regards
>         > 
>         > lucia
>         > 
>         >
>         ------------------------------------------------------------------------
>         > Start your day with Yahoo! - make it your home page 
>         > 
> 
> ______________________________________________________________________
> Start your day with Yahoo! - make it your home page