Bug 177644 - IValidator should provide mechanism to filter constraints
Summary: IValidator should provide mechanism to filter constraints
Status: VERIFIED FIXED
Alias: None
Product: EMF Services
Classification: Modeling
Component: Validation (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 enhancement
Target Milestone: ---   Edit
Assignee: David Cummings CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, contributed
Depends on:
Blocks:
 
Reported: 2007-03-15 16:06 EDT by Christian Damus CLA
Modified: 2017-02-24 15:09 EST (History)
0 users

See Also:


Attachments
Suggested patch (14.14 KB, patch)
2007-03-16 12:56 EDT, David Cummings CLA
no flags Details | Diff
Updated patch with copyright dates fixed (16.50 KB, patch)
2007-03-16 13:26 EDT, David Cummings CLA
no flags Details | Diff
Proposed patch (16.85 KB, patch)
2007-03-19 09:15 EDT, David Cummings CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2007-03-15 16:06:31 EDT
It would be useful if a validator could be configured using a constraints filter.  When running validation, the validator would ensure that it only runs constraints that are accepted by the filter.

EMFT validation already provides the FilteredCollection.Filter class which is used for filtering constraints (specifically in the batch validator).  An addConstraintsFilter method could be added to IValidator which accepts a FilteredCollection.Filter.
Comment 1 David Cummings CLA 2007-03-16 12:56:55 EDT
Created attachment 61127 [details]
Suggested patch
Comment 2 David Cummings CLA 2007-03-16 13:26:25 EDT
Created attachment 61133 [details]
Updated patch with copyright dates fixed
Comment 3 David Cummings CLA 2007-03-19 09:15:10 EDT
Created attachment 61275 [details]
Proposed patch

* Added @since tags to new API
* Added accessor method for constraint filters on IValidator
Comment 4 Christian Damus CLA 2007-03-19 14:18:44 EDT
Committed the patch with the following changes:

  - added IValidator::removeConstraintFilter method for symmetry
  - made IValidator::getConstraintFilters result read-only
  - updated JUnit tests to remove the filter and check that filtering
    no longer happens
Comment 5 Nick Boldt CLA 2008-01-28 16:35:32 EST
Move to verified as per bug 206558.