Interface ISuppressSettingsManager

  • All Superinterfaces:
    IManagedService

    public interface ISuppressSettingsManager
    extends IManagedService
    Suppress settings manager is responsible for answering the question about check suppressions.
    • Method Detail

      • isSuppressed

        boolean isSuppressed​(Object object,
                             String checkId,
                             String checkContributor)
        Answers to the question whether the particular check is suppressed for selected object.
        Parameters:
        object - object to be examined
        checkId - check identifier
        Returns:
        true if the check is suppressed.
      • excludeSuppressedCheckIds

        Set<String> excludeSuppressedCheckIds​(org.eclipse.emf.ecore.EObject source,
                                              org.eclipse.core.resources.IProject project,
                                              Set<String> checkIds,
                                              IBslElementRegionProvider bslElementRegionProvider)
        Excludes suppressed check ids from set of given check ids.
        Parameters:
        source - the object being validated, cannot be null
        project - the project, can be null
        checkIds - , the original set of check ids, cannot be null
        bslElementRegionProvider - , the IBslElementRegionProvider, cannot be null
        Returns:
        the updated set of check ids w/o suppressions, never null
      • addSuppression

        void addSuppression​(IBmObject target,
                            CheckUid checkUid)
        Adds a suppression of the given check for a specified model object
        Parameters:
        target - The target object. May not be null
        checkUid - The identifier of the check to suppress. May not be null