UML metamodel 1.3 - Getting hold of the 'package proxy'
"Antony Warner" <[email protected]> Mon, 11 Aug 2003 21:47:29 +0100
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I hope you can help me get started with MDR.
This is my first experience with MDA, MOF and these kinds of things. I am
struggling with getting started in MDR. In a nutshell, I am hoping to use it
standalone as a means of storing UML metadata as part of a UML modeller. So
far, I have used the MDR Netbeans module to generate JMI interfaces from a
UML 1.4 metamodel (01-02-15_Diff.xml and 01-02-15.xml). I have compiled
these classes. I have read the JMI specification, and am getting the idea.
However, as I understand it I need to get hold of the 'package proxy' (i.e.
the generated class at the bottom of this page?). From there I can get class
proxies and from there classes? My problem is that I can't find any examples
of getting a handle on this 'package proxy'. I have found some example code
in the AndroMDA project, but I think they are using the relective mechanism.
I don't think this is what I need. So can anyone help me understand how I
need to go about using the generated JMI classes to store UML metadata? Any
help at this stage would be greatly appreciated!
Thanks,
Antony.
UML Package Proxy?:
package org.omg.uml;
/**
* UML package interface.
*/
public interface UmlPackage extends javax.jmi.reflect.RefPackage {
public org.omg.uml.foundation.datatypes.DataTypesPackage getDataTypes();
public org.omg.uml.foundation.core.CorePackage getCore();
public
org.omg.uml.behavioralelements.commonbehavior.CommonBehaviorPackage
getCommonBehavior();
public org.omg.uml.behavioralelements.usecases.UseCasesPackage
getUseCases();
public org.omg.uml.behavioralelements.statemachines.StateMachinesPackage
getStateMachines();
public
org.omg.uml.behavioralelements.collaborations.CollaborationsPackage
getCollaborations();
public
org.omg.uml.behavioralelements.activitygraphs.ActivityGraphsPackage
getActivityGraphs();
public org.omg.uml.modelmanagement.ModelManagementPackage
getModelManagement();
}