Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Can the Validation Framework return the line number?
Can the Validation Framework return the line number? [message #419174] Sun, 11 May 2008 18:31 Go to next message
Al B is currently offline Al BFriend
Messages: 130
Registered: July 2009
Senior Member
Hi there,

The EMF Validation Framework (IBatchValidator) produces IStatus
object, however, can I determine the line in the XMI file where the
element violating the constraint is located?

Thanks you in advance!
Re: Can the Validation Framework return the line number? [message #419179 is a reply to message #419174] Sun, 11 May 2008 23:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000702070404040200000000
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

AJ,

Someone else was asking this earlier in the week. There is a URI
indicating the actual object with the problem, but EMF doesn't have
support for mapping an object to a line number in its
serialization:196618 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=196618>

AJ wrote:
> Hi there,
>
> The EMF Validation Framework (IBatchValidator) produces IStatus
> object, however, can I determine the line in the XMI file where the
> element violating the constraint is located?
>
> Thanks you in advance!
>


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

<!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">
AJ,<br>
<br>
Someone else was asking this earlier in the week.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Can the Validation Framework return the line number? [message #419205 is a reply to message #419179] Mon, 12 May 2008 16:22 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Ed, AJ,

In an IDE with graphical or otherwise structured editors, line numbers
aren't particularly interesting. Moreover, they are only relevant for
file storage. Repository storage wouldn't have such a notion.

Of course, when using XML files, this might be of use to other XML-based
applications ...

cW

Ed Merks wrote:
> AJ,
>
> Someone else was asking this earlier in the week. There is a URI
> indicating the actual object with the problem, but EMF doesn't have
> support for mapping an object to a line number in its
> serialization:196618 <https://bugs.eclipse.org/bugs/show_bug.cgi?id=196618>
>
> AJ wrote:
>> Hi there,
>>
>> The EMF Validation Framework (IBatchValidator) produces IStatus
>> object, however, can I determine the line in the XMI file where the
>> element violating the constraint is located?
>>
>> Thanks you in advance!
>>
>
Previous Topic:Customization of XML serialization
Next Topic:Re : ChangeDescription Issue
Goto Forum:
  


Current Time: Thu Apr 25 10:32:02 GMT 2024

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

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

Back to the top