Class SeverityFilter
- java.lang.Object
-
- org.eclipse.emfforms.common.spi.validation.filter.SeverityFilter
-
- All Implemented Interfaces:
DiagnosticFilter
,ValidationFilter
public class SeverityFilter extends java.lang.Object implements DiagnosticFilter
Convenience class to filterDiagnostic
s based on their severity. See ValidationService#registerValidationFilter(ValidationFilter).- Author:
- Mat Hansen
-
-
Constructor Summary
Constructors Constructor Description SeverityFilter(int minimumSeverity)
Constructor with default severity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
ignoreDiagnostic(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.Diagnostic diagnostic)
Return true if the givenDiagnostic
should be ignored.
-
-
-
Method Detail
-
ignoreDiagnostic
public boolean ignoreDiagnostic(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.Diagnostic diagnostic)
Description copied from interface:DiagnosticFilter
Return true if the givenDiagnostic
should be ignored. IgnoredDiagnostic
s will not appear in the output of ValidationService#validate(EObject).- Specified by:
ignoreDiagnostic
in interfaceDiagnosticFilter
- Parameters:
eObject
- theEObject
that has been validateddiagnostic
- theDiagnostic
as a result of the validation of the givenEObject
- Returns:
- true if the given
Diagnostic
should not be included in the output of ValidationService#validate(EObject)
-
-