Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Validating EMF Models
icon4.gif  Validating EMF Models [message #1220820] Fri, 13 December 2013 19:53 Go to next message
Rodolfo Rieckhof is currently offline Rodolfo RieckhofFriend
Messages: 5
Registered: December 2013
Junior Member
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. Could anyone tell me what would be the best way, pros and contras of the techniques or if it is a better way.

Regards,
Rodolfo

Re: Validating EMF Models [message #1220852 is a reply to message #1220820] Sat, 14 December 2013 09:47 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
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/
Previous Topic:[EMF Client Platform] Modifying content of ECPProject in non-UI thread
Next Topic:[Teneo] inheritance mapping - cannot alter default strategy
Goto Forum:
  


Current Time: Tue Apr 16 23:49:42 GMT 2024

Powered by FUDForum. Page generated in 7.29499 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top