Community
Participate
Working Groups
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.
Created attachment 61127 [details] Suggested patch
Created attachment 61133 [details] Updated patch with copyright dates fixed
Created attachment 61275 [details] Proposed patch * Added @since tags to new API * Added accessor method for constraint filters on IValidator
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
Move to verified as per bug 206558.