Class ReferencedGrammarDiagnosticsInfo

java.lang.Object
org.eclipse.lemminx.extensions.xerces.ReferencedGrammarDiagnosticsInfo

public class ReferencedGrammarDiagnosticsInfo extends Object
The root diagnostic information when a grammar (XSD, DTD) have some errors and it is referenced in a XML. The diagnostic range covers teh location where the grammar is declared (with DOCTYPE SYSTEM, xsi:noNamespaceSchemaLocation, etc).
Author:
Angelo ZERR
  • Constructor Details

    • ReferencedGrammarDiagnosticsInfo

      public ReferencedGrammarDiagnosticsInfo(String grammarURI, URIResolverExtensionManager resolverExtensionManager, org.eclipse.lsp4j.Diagnostic diagnostic)
  • Method Details

    • addDiagnosticRelatedInformation

      public void addDiagnosticRelatedInformation(org.eclipse.lsp4j.DiagnosticRelatedInformation relatedInformation)
      Add diagnostic related information.
      Parameters:
      relatedInformation - the related information.
    • getGrammarDocument

      public DOMDocument getGrammarDocument()
      Returns the DOM document of the referenced grammar.
      Returns:
      the DOM document of the referenced grammar.
    • addError

      public void addError(boolean fatalError)
      Increment the error number to update the diagnostic root message.
      Parameters:
      diagnosticSeverity -
    • isFatalError

      public boolean isFatalError()