Class LSPErrorReporterForXML
java.lang.Object
org.apache.xerces.impl.XMLErrorReporter
org.eclipse.lemminx.extensions.xerces.AbstractLSPErrorReporter
org.eclipse.lemminx.extensions.xerces.AbstractReferencedGrammarLSPErrorReporter
org.eclipse.lemminx.extensions.contentmodel.participants.diagnostics.LSPErrorReporterForXML
- All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent
LSP error reporter for XML syntax and error grammar (XML Schema/DTD).
-
Field Summary
Fields inherited from class org.eclipse.lemminx.extensions.xerces.AbstractReferencedGrammarLSPErrorReporter
contentModelManagerFields inherited from class org.eclipse.lemminx.extensions.xerces.AbstractLSPErrorReporter
NO_RANGEFields inherited from class org.apache.xerces.impl.XMLErrorReporter
CONTINUE_AFTER_FATAL_ERROR, ERROR_HANDLER, fContinueAfterFatalError, fDefaultErrorHandler, fErrorHandler, fLocale, fLocator, fMessageFormatters, SEVERITY_ERROR, SEVERITY_FATAL_ERROR, SEVERITY_WARNING -
Constructor Summary
ConstructorsConstructorDescriptionLSPErrorReporterForXML(DOMDocument xmlDocument, List<org.eclipse.lsp4j.Diagnostic> diagnostics, ContentModelManager contentModelManager, boolean hasRelatedInformation, Map<String, ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.lsp4j.RangegetReferencedGrammarRange(String grammarURI) protected booleanisIgnoreFatalError(String key) protected org.eclipse.lsp4j.RangetoLSPRange(org.apache.xerces.xni.XMLLocator location, String key, Object[] arguments, String message, org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity, boolean fatalError, DOMDocument document, String documentOrGrammarURI, boolean errorForDocument) Methods inherited from class org.eclipse.lemminx.extensions.xerces.AbstractReferencedGrammarLSPErrorReporter
endReport, fillReferencedGrammarDiagnostic, getCode, getMessage, getSeverity, toLSPRangeMethods inherited from class org.eclipse.lemminx.extensions.xerces.AbstractLSPErrorReporter
addDiagnostic, createDefaultRange, getDOMDocument, initializeReporter, initializeReporter, reportError, setCurrentErrorMethods inherited from class org.apache.xerces.impl.XMLErrorReporter
getErrorHandler, getFeature, getFeatureDefault, getLocale, getMessageFormatter, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, getSAXErrorHandler, putMessageFormatter, removeMessageFormatter, reportError, reportError, reportError, reset, setDocumentLocator, setFeature, setLocale, setProperty
-
Constructor Details
-
LSPErrorReporterForXML
public LSPErrorReporterForXML(DOMDocument xmlDocument, List<org.eclipse.lsp4j.Diagnostic> diagnostics, ContentModelManager contentModelManager, boolean hasRelatedInformation, Map<String, ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache)
-
-
Method Details
-
toLSPRange
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, String documentOrGrammarURI, boolean errorForDocument) - Specified by:
toLSPRangein classAbstractReferencedGrammarLSPErrorReporter
-
isIgnoreFatalError
- Overrides:
isIgnoreFatalErrorin classAbstractLSPErrorReporter
-
getReferencedGrammarRange
- Specified by:
getReferencedGrammarRangein classAbstractReferencedGrammarLSPErrorReporter
-