Class CustomCancelableDiagnostician

  • All Implemented Interfaces:
    org.eclipse.emf.ecore.EValidator, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider
    Direct Known Subclasses:
    BslCancelableDiagnostician

    public class CustomCancelableDiagnostician
    extends org.eclipse.xtext.validation.CancelableDiagnostician
    Custom CancelableDiagnostician without using of EObjectValidator. NoProxyEObjectValidator is used instead
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator

        org.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.validation.CancelableDiagnostician

        CANCEL_INDICATOR
      • Fields inherited from class org.eclipse.emf.ecore.util.Diagnostician

        eValidatorRegistry, INSTANCE, VALIDATE_RECURSIVELY
      • Fields inherited from interface org.eclipse.emf.ecore.EValidator

        MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomCancelableDiagnostician​(org.eclipse.emf.ecore.EValidator.Registry registry)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean validate​(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,​Object> context)  
      boolean validate​(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map<Object,​Object> context)  
      • Methods inherited from class org.eclipse.xtext.validation.CancelableDiagnostician

        checkCanceled, getCancelIndicator, isCanceled
      • Methods inherited from class org.eclipse.emf.ecore.util.Diagnostician

        createDefaultContext, createDefaultDiagnostic, createDefaultDiagnostic, doValidate, doValidate, doValidateContents, getFeatureLabel, getObjectLabel, getValueLabel, handleThrowable, isValidateContentsRecursively, validate, validate, validate, validate, validate
    • Constructor Detail

      • CustomCancelableDiagnostician

        @Inject
        public CustomCancelableDiagnostician​(org.eclipse.emf.ecore.EValidator.Registry registry)
        Constructor
        Parameters:
        registry - actual EValidator.Registry, cannot be null
    • Method Detail

      • validate

        public boolean validate​(org.eclipse.emf.ecore.EClass eClass,
                                org.eclipse.emf.ecore.EObject eObject,
                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                Map<Object,​Object> context)
        Specified by:
        validate in interface org.eclipse.emf.ecore.EValidator
        Overrides:
        validate in class org.eclipse.xtext.validation.CancelableDiagnostician
      • validate

        public boolean validate​(org.eclipse.emf.ecore.EObject eObject,
                                org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                Map<Object,​Object> context)
        Specified by:
        validate in interface org.eclipse.emf.ecore.EValidator
        Overrides:
        validate in class org.eclipse.emf.ecore.util.Diagnostician