Class LSPXMLGrammarPreparser
java.lang.Object
org.apache.xerces.parsers.XMLGrammarPreparser
org.eclipse.lemminx.extensions.xsd.participants.diagnostics.LSPXMLGrammarPreparser
public class LSPXMLGrammarPreparser
extends org.apache.xerces.parsers.XMLGrammarPreparser
Xerces
XMLGrammarPreparser doesn't provide the capability to override
the XMLErrorReporter which is required to get XMLl This class
overrides XMLGrammarPreparser.preparseGrammar(String, XMLInputSource)
to use LSP error reporter.-
Field Summary
Fields inherited from class org.apache.xerces.parsers.XMLGrammarPreparser
ENTITY_RESOLVER, ERROR_HANDLER, ERROR_REPORTER, fEntityResolver, fErrorReporter, fGrammarPool, fLocale, fSymbolTable, GRAMMAR_POOL, SYMBOL_TABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.xerces.xni.grammars.GrammarpreparseGrammar(String type, org.apache.xerces.xni.parser.XMLInputSource is) voidsetErrorReporter(org.apache.xerces.impl.XMLErrorReporter errorReporter) voidsetProperty(String propId, Object value) Methods inherited from class org.apache.xerces.parsers.XMLGrammarPreparser
getEntityResolver, getErrorHandler, getFeature, getGrammarPool, getLoader, getLocale, getProperty, registerPreparser, setEntityResolver, setErrorHandler, setFeature, setGrammarPool, setLocale
-
Constructor Details
-
LSPXMLGrammarPreparser
public LSPXMLGrammarPreparser()
-
-
Method Details
-
preparseGrammar
public org.apache.xerces.xni.grammars.Grammar preparseGrammar(String type, org.apache.xerces.xni.parser.XMLInputSource is) throws org.apache.xerces.xni.XNIException, IOException - Overrides:
preparseGrammarin classorg.apache.xerces.parsers.XMLGrammarPreparser- Throws:
org.apache.xerces.xni.XNIExceptionIOException
-
setProperty
- Overrides:
setPropertyin classorg.apache.xerces.parsers.XMLGrammarPreparser
-
setErrorReporter
public void setErrorReporter(org.apache.xerces.impl.XMLErrorReporter errorReporter)
-