public class LSPErrorReporterForXML extends AbstractLSPErrorReporter
NO_RANGE| Constructor and Description |
|---|
LSPErrorReporterForXML(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
ContentModelManager contentModelManager,
boolean hasRelatedInformation,
Map<String,org.eclipse.lemminx.extensions.contentmodel.participants.diagnostics.ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
endReport() |
protected boolean |
isIgnoreFatalError(String key) |
protected org.eclipse.lsp4j.Range |
toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document)
Create the LSP range from the SAX error.
|
addDiagnostic, createDefaultRange, getDOMDocument, initializeReporter, initializeReporter, reportErrorgetErrorHandler, getFeature, getFeatureDefault, getLocale, getMessageFormatter, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getSAXErrorHandler, putMessageFormatter, removeMessageFormatter, reportError, reportError, reportError, reset, setDocumentLocator, setFeature, setLocale, setPropertypublic LSPErrorReporterForXML(DOMDocument xmlDocument, List<org.eclipse.lsp4j.Diagnostic> diagnostics, ContentModelManager contentModelManager, boolean hasRelatedInformation, Map<String,org.eclipse.lemminx.extensions.contentmodel.participants.diagnostics.ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache)
protected org.eclipse.lsp4j.Range toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document)
toLSPRange in class AbstractLSPErrorReporterlocation - key - arguments - document - message - the Xerces error message.diagnosticSeverity - the the Xerces severity.fatalError - true if Xerces report the error as fatal and false
otherwise.protected boolean isIgnoreFatalError(String key)
isIgnoreFatalError in class AbstractLSPErrorReporterpublic void endReport()
Copyright © 2021. All rights reserved.