Class ReferencedGrammarDiagnosticsInfo
java.lang.Object
org.eclipse.lemminx.extensions.xerces.ReferencedGrammarDiagnosticsInfo
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 Summary
ConstructorsConstructorDescriptionReferencedGrammarDiagnosticsInfo(String grammarURI, URIResolverExtensionManager resolverExtensionManager, org.eclipse.lsp4j.Diagnostic diagnostic) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDiagnosticRelatedInformation(org.eclipse.lsp4j.DiagnosticRelatedInformation relatedInformation) Add diagnostic related information.voidaddError(boolean fatalError) Increment the error number to update the diagnostic root message.Returns the DOM document of the referenced grammar.boolean
-
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
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()
-