|
Re: Basic validation [message #383928 is a reply to message #383920] |
Sat, 14 February 2009 13:17 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Adrian,
Please use the EMF newsgroup, which I've included in the "to" list of
the reply, for asking questions about EMF.
Yes, it's possible to create a circular containment. We should ensure
that this doesn't break EcoreUtil.getURI with an out of memory exception
and should ensure that the Diagnostician diagnoses it rather then stack
overflowing. Please open an EMF bugzilla and I'll look into addressing
both issues.
Adrian Rutle wrote:
> Hi
> I want to learn how to validate Ecore models against basic constraints
> such as multiplicity and containment. I have created a simple Ecore
> model and generated code for it (attached). I have also written a test
> class to populate the model programmatically (attached).
>
> Have I done everything correct? If yes, why the validation of "re"
> returns true even though I have a cyclic containment: c1 contains e1 and
> e1 contains c1.
>
> I have also generated the edit and editor plugins. When I run the editor
> plugin, I still can create cyclic containment without getting any
> validation problems. However, I think in that case the names of the
> objects are not considered as identifiers.
>
> Best regards
>
> Adrian
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Basic validation [message #614946 is a reply to message #383920] |
Sat, 14 February 2009 13:17 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Adrian,
Please use the EMF newsgroup, which I've included in the "to" list of
the reply, for asking questions about EMF.
Yes, it's possible to create a circular containment. We should ensure
that this doesn't break EcoreUtil.getURI with an out of memory exception
and should ensure that the Diagnostician diagnoses it rather then stack
overflowing. Please open an EMF bugzilla and I'll look into addressing
both issues.
Adrian Rutle wrote:
> Hi
> I want to learn how to validate Ecore models against basic constraints
> such as multiplicity and containment. I have created a simple Ecore
> model and generated code for it (attached). I have also written a test
> class to populate the model programmatically (attached).
>
> Have I done everything correct? If yes, why the validation of "re"
> returns true even though I have a cyclic containment: c1 contains e1 and
> e1 contains c1.
>
> I have also generated the edit and editor plugins. When I run the editor
> plugin, I still can create cyclic containment without getting any
> validation problems. However, I think in that case the names of the
> objects are not considered as identifiers.
>
> Best regards
>
> Adrian
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02160 seconds