Interface SubTreeFilter

  • All Superinterfaces:
    ValidationFilter
    All Known Implementing Classes:
    AbstractComplexFilter

    public interface SubTreeFilter
    extends ValidationFilter
    Interface that allows to skip the validation of sub trees. Only applicable for ValidationService#validate(java.util.Iterator) in conjunction with a EMF TreeIterator. See ValidationService#registerValidationFilter(ValidationFilter).
    Author:
    Mat Hansen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean skipSubtree​(org.eclipse.emf.ecore.EObject eObject, Optional<org.eclipse.emf.common.util.Diagnostic> diagnostic)
      Return true if the eContents (subtree) of the given EObject should not be validated.
    • Method Detail

      • skipSubtree

        boolean skipSubtree​(org.eclipse.emf.ecore.EObject eObject,
                            Optional<org.eclipse.emf.common.util.Diagnostic> diagnostic)
        Return true if the eContents (subtree) of the given EObject should not be validated. Note: this is only applicable for ValidationService#validate(java.util.Iterator) in conjunction with a EMF TreeIterator.
        Parameters:
        eObject - the parent EObject
        diagnostic - the Diagnostic for the EObject in case it has been validated.
        Returns:
        true, if the subtree of the given EObject should be skipped.