Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [CDO][0.8.0] EAnnotation
|
Re: [CDO][0.8.0] EAnnotation [message #94193 is a reply to message #94172] |
Sat, 25 August 2007 18:15 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Hi Simon,
CDOPackage has a method String getEcore() to receive the serialized
string of the associated model.
You can use this method on client-side and on server-side.
Formerly this method returned null for non-dynamic (generated) models.
But now that you need this information I have changed the code to always
store, transfer and return the model XML string.
If you deploy EMF to your server you should be able to deserialize the
XML model string to an EPackage instance which you can use to query
annotations.
Does that help?
Cheers
/Eike
Simon McDuff schrieb:
> In my model(.ecore), I have information in my annotations that I would like
> to send to my Store.
>
> Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
> CDOPackage, CDOClass, etc...
> Store receive these classes.
>
> Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.
>
> Right now to get around that problem... CDOServer needs to know in advance
> which package it will need so it can use EAnnotations.
>
> Do you think it will be good to have such feature ?
>
>
>
>
|
|
|
Re: [CDO][0.8.0] EAnnotation [message #94202 is a reply to message #94193] |
Sat, 25 August 2007 18:24 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Eike Stepper schrieb:
> Hi Simon,
>
> CDOPackage has a method String getEcore() to receive the serialized
> string of the associated model.
> You can use this method on client-side and on server-side.
> Formerly this method returned null for non-dynamic (generated) models.
> But now that you need this information I have changed the code to
> always store, transfer and return the model XML string.
Sorry, this change caused an exception at another location which I have
to track down ;-(
I've reverted the change in the meantime but I'm working on getting it
in again.
Cheers
/Eike
>
> If you deploy EMF to your server you should be able to deserialize the
> XML model string to an EPackage instance which you can use to query
> annotations.
> Does that help?
>
> Cheers
> /Eike
>
>
> Simon McDuff schrieb:
>> In my model(.ecore), I have information in my annotations that I
>> would like to send to my Store.
>>
>> Right now, EPackages, EClass, EStructuralFeature etc.. are converted
>> in CDOPackage, CDOClass, etc...
>> Store receive these classes.
>>
>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>> information.
>>
>> Right now to get around that problem... CDOServer needs to know in
>> advance which package it will need so it can use EAnnotations.
>>
>> Do you think it will be good to have such feature ?
>>
>>
>>
>>
|
|
| |
Re: [CDO][0.8.0] EAnnotation [message #94236 is a reply to message #94202] |
Sun, 26 August 2007 07:35 |
Eclipse User |
|
|
|
Originally posted by: stepper.sympedia.de
Hi Simon,
The exception occurred only with EcorePackage.eInstance because EMF does
some setter/getter magic (see EMF newsgroup thread "eGenericSuperTypes").
Currently I have no solution to this problem so I've disabled getEcore()
only for EcorePackage.eInstance. It should work for all other models.
Cheers
/Eike
Eike Stepper schrieb:
> Eike Stepper schrieb:
>> Hi Simon,
>>
>> CDOPackage has a method String getEcore() to receive the serialized
>> string of the associated model.
>> You can use this method on client-side and on server-side.
>> Formerly this method returned null for non-dynamic (generated) models.
>> But now that you need this information I have changed the code to
>> always store, transfer and return the model XML string.
> Sorry, this change caused an exception at another location which I
> have to track down ;-(
> I've reverted the change in the meantime but I'm working on getting it
> in again.
>
> Cheers
> /Eike
>
>
>>
>> If you deploy EMF to your server you should be able to deserialize
>> the XML model string to an EPackage instance which you can use to
>> query annotations.
>> Does that help?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>> In my model(.ecore), I have information in my annotations that I
>>> would like to send to my Store.
>>>
>>> Right now, EPackages, EClass, EStructuralFeature etc.. are
>>> converted in CDOPackage, CDOClass, etc...
>>> Store receive these classes.
>>>
>>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>>> information.
>>>
>>> Right now to get around that problem... CDOServer needs to know in
>>> advance which package it will need so it can use EAnnotations.
>>>
>>> Do you think it will be good to have such feature ?
>>>
>>>
>>>
>>>
|
|
|
Re: [CDO][0.8.0] EAnnotation [message #609524 is a reply to message #94172] |
Sat, 25 August 2007 18:15 |
|
Hi Simon,
CDOPackage has a method String getEcore() to receive the serialized
string of the associated model.
You can use this method on client-side and on server-side.
Formerly this method returned null for non-dynamic (generated) models.
But now that you need this information I have changed the code to always
store, transfer and return the model XML string.
If you deploy EMF to your server you should be able to deserialize the
XML model string to an EPackage instance which you can use to query
annotations.
Does that help?
Cheers
/Eike
Simon McDuff schrieb:
> In my model(.ecore), I have information in my annotations that I would like
> to send to my Store.
>
> Right now, EPackages, EClass, EStructuralFeature etc.. are converted in
> CDOPackage, CDOClass, etc...
> Store receive these classes.
>
> Unfortunately CDOPackage and CDOCLass doesn't have that kind of information.
>
> Right now to get around that problem... CDOServer needs to know in advance
> which package it will need so it can use EAnnotations.
>
> Do you think it will be good to have such feature ?
>
>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Re: [CDO][0.8.0] EAnnotation [message #609525 is a reply to message #94193] |
Sat, 25 August 2007 18:24 |
|
Eike Stepper schrieb:
> Hi Simon,
>
> CDOPackage has a method String getEcore() to receive the serialized
> string of the associated model.
> You can use this method on client-side and on server-side.
> Formerly this method returned null for non-dynamic (generated) models.
> But now that you need this information I have changed the code to
> always store, transfer and return the model XML string.
Sorry, this change caused an exception at another location which I have
to track down ;-(
I've reverted the change in the meantime but I'm working on getting it
in again.
Cheers
/Eike
>
> If you deploy EMF to your server you should be able to deserialize the
> XML model string to an EPackage instance which you can use to query
> annotations.
> Does that help?
>
> Cheers
> /Eike
>
>
> Simon McDuff schrieb:
>> In my model(.ecore), I have information in my annotations that I
>> would like to send to my Store.
>>
>> Right now, EPackages, EClass, EStructuralFeature etc.. are converted
>> in CDOPackage, CDOClass, etc...
>> Store receive these classes.
>>
>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>> information.
>>
>> Right now to get around that problem... CDOServer needs to know in
>> advance which package it will need so it can use EAnnotations.
>>
>> Do you think it will be good to have such feature ?
>>
>>
>>
>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
| |
Re: [CDO][0.8.0] EAnnotation [message #609529 is a reply to message #94202] |
Sun, 26 August 2007 07:35 |
|
Hi Simon,
The exception occurred only with EcorePackage.eInstance because EMF does
some setter/getter magic (see EMF newsgroup thread "eGenericSuperTypes").
Currently I have no solution to this problem so I've disabled getEcore()
only for EcorePackage.eInstance. It should work for all other models.
Cheers
/Eike
Eike Stepper schrieb:
> Eike Stepper schrieb:
>> Hi Simon,
>>
>> CDOPackage has a method String getEcore() to receive the serialized
>> string of the associated model.
>> You can use this method on client-side and on server-side.
>> Formerly this method returned null for non-dynamic (generated) models.
>> But now that you need this information I have changed the code to
>> always store, transfer and return the model XML string.
> Sorry, this change caused an exception at another location which I
> have to track down ;-(
> I've reverted the change in the meantime but I'm working on getting it
> in again.
>
> Cheers
> /Eike
>
>
>>
>> If you deploy EMF to your server you should be able to deserialize
>> the XML model string to an EPackage instance which you can use to
>> query annotations.
>> Does that help?
>>
>> Cheers
>> /Eike
>>
>>
>> Simon McDuff schrieb:
>>> In my model(.ecore), I have information in my annotations that I
>>> would like to send to my Store.
>>>
>>> Right now, EPackages, EClass, EStructuralFeature etc.. are
>>> converted in CDOPackage, CDOClass, etc...
>>> Store receive these classes.
>>>
>>> Unfortunately CDOPackage and CDOCLass doesn't have that kind of
>>> information.
>>>
>>> Right now to get around that problem... CDOServer needs to know in
>>> advance which package it will need so it can use EAnnotations.
>>>
>>> Do you think it will be good to have such feature ?
>>>
>>>
>>>
>>>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Goto Forum:
Current Time: Fri Apr 26 13:46:34 GMT 2024
Powered by FUDForum. Page generated in 0.03706 seconds
|