Re: [mdr-users] xmi.namespace

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
ludger goeke wrote:

>Hallo Martin
>
>what do you mean with " attaching xmi.namespace to a given MOF 
>package in the metamodel" ?. Do I have to paste teh packages "xmi" and
>"namespace" into my UML-Metamodel ?
>  
>
If you want to define an XML namespace in your metamodel (similarly to 
how it is done in UML or CWM), you can attach a Tag named xmi.namespace 
to a given package in your metamodel - that package will then be 
declared as a namespace (value of the Tag will be used as the name of 
the namespace) in the XMI document when serializing instances of your 
metamodel. So, if you attach xmi.namespace=MyNamespace tag to 
MyPackage.MyNestedPackage, you will get:

<MyNamespace:MyMetamodelClass name=....>...

instead of

<MyPackage.MyNestedPackage.MyMetamodelClass name=...>...

when serializing instances of your metamodel to the XMI. Sorry if this 
is not what your original question was about.
Regards,
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.