Class AbstractSimpleFilter
- java.lang.Object
-
- org.eclipse.emfforms.common.spi.validation.filter.AbstractSimpleFilter
-
- All Implemented Interfaces:
DiagnosticFilter
,ObjectFilter
,ValidationFilter
- Direct Known Subclasses:
AbstractComplexFilter
public abstract class AbstractSimpleFilter extends java.lang.Object implements ObjectFilter, DiagnosticFilter
Convenience class for custom filters. Helps to reduce clutter.- Author:
- Mat Hansen
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleFilter()
-
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emfforms.common.spi.validation.filter.ObjectFilter
skipValidation
-
-
-
-
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)
-
-