Domain model class mapping to element in domain file [message #231664] |
Thu, 28 May 2009 09:29 |
|
Hi all,
In my domain model I have defined a class 'Process' which is supposed to
be saved as 'process' element in the resulting domain file. This
'process' element is the document root. But in my case it keeps
translating the class to 'Process' element instead of 'process'
(uppercase/lowercase problem). How to fix this ? Also how to get rid of
XMI namespace declaration in the resulting domain file ?
Any help would be greatly appreciated.
Regards,
Setya
|
|
|
Re: Domain model class mapping to element in domain file [message #231812 is a reply to message #231664] |
Fri, 29 May 2009 11:39 |
|
Setya wrote:
> Hi all,
>
> In my domain model I have defined a class 'Process' which is supposed to
> be saved as 'process' element in the resulting domain file. This
> 'process' element is the document root. But in my case it keeps
> translating the class to 'Process' element instead of 'process'
> (uppercase/lowercase problem). How to fix this ? Also how to get rid of
> XMI namespace declaration in the resulting domain file ?
>
> Any help would be greatly appreciated.
>
>
> Regards,
>
> Setya
Hi all,
I'm trying to use eAnnotations to turn the element name into lowercase :
<eClassifiers xsi:type="ecore:EClass" name="Process">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="elementOnly"/>
<details key="name" value="process"/>
</eAnnotations>
</eClassifiers>
But the result is still the same. Am I using the eAnnotations
incorrectly here ?
Regards,
Setya
|
|
|
Powered by
FUDForum. Page generated in 0.02811 seconds