|
|
|
Re: ExtendedMetaData annotation to provide different feature name for XML serialization [message #1220141 is a reply to message #1220129] |
Tue, 10 December 2013 05:21 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Erdal,
Did you Export... to an XML Schema? If you change the name in the
swchema, import the schame again, do the annotations on that Ecore model
look just like the ones you put on your original Ecore model?
On 09/12/2013 10:32 PM, Erdal Karaca wrote:
> Thanks, Vlad!
> I have followed the steps (from the EMF book) several times and now
> tried with the diagram editor which generates the same annotation as I
> had tried, but without any success. The gnerated XSD does not contain
> the name for the feature I have set the annotation for.
> Plus, the schema locations of sub-packages are not properly set (for
> imported namespaces) in the generated XSDs.
>
> BTW, I am on Kepler with EMF: are there any known issues with that
> version?
>
> Vlad Gheorghe wrote on Mon, 09 December 2013 22:05
>> Hi Erdal,
>>
>> The exact annotation source URI and key/value pairs are explained in
>> the EMF book.
>>
>> Also, the Ecore diagram editor (the one registered for .ecorediag
>> files) provides a nice property page which fills in the correct
>> ExtendedMetaData annotations.
>>
>> Regards
>> Vlad
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: ExtendedMetaData annotation to provide different feature name for XML serialization [message #1220289 is a reply to message #1220141] |
Tue, 10 December 2013 21:18 |
Erdal Karaca Messages: 854 Registered: July 2009 |
Senior Member |
|
|
Not sure what was wrong, but with a new workspace "it works" now.
Sorry for the noise and thanks!
Ed Merks wrote on Tue, 10 December 2013 06:21Erdal,
Did you Export... to an XML Schema? If you change the name in the
swchema, import the schame again, do the annotations on that Ecore model
look just like the ones you put on your original Ecore model?
On 09/12/2013 10:32 PM, Erdal Karaca wrote:
> Thanks, Vlad!
> I have followed the steps (from the EMF book) several times and now
> tried with the diagram editor which generates the same annotation as I
> had tried, but without any success. The gnerated XSD does not contain
> the name for the feature I have set the annotation for.
> Plus, the schema locations of sub-packages are not properly set (for
> imported namespaces) in the generated XSDs.
>
> BTW, I am on Kepler with EMF: are there any known issues with that
> version?
>
> Vlad Gheorghe wrote on Mon, 09 December 2013 22:05
>> Hi Erdal,
>>
>> The exact annotation source URI and key/value pairs are explained in
>> the EMF book.
>>
>> Also, the Ecore diagram editor (the one registered for .ecorediag
>> files) provides a nice property page which fills in the correct
>> ExtendedMetaData annotations.
>>
>> Regards
>> Vlad
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03303 seconds