When using the EMF Validation Framework (ModelValidationService along
with constraints), how do I provide user-defined context data to the
constraints? AbstractModelConstraint.validate() provides an
IValidationContext from which I am able to retrieve the target and other
details, but how can I provide user context data to the constraint? I
understand that IValidationContext.get/putCurrentConstraintData() is for
a different purpose.
In the EValidator api, I see that Diagnostician.validate() gives the
option to add user data as a context map (Map<Object, Object> context).
Is there something similar when using the EMF Validation Framework?