Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » EMF validation: provide clientData for validationListeners from inside a constraint
EMF validation: provide clientData for validationListeners from inside a constraint [message #522322] Mon, 22 March 2010 10:37 Go to next message
Patrick Oppermann is currently offline Patrick Oppermann
Messages: 10
Registered: July 2009
Junior Member
Hello,

I need my EMF validation constraint to provide some data to a validation
listener, which can be done via IValidator.putClientData(). The problem
is, I have to make that call from my constraint's validate() method (the
constraint subclasses AbstractModelConstraint).

Is there a way to obtain the BatchValidator instance from the
constraint's validate() method (or another smart way to provide the
client data)?

Thanks in advance and greetings,
Patrick
Re: EMF validation: provide clientData for validationListeners from inside a constraint [message #522325 is a reply to message #522322] Mon, 22 March 2010 11:03 Go to previous message
Patrick Oppermann is currently offline Patrick Oppermann
Messages: 10
Registered: July 2009
Junior Member
Moving the question to the EMF mailing list.


Am 22.03.2010 11:37, schrieb Patrick Oppermann:
> Hello,
>
> I need my EMF validation constraint to provide some data to a validation
> listener, which can be done via IValidator.putClientData(). The problem
> is, I have to make that call from my constraint's validate() method (the
> constraint subclasses AbstractModelConstraint).
>
> Is there a way to obtain the BatchValidator instance from the
> constraint's validate() method (or another smart way to provide the
> client data)?
>
> Thanks in advance and greetings,
> Patrick
Previous Topic:OCL Expression error in a constraint
Next Topic:actor, usecase relationship query
Goto Forum:
  


Current Time: Tue Oct 21 00:52:03 GMT 2014

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

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