RE: How to build a model programmatically ?

"Antony Warner" <[email protected]> Tue, 14 Oct 2003 23:34:25 +0100
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
I have attached a noddy example that I created as I wanted to do what you
are wanting to do.
Look up the term "package proxy" in the JMI specification - that is how you
create things.

Hope it helps.

-----Original Message-----
From: Arnaud Cuccuru [mailto:[email protected]]
Sent: 14 October 2003 16:24
To: [email protected]
Subject: [mdr-dev] How to build a model programmatically ?


Hi,

I have generated JMI interfaces from a metamodel (xmi file). And now, i
would like to use these interfaces to build an instance of this
metamodel programmatically.
But the problem is that there's only interfaces generated, and no
factory (with static methods for constructor for example).
Could you tell me the way to build a model ?

Thank you.
MDRTest.java (application/octet-stream, 15.7 KB) - not displayed