Re: [mdr-users] Creation of java objects in the NBMDR

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi Ludger,

ludger goeke wrote:

>Hallo Martin,
>I got two theoretic questions about the NDMDR. 
>1.  I guess that, when I load a xmi-file of my metamodel into the NBMDR, 
>the NBMDR creates the corrosponding java-objects, that represent my
>metamodel. Is this process/ transition  defined by the xmi-specification or
>by the jmi-spezification ?
>  
>
The interfaces and sematics of the Java objects implementing the 
metamodel are defined in JMI specification. The format of the XMI file 
is defined in the XMI specification.

>2. I read in the MOF 1.4 specification that the construct "Reference"
>includes the two references "exposed End" and "referencedEnd". I think that
>the JMI-Mapping of the NBMDR implements only the feature "referencedEnd" but
>not "exposedEnd", or is it just a point of view from witch end I look at the
>reference ? This means, when I got an association with the two navigable
>ends "end1" and "end2". Are  setEnd1 and getEnd1
>the implementation of "exposed End" and setEnd2 and getEnd2 the
>implementation of "referencedEnd" , from one point of view ? 
>  
>
It seems you are refering to a wrong meta-level. Reference class in MOF 
model really has two "references" defined on it as you described it. You 
can see them in the javax.jmi.model.Reference interface - 
getReferencedEnd() and getExposedEnd(). That's it.
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.