Class LSPErrorReporterForRNC

java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.validator.LSPErrorReporterForRNC
All Implemented Interfaces:
ErrorHandler

public class LSPErrorReporterForRNC extends Object implements ErrorHandler
Bridges Jing's SAX ErrorHandler to LSP Diagnostic objects.

When Jing validates an RNC schema via CompactParseable, it reports errors through SAX's ErrorHandler interface (line/column based). This class converts those SAX errors into LSP diagnostics with proper ranges, error codes, and severity levels.

Use case: Jing reports "reference to undefined pattern" at line 5, column 12. This reporter maps the error message to RNCErrorCode.UndefinedPattern, uses RNCPositionUtils to select the word at that position, and produces a diagnostic that highlights the undefined identifier.

See Also: