Class ResourceValidatorImpl

    • Constructor Detail

      • ResourceValidatorImpl

        public ResourceValidatorImpl()
    • Method Detail

      • validate

        public java.util.List<Issue> validate​(org.eclipse.emf.ecore.resource.Resource resource,
                                              CheckMode mode,
                                              org.eclipse.xtext.util.CancelIndicator mon)
                                       throws OperationCanceledError
        Description copied from interface: IResourceValidator
        Validates the given resource according to the mode. An optional CancelIndicator may be provide to allow the method to exit early in case the long running validation was canceled by the user.
        Specified by:
        validate in interface IResourceValidator
        Returns:
        all issues of the underlying resources (includes syntax errors as well as semantic problems)
        Throws:
        OperationCanceledError - if the validation was cancelled, the method may exit with an OperationCanceledError
      • collectResourceDiagnostics

        protected void collectResourceDiagnostics​(org.eclipse.emf.ecore.resource.Resource resource,
                                                  org.eclipse.xtext.util.CancelIndicator monitor,
                                                  org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
        Since:
        2.7
      • validate

        protected void validate​(org.eclipse.emf.ecore.resource.Resource resource,
                                CheckMode mode,
                                org.eclipse.xtext.util.CancelIndicator monitor,
                                org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
        Since:
        2.4
      • validate

        protected void validate​(org.eclipse.emf.ecore.resource.Resource resource,
                                org.eclipse.emf.ecore.EObject element,
                                CheckMode mode,
                                org.eclipse.xtext.util.CancelIndicator monitor,
                                org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
        Since:
        2.4
      • resolveProxies

        protected void resolveProxies​(org.eclipse.emf.ecore.resource.Resource resource,
                                      org.eclipse.xtext.util.CancelIndicator monitor)
      • createAcceptor

        protected org.eclipse.xtext.util.IAcceptor<Issue> createAcceptor​(java.util.List<Issue> result)
      • issueFromXtextResourceDiagnostic

        protected void issueFromXtextResourceDiagnostic​(org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic,
                                                        Severity severity,
                                                        org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
      • issueFromEValidatorDiagnostic

        protected void issueFromEValidatorDiagnostic​(org.eclipse.emf.common.util.Diagnostic diagnostic,
                                                     org.eclipse.xtext.util.IAcceptor<Issue> acceptor)
      • setDiagnostician

        public void setDiagnostician​(org.eclipse.emf.ecore.util.Diagnostician diagnostician)
      • getDiagnostician

        public org.eclipse.emf.ecore.util.Diagnostician getDiagnostician()