public class Controller extends java.lang.Object implements GrammarReaderController2, org.xml.sax.ErrorHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
_hadError
This flag will be set to true in case of any error.
|
private GrammarReaderController |
core
Controller works as a wrapper to this object.
|
Constructor and Description |
---|
Controller(GrammarReaderController _core) |
Modifier and Type | Method and Description |
---|---|
void |
error(java.io.IOException e,
org.xml.sax.Locator source) |
void |
error(org.xml.sax.Locator[] locs,
java.lang.String errorMessage,
java.lang.Exception nestedException) |
void |
error(javax.xml.parsers.ParserConfigurationException e,
org.xml.sax.Locator source) |
void |
error(org.xml.sax.SAXException e,
org.xml.sax.Locator source) |
void |
error(org.xml.sax.SAXParseException spe) |
void |
error(java.lang.String errorMessage,
java.lang.Exception nestedException) |
void |
fatalError(org.xml.sax.SAXParseException spe) |
GrammarReaderController |
getCore() |
protected org.xml.sax.Locator[] |
getLocator(org.xml.sax.SAXParseException spe) |
org.w3c.dom.ls.LSResourceResolver |
getLSResourceResolver()
Return the full resolver.
|
boolean |
hadError()
Returns true if an error had been reported.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Deprecated.
|
void |
setErrorFlag()
Force set the error flag to true.
|
void |
warning(org.xml.sax.Locator[] locs,
java.lang.String errorMessage) |
void |
warning(org.xml.sax.SAXParseException spe) |
private final GrammarReaderController core
private boolean _hadError
public Controller(GrammarReaderController _core)
public GrammarReaderController getCore()
public boolean hadError()
public final void setErrorFlag()
@Deprecated public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException
public void warning(org.xml.sax.Locator[] locs, java.lang.String errorMessage)
warning
in interface GrammarReaderController
public void error(org.xml.sax.Locator[] locs, java.lang.String errorMessage, java.lang.Exception nestedException)
error
in interface GrammarReaderController
public void error(java.lang.String errorMessage, java.lang.Exception nestedException)
public void fatalError(org.xml.sax.SAXParseException spe)
fatalError
in interface org.xml.sax.ErrorHandler
public void error(org.xml.sax.SAXParseException spe)
error
in interface org.xml.sax.ErrorHandler
public void warning(org.xml.sax.SAXParseException spe)
warning
in interface org.xml.sax.ErrorHandler
public void error(java.io.IOException e, org.xml.sax.Locator source)
public void error(org.xml.sax.SAXException e, org.xml.sax.Locator source)
public void error(javax.xml.parsers.ParserConfigurationException e, org.xml.sax.Locator source)
protected org.xml.sax.Locator[] getLocator(org.xml.sax.SAXParseException spe)
public org.w3c.dom.ls.LSResourceResolver getLSResourceResolver()
getLSResourceResolver
in interface GrammarReaderController2