|
Re: Validating EMF Models [message #1220852 is a reply to message #1220820] |
Sat, 14 December 2013 09:47 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Rodofolfo,<br>
<br>
Comments below.<br>
<br>
<div class="moz-cite-prefix">On 13/12/2013 9:57 PM, Rodolfo Rieckhof
wrote:<br>
</div>
<blockquote cite="mid:l8fsbo$r1m$1@xxxxxxxxe.org" type="cite">Hi,
I would like to know which would be the best way to validate an
EMF model. From my point of view I could use EMF Validation that
has a good integration with the IDE, Query the Model using
something like incQuery and checking for invalid objects, or just
traverse the model myself looking for invalid objects. </blockquote>
Or you could just more basic things like:<br>
<blockquote><a class="moz-txt-link-freetext" href="http://help.eclipse.org/kepler/index.jsp?topic=/org.eclipse.emf.doc/references/overview/EMF.Validation.html">http://help.eclipse.org/kepler/index.jsp?topic=/org.eclipse.emf.doc/references/overview/EMF.Validation.html</a><br>
</blockquote>
<blockquote cite="mid:l8fsbo$r1m$1@xxxxxxxxe.org" type="cite">Could
anyone tell me what would be the best way, pros and contras of the
techniques or if it is a better way.
<br>
</blockquote>
The Query framework is extremely poor in my option. Basic EMF
validation is really not so different from your "traverse the model
myself looking for invalid objects", i.e., you basically define
objects that when visited you will do a certain type of validation.
The EMF Validation framework is useful if you want pluggable
validation external to the definition of the model; validation that
can be enabled or disabled by the client. IncQuery is really cool
for high performance queries that update automatically as the model
updates.<br>
<blockquote cite="mid:l8fsbo$r1m$1@xxxxxxxxe.org" type="cite">
<br>
Regards, Rodolfo
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02999 seconds