Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Object simple validation against ecore model
Object simple validation against ecore model [message #430633] Sun, 31 May 2009 22:51 Go to next message
Svetoslav Missing name is currently offline Svetoslav Missing nameFriend
Messages: 17
Registered: July 2009
Junior Member
Hello.

I need to run a validation on my Objects/Resources against the ecore
model. I was not able to find something useful on the net. I do not need
some complex stuff like OCL or the validation framework. I simply want to
validate the object against the ecore model. For example if I have
something like that defined in the ecore model:

School
- Name (1)
- Students (1 ..*)


I would like to run a validation on this. If the object does not have name
or students set then I would like to throw an exception..

Regards,
Svetoslav
Re: Object simple validation against ecore model [message #430634 is a reply to message #430633] Sun, 31 May 2009 23:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000400070505070306080108
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Svetoslav,

Have a read through

http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/references/overview/EMF.Validation.html



Svetoslav wrote:
> Hello.
> I need to run a validation on my Objects/Resources against the ecore
> model. I was not able to find something useful on the net. I do not
> need some complex stuff like OCL or the validation framework. I simply
> want to validate the object against the ecore model. For example if I
> have something like that defined in the ecore model:
>
> School
> - Name (1)
> - Students (1 ..*)
>
>
> I would like to run a validation on this. If the object does not have
> name or students set then I would like to throw an exception..
>
> Regards,
> Svetoslav
>

--------------000400070505070306080108
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Svetoslav,<br>
<br>
Have a read through <br>
<blockquote><a
href=" http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/references/overview/EMF.Validation.html"> http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/references/overview/EMF.Validation.html</a>
<br>
</blockquote>
<br>
Svetoslav wrote:
<blockquote
cite="mid:b6838839e55a9cda0bf02ad2aa2c4321$1@www.eclipse.org"
type="cite">Hello. <br>
I need to run a validation on my Objects/Resources against the ecore
model. I was not able to find something useful on the net. I do not
need some complex stuff like OCL or the validation framework. I simply
want to validate the object against the ecore model. For example if I
have something like that defined in the ecore model:
<br>
<br>
School
<br>
- Name (1)
<br>
- Students (1 ..*)
<br>
<br>
<br>
I would like to run a validation on this. If the object does not have
name or students set then I would like to throw an exception..
<br>
<br>
Regards,
<br>
Svetoslav
<br>
<br>
</blockquote>
</body>
</html>

--------------000400070505070306080108--


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Teneo: Manually setting id
Next Topic:NPE on transaction commit
Goto Forum:
  


Current Time: Sat Apr 27 04:48:02 GMT 2024

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

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

Back to the top