Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Java WorkFlow Tooling (JWT) » Re: Extending JWT's EMF metamodel
Re: Extending JWT's EMF metamodel [message #26641] Wed, 02 July 2008 04:39 Go to next message
Marc Dutoo is currently offline Marc Dutoo
Messages: 71
Registered: July 2009
Member
Hi all

Please reply to this message instead so it also get posted in JWT's forum.

Regards,
Marc

Marc Dutoo a écrit :
> Hi all
>
> In the project Eclipse JWT, we manage workflows using ecore-specified
> XMI models and we want to let our users define and add custom
> information in it.
>
> We've logically though about allowing to define ecore metamodels than
> extend ours, and about the possibilities of Dynamic EMF. So we've tried
> a few things (using Europa's EMF) and come across what seem to be
> limitations of extending EMF, especially concerning typing of relations :
>
> * a dynamic class can only extend a non-interface, non-abstract
> static class. OK, actually I can agree with this one ;)
>
> * in order to create dynamic extensions inheriting from this
> non-interface, non-abstract static class, I've had to create and
> register a custom factory that does this work for the package containing
> the dynamic ecore extension. Well, ok again, we could automatically do
> this for all ecores that are found in a given place.
>
> * Now to the fun stuff : I defined in a dynamic EMF extension to my
> core, static metamodel a containment eReference that whose target type
> is a core, static type, but any sample model fails to load. It appears
> that proxy resolution fails for my eReference at parsing : it goes
> through XMLHandler.setFeatureValue()'s proxy handling code at line 2628
> where either createObjectFromFeatureType() believes the eReference's
> eType is eClassifier (because it is the type of the "eType" feature of
> EReference), or createObjectFromTypeName() believes the eReference's
> eType is PropertyImpl (whereas it should be a ClassImpl with name
> Property).
>
> * and upside down, I defined a core, static-typed element under a
> dynamic defined, but was not able to load a sample following this model,
> for the same reason. Though proxy resolution works fine for attributes,
> or if typing the dynamic-defined relation with a dynamic-defined
> extension of a core, static type.
>
> Any feedback about this behaviour ?
>
>
> NB. for those more interested about the "requirements" side of our
> endeavours, you can look here see more here
> http://wiki.eclipse.org/JWT_Metamodel .
>
> Regards,
> Marc Dutoo
> Open Wide
> Eclipse JWT co-lead
Re: Extending JWT's EMF metamodel [message #26727 is a reply to message #26641] Wed, 02 July 2008 08:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080602000607000309040703
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Marc,

Comments below.

Marc Dutoo wrote:
> Hi all
>
> Please reply to this message instead so it also get posted in JWT's
> forum.
>
> Regards,
> Marc
>
> Marc Dutoo a
Re: Extending JWT's EMF metamodel [message #26767 is a reply to message #26727] Wed, 02 July 2008 09:35 Go to previous messageGo to next message
Marc Dutoo is currently offline Marc Dutoo
Messages: 71
Registered: July 2009
Member
Hi Ed

First thanks for trying to make some sens of my questions ;)

Also much thanks for the EFactoryImpl customization code. It is nice to
be able to have such a fully generic solution whatever the extensions
ecores !


Now about the eReference proxy problem :

I would agree with you it is not a static vs dynamic problem, but an
external definition proxy problem, and in this case you are right to
point at the URI

So I've tried the following URIs when defining in my ecore extension the
target type of my "dynaspectproperty" reference :


OK (local type, no proxy) :

<eStructuralFeatures xsi:type="ecore:EReference"
name="dynaspectproperty" upperBound="-1" eType="#//CustomElement"
containment="true"/>


Not OK 1 :

<eStructuralFeatures xsi:type="ecore:EReference"
name="dynaspectproperty" upperBound="-1" eType="core:Property
java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
containment="true"/>

Explanation :

proxy resolution using XMLHandler.createObjectFromTypeName() fails while
trying to set the eType feature to an instance of EMF Property (backed
up by the java class PropertyImpl), whereas it should be the instance of
EMF Class (backed up by the java class ClassImpl) with the name "Property".


Not OK 2
:
<eStructuralFeatures xsi:type="ecore:EReference"
name="dynaspectproperty" upperBound="-1"
eType="java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
containment="true"/>

Explanation :

proxy resolution using XMLHandler.createObjectFromFeatureType() fails
while trying to set the eType feature to the instance of EMF Class
(backed up by the java class ClassImpl) with the name "eClassifier"
(because "eClassifier" is the type of the "eType" feature of the
eReference class)


Is there any other way (URIs) to refer to a static model ?


Some more details on the context of my problem :

Base metamodel :
* defined as static EMF in WEMetaModel.ecore, and generated from its
genmodel as a host of packages, java classes and interfaces
* contains static classes like ModelElement, Property, Aspect

Extension metamodel :
* on ModelElement, an Aspect-typed "aspects" relation is defined
* Aspect's generated impl AspectImpl serves as the impl of dynamic
EMF extensions (in a generic manner, thanks to your code)

Custom extension metamodel :
* defined as dynamic EMF in WEMetaModel_custom.ecore
* contains a dynamic class CustomAspect extending Aspect, and others
like CustomElement
* on CustomAspect I've tried to define a "dynaspectproperty"
reference in different ways depicted above.

Regards,
Marc

Ed Merks a écrit :
> Marc,
>
> Comments below.
>
> Marc Dutoo wrote:
>> Hi all
>>
>> Please reply to this message instead so it also get posted in JWT's
>> forum.
>>
>> Regards,
>> Marc
>>
>> Marc Dutoo a écrit :
>>> Hi all
>>>
>>> In the project Eclipse JWT, we manage workflows using ecore-specified
>>> XMI models and we want to let our users define and add custom
>>> information in it.
>>>
>>> We've logically though about allowing to define ecore metamodels than
>>> extend ours, and about the possibilities of Dynamic EMF. So we've
>>> tried a few things (using Europa's EMF) and come across what seem to
>>> be limitations of extending EMF, especially concerning typing of
>>> relations :
>>>
>>> * a dynamic class can only extend a non-interface, non-abstract
>>> static class. OK, actually I can agree with this one ;)
> Yep. That's because it needs to be able to create an instance of the
> Impl class that it can extend. In hindsight, for dealing with proxies,
> it would have been nicer if you could always create an instance of even
> an abstract class, but some internal mechanism, but this would force
> clients to always provide a non-abstract impl class; it's too late to
> foist that on clients now.
>>>
>>> * in order to create dynamic extensions inheriting from this
>>> non-interface, non-abstract static class, I've had to create and
>>> register a custom factory that does this work for the package
>>> containing the dynamic ecore extension. Well, ok again, we could
>>> automatically do this for all ecores that are found in a given place.
> No, this logic in EFactoryImpl should do the trick of creating an
> instance of the first super type with an implementation class.
>
> public EObject create(EClass eClass)
> {
> if (getEPackage() != eClass.getEPackage() || eClass.isAbstract())
> {
> throw new IllegalArgumentException("The class '" +
> eClass.getName() + "' is not a valid classifier");
> }
>
> for (List<EClass> eSuperTypes = eClass.getESuperTypes();
> !eSuperTypes.isEmpty(); )
> {
> EClass eSuperType = eSuperTypes.get(0);
> if (eSuperType.getInstanceClass() != null)
> {
> EObject result =
> eSuperType.getEPackage().getEFactoryInstance().create(eSuper Type);
> ((InternalEObject)result).eSetClass(eClass);
> return result;
> }
> eSuperTypes = eSuperType.getESuperTypes();
> }
>
> return basicCreate(eClass);
> }
>
>>>
>>> * Now to the fun stuff : I defined in a dynamic EMF extension to
>>> my core, static metamodel a containment eReference that whose target
>>> type is a core, static type, but any sample model fails to load. It
>>> appears that proxy resolution fails for my eReference at parsing : it
>>> goes through XMLHandler.setFeatureValue()'s proxy handling code at
>>> line 2628 where either createObjectFromFeatureType() believes the
>>> eReference's eType is eClassifier (because it is the type of the
>>> "eType" feature of EReference), or createObjectFromTypeName()
>>> believes the eReference's eType is PropertyImpl (whereas it should be
>>> a ClassImpl with name Property).
> What's PropertyImpl? It sounds like some crossing of meta model
> boundaries here.
>>>
>>> * and upside down, I defined a core, static-typed element under a
>>> dynamic defined, but was not able to load a sample following this
>>> model, for the same reason. Though proxy resolution works fine for
>>> attributes, or if typing the dynamic-defined relation with a
>>> dynamic-defined extension of a core, static type.
>>>
>>> Any feedback about this behaviour ?
> I'm totally confused. :-P
>
> Maybe you could be a bit more concrete about the nature of these
> extensions you wrote. Generally EMF won't care if the type of an
> EReference is a dynamic EClass or a static EClass. BUT, it's important
> that if you want to static EClass, your Ecore model needs to refer to
> that static model (via the nsURI) and not tot he dynamic model (i.e.,
> the serialized .ecore version in the model folder).
>>>
>>>
>>> NB. for those more interested about the "requirements" side of our
>>> endeavours, you can look here see more here
>>> http://wiki.eclipse.org/JWT_Metamodel .
>>>
>>> Regards,
>>> Marc Dutoo
>>> Open Wide
>>> Eclipse JWT co-lead
Re: Extending JWT's EMF metamodel [message #26802 is a reply to message #26767] Wed, 02 July 2008 13:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
Registered: July 2009
Senior Member
Marc,

Comments below.

Marc Dutoo wrote:
> Hi Ed
>
> First thanks for trying to make some sens of my questions ;)
>
> Also much thanks for the EFactoryImpl customization code. It is nice
> to be able to have such a fully generic solution whatever the
> extensions ecores !
>
>
> Now about the eReference proxy problem :
>
> I would agree with you it is not a static vs dynamic problem, but an
> external definition proxy problem, and in this case you are right to
> point at the URI
>
> So I've tried the following URIs when defining in my ecore extension
> the target type of my "dynaspectproperty" reference :
>
>
> OK (local type, no proxy) :
>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="dynaspectproperty" upperBound="-1" eType="#//CustomElement"
> containment="true"/>
>
>
> Not OK 1 :
>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="dynaspectproperty" upperBound="-1" eType="core:Property
> java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
> containment="true"/>
>
> Explanation :
>
> proxy resolution using XMLHandler.createObjectFromTypeName() fails
> while trying to set the eType feature to an instance of EMF Property
> (backed up by the java class PropertyImpl), whereas it should be the
> instance of EMF Class (backed up by the java class ClassImpl) with the
> name "Property".
Is "java://org.eclipse.jwt.we.model.core.CorePackage" the nsURI of your
package? I don't know of any PropertyImpl Java class, except for the
one in UML, so that's really confusing. Oh wait. What's core:Property?
Shouldn't this be "ecore:EClass"? This QName determines what type of
instance is created to act as a proxy.
>
>
> Not OK 2
> :
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="dynaspectproperty" upperBound="-1"
> eType="java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
> containment="true"/>
>
> Explanation :
>
> proxy resolution using XMLHandler.createObjectFromFeatureType() fails
> while trying to set the eType feature to the instance of EMF Class
> (backed up by the java class ClassImpl) with the name "eClassifier"
> (because "eClassifier" is the type of the "eType" feature of the
> eReference class)
The QName is needed to create a proxy of the right type.
>
>
> Is there any other way (URIs) to refer to a static model ?
>
>
> Some more details on the context of my problem :
>
> Base metamodel :
> * defined as static EMF in WEMetaModel.ecore, and generated from
> its genmodel as a host of packages, java classes and interfaces
> * contains static classes like ModelElement, Property, Aspect
>
> Extension metamodel :
> * on ModelElement, an Aspect-typed "aspects" relation is defined
> * Aspect's generated impl AspectImpl serves as the impl of dynamic
> EMF extensions (in a generic manner, thanks to your code)
>
> Custom extension metamodel :
> * defined as dynamic EMF in WEMetaModel_custom.ecore
> * contains a dynamic class CustomAspect extending Aspect, and
> others like CustomElement
> * on CustomAspect I've tried to define a "dynaspectproperty"
> reference in different ways depicted above.
>
> Regards,
> Marc
>
> Ed Merks a écrit :
>> Marc,
>>
>> Comments below.
>>
>> Marc Dutoo wrote:
>>> Hi all
>>>
>>> Please reply to this message instead so it also get posted in JWT's
>>> forum.
>>>
>>> Regards,
>>> Marc
>>>
>>> Marc Dutoo a écrit :
>>>> Hi all
>>>>
>>>> In the project Eclipse JWT, we manage workflows using
>>>> ecore-specified XMI models and we want to let our users define and
>>>> add custom information in it.
>>>>
>>>> We've logically though about allowing to define ecore metamodels
>>>> than extend ours, and about the possibilities of Dynamic EMF. So
>>>> we've tried a few things (using Europa's EMF) and come across what
>>>> seem to be limitations of extending EMF, especially concerning
>>>> typing of relations :
>>>>
>>>> * a dynamic class can only extend a non-interface, non-abstract
>>>> static class. OK, actually I can agree with this one ;)
>> Yep. That's because it needs to be able to create an instance of the
>> Impl class that it can extend. In hindsight, for dealing with
>> proxies, it would have been nicer if you could always create an
>> instance of even an abstract class, but some internal mechanism, but
>> this would force clients to always provide a non-abstract impl class;
>> it's too late to foist that on clients now.
>>>>
>>>> * in order to create dynamic extensions inheriting from this
>>>> non-interface, non-abstract static class, I've had to create and
>>>> register a custom factory that does this work for the package
>>>> containing the dynamic ecore extension. Well, ok again, we could
>>>> automatically do this for all ecores that are found in a given place.
>> No, this logic in EFactoryImpl should do the trick of creating an
>> instance of the first super type with an implementation class.
>>
>> public EObject create(EClass eClass)
>> {
>> if (getEPackage() != eClass.getEPackage() ||
>> eClass.isAbstract())
>> {
>> throw new IllegalArgumentException("The class '" +
>> eClass.getName() + "' is not a valid classifier");
>> }
>>
>> for (List<EClass> eSuperTypes = eClass.getESuperTypes();
>> !eSuperTypes.isEmpty(); )
>> {
>> EClass eSuperType = eSuperTypes.get(0);
>> if (eSuperType.getInstanceClass() != null)
>> {
>> EObject result =
>> eSuperType.getEPackage().getEFactoryInstance().create(eSuper Type);
>> ((InternalEObject)result).eSetClass(eClass);
>> return result;
>> }
>> eSuperTypes = eSuperType.getESuperTypes();
>> }
>>
>> return basicCreate(eClass);
>> }
>>
>>>>
>>>> * Now to the fun stuff : I defined in a dynamic EMF extension to
>>>> my core, static metamodel a containment eReference that whose
>>>> target type is a core, static type, but any sample model fails to
>>>> load. It appears that proxy resolution fails for my eReference at
>>>> parsing : it goes through XMLHandler.setFeatureValue()'s proxy
>>>> handling code at line 2628 where either
>>>> createObjectFromFeatureType() believes the eReference's eType is
>>>> eClassifier (because it is the type of the "eType" feature of
>>>> EReference), or createObjectFromTypeName() believes the
>>>> eReference's eType is PropertyImpl (whereas it should be a
>>>> ClassImpl with name Property).
>> What's PropertyImpl? It sounds like some crossing of meta model
>> boundaries here.
>>>>
>>>> * and upside down, I defined a core, static-typed element under
>>>> a dynamic defined, but was not able to load a sample following this
>>>> model, for the same reason. Though proxy resolution works fine for
>>>> attributes, or if typing the dynamic-defined relation with a
>>>> dynamic-defined extension of a core, static type.
>>>>
>>>> Any feedback about this behaviour ?
>> I'm totally confused. :-P
>>
>> Maybe you could be a bit more concrete about the nature of these
>> extensions you wrote. Generally EMF won't care if the type of an
>> EReference is a dynamic EClass or a static EClass. BUT, it's
>> important that if you want to static EClass, your Ecore model needs
>> to refer to that static model (via the nsURI) and not tot he dynamic
>> model (i.e., the serialized .ecore version in the model folder).
>>>>
>>>>
>>>> NB. for those more interested about the "requirements" side of our
>>>> endeavours, you can look here see more here
>>>> http://wiki.eclipse.org/JWT_Metamodel .
>>>>
>>>> Regards,
>>>> Marc Dutoo
>>>> Open Wide
>>>> Eclipse JWT co-lead
Re: Extending JWT's EMF metamodel [message #26844 is a reply to message #26802] Thu, 03 July 2008 04:40 Go to previous message
Marc Dutoo is currently offline Marc Dutoo
Messages: 71
Registered: July 2009
Member
Hi Ed

Oops you're right, with "ecore:EClass" it works :

<eStructuralFeatures xsi:type="ecore:EReference"
name="dynaspectproperty" upperBound="-1" eType="ecore:EClass
java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
containment="true"/>

loads OK !

Thanks very much, it was almost too simple ^^

Best regards & have a nice day,
Marc

Ed Merks a écrit :
> Marc,
>
> Comments below.
>
> Marc Dutoo wrote:
>> Hi Ed
>>
>> First thanks for trying to make some sens of my questions ;)
>>
>> Also much thanks for the EFactoryImpl customization code. It is nice
>> to be able to have such a fully generic solution whatever the
>> extensions ecores !
>>
>>
>> Now about the eReference proxy problem :
>>
>> I would agree with you it is not a static vs dynamic problem, but an
>> external definition proxy problem, and in this case you are right to
>> point at the URI
>>
>> So I've tried the following URIs when defining in my ecore extension
>> the target type of my "dynaspectproperty" reference :
>>
>>
>> OK (local type, no proxy) :
>>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="dynaspectproperty" upperBound="-1" eType="#//CustomElement"
>> containment="true"/>
>>
>>
>> Not OK 1 :
>>
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="dynaspectproperty" upperBound="-1" eType="core:Property
>> java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
>> containment="true"/>
>>
>> Explanation :
>>
>> proxy resolution using XMLHandler.createObjectFromTypeName() fails
>> while trying to set the eType feature to an instance of EMF Property
>> (backed up by the java class PropertyImpl), whereas it should be the
>> instance of EMF Class (backed up by the java class ClassImpl) with the
>> name "Property".
> Is "java://org.eclipse.jwt.we.model.core.CorePackage" the nsURI of your
> package? I don't know of any PropertyImpl Java class, except for the
> one in UML, so that's really confusing. Oh wait. What's core:Property?
> Shouldn't this be "ecore:EClass"? This QName determines what type of
> instance is created to act as a proxy.
>>
>>
>> Not OK 2
>> :
>> <eStructuralFeatures xsi:type="ecore:EReference"
>> name="dynaspectproperty" upperBound="-1"
>> eType="java://org.eclipse.jwt.we.model.core.CorePackage#//Property"
>> containment="true"/>
>>
>> Explanation :
>>
>> proxy resolution using XMLHandler.createObjectFromFeatureType() fails
>> while trying to set the eType feature to the instance of EMF Class
>> (backed up by the java class ClassImpl) with the name "eClassifier"
>> (because "eClassifier" is the type of the "eType" feature of the
>> eReference class)
> The QName is needed to create a proxy of the right type.
>>
>>
>> Is there any other way (URIs) to refer to a static model ?
>>
>>
>> Some more details on the context of my problem :
>>
>> Base metamodel :
>> * defined as static EMF in WEMetaModel.ecore, and generated from
>> its genmodel as a host of packages, java classes and interfaces
>> * contains static classes like ModelElement, Property, Aspect
>>
>> Extension metamodel :
>> * on ModelElement, an Aspect-typed "aspects" relation is defined
>> * Aspect's generated impl AspectImpl serves as the impl of dynamic
>> EMF extensions (in a generic manner, thanks to your code)
>>
>> Custom extension metamodel :
>> * defined as dynamic EMF in WEMetaModel_custom.ecore
>> * contains a dynamic class CustomAspect extending Aspect, and
>> others like CustomElement
>> * on CustomAspect I've tried to define a "dynaspectproperty"
>> reference in different ways depicted above.
>>
>> Regards,
>> Marc
>>
>> Ed Merks a écrit :
>>> Marc,
>>>
>>> Comments below.
>>>
>>> Marc Dutoo wrote:
>>>> Hi all
>>>>
>>>> Please reply to this message instead so it also get posted in JWT's
>>>> forum.
>>>>
>>>> Regards,
>>>> Marc
>>>>
>>>> Marc Dutoo a écrit :
>>>>> Hi all
>>>>>
>>>>> In the project Eclipse JWT, we manage workflows using
>>>>> ecore-specified XMI models and we want to let our users define and
>>>>> add custom information in it.
>>>>>
>>>>> We've logically though about allowing to define ecore metamodels
>>>>> than extend ours, and about the possibilities of Dynamic EMF. So
>>>>> we've tried a few things (using Europa's EMF) and come across what
>>>>> seem to be limitations of extending EMF, especially concerning
>>>>> typing of relations :
>>>>>
>>>>> * a dynamic class can only extend a non-interface, non-abstract
>>>>> static class. OK, actually I can agree with this one ;)
>>> Yep. That's because it needs to be able to create an instance of the
>>> Impl class that it can extend. In hindsight, for dealing with
>>> proxies, it would have been nicer if you could always create an
>>> instance of even an abstract class, but some internal mechanism, but
>>> this would force clients to always provide a non-abstract impl class;
>>> it's too late to foist that on clients now.
>>>>>
>>>>> * in order to create dynamic extensions inheriting from this
>>>>> non-interface, non-abstract static class, I've had to create and
>>>>> register a custom factory that does this work for the package
>>>>> containing the dynamic ecore extension. Well, ok again, we could
>>>>> automatically do this for all ecores that are found in a given place.
>>> No, this logic in EFactoryImpl should do the trick of creating an
>>> instance of the first super type with an implementation class.
>>>
>>> public EObject create(EClass eClass)
>>> {
>>> if (getEPackage() != eClass.getEPackage() ||
>>> eClass.isAbstract())
>>> {
>>> throw new IllegalArgumentException("The class '" +
>>> eClass.getName() + "' is not a valid classifier");
>>> }
>>>
>>> for (List<EClass> eSuperTypes = eClass.getESuperTypes();
>>> !eSuperTypes.isEmpty(); )
>>> {
>>> EClass eSuperType = eSuperTypes.get(0);
>>> if (eSuperType.getInstanceClass() != null)
>>> {
>>> EObject result =
>>> eSuperType.getEPackage().getEFactoryInstance().create(eSuper Type);
>>> ((InternalEObject)result).eSetClass(eClass);
>>> return result;
>>> }
>>> eSuperTypes = eSuperType.getESuperTypes();
>>> }
>>>
>>> return basicCreate(eClass);
>>> }
>>>
>>>>>
>>>>> * Now to the fun stuff : I defined in a dynamic EMF extension to
>>>>> my core, static metamodel a containment eReference that whose
>>>>> target type is a core, static type, but any sample model fails to
>>>>> load. It appears that proxy resolution fails for my eReference at
>>>>> parsing : it goes through XMLHandler.setFeatureValue()'s proxy
>>>>> handling code at line 2628 where either
>>>>> createObjectFromFeatureType() believes the eReference's eType is
>>>>> eClassifier (because it is the type of the "eType" feature of
>>>>> EReference), or createObjectFromTypeName() believes the
>>>>> eReference's eType is PropertyImpl (whereas it should be a
>>>>> ClassImpl with name Property).
>>> What's PropertyImpl? It sounds like some crossing of meta model
>>> boundaries here.
>>>>>
>>>>> * and upside down, I defined a core, static-typed element under
>>>>> a dynamic defined, but was not able to load a sample following this
>>>>> model, for the same reason. Though proxy resolution works fine for
>>>>> attributes, or if typing the dynamic-defined relation with a
>>>>> dynamic-defined extension of a core, static type.
>>>>>
>>>>> Any feedback about this behaviour ?
>>> I'm totally confused. :-P
>>>
>>> Maybe you could be a bit more concrete about the nature of these
>>> extensions you wrote. Generally EMF won't care if the type of an
>>> EReference is a dynamic EClass or a static EClass. BUT, it's
>>> important that if you want to static EClass, your Ecore model needs
>>> to refer to that static model (via the nsURI) and not tot he dynamic
>>> model (i.e., the serialized .ecore version in the model folder).
>>>>>
>>>>>
>>>>> NB. for those more interested about the "requirements" side of our
>>>>> endeavours, you can look here see more here
>>>>> http://wiki.eclipse.org/JWT_Metamodel .
>>>>>
>>>>> Regards,
>>>>> Marc Dutoo
>>>>> Open Wide
>>>>> Eclipse JWT co-lead
Previous Topic:Article on ESB mentioning Eclipse JWT & PVM
Next Topic:Article : XPDL vs BPEL in light of BPMN mode
Goto Forum:
  


Current Time: Fri Jul 25 12:15:49 EDT 2014

Powered by FUDForum. Page generated in 0.02045 seconds