Class Controller

  • All Implemented Interfaces:
    GrammarReaderController, GrammarReaderController2, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class Controller
    extends java.lang.Object
    implements GrammarReaderController2, org.xml.sax.ErrorHandler
    Internal view of GrammarReaderController. This class wraps a GrammarReaderController and adds several convenient methods for the caller.
    • Field Summary

      Fields 
      Modifier and Type Field 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void error​(java.io.IOException e, org.xml.sax.Locator source)  
      void error​(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.Locator[] locs, java.lang.String errorMessage, java.lang.Exception nestedException)  
      void error​(org.xml.sax.SAXException e, org.xml.sax.Locator source)  
      void error​(org.xml.sax.SAXParseException spe)  
      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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _hadError

        private boolean _hadError
        This flag will be set to true in case of any error.
    • Method Detail

      • hadError

        public boolean hadError()
        Returns true if an error had been reported.
      • setErrorFlag

        public final void setErrorFlag()
        Force set the error flag to true.
      • resolveEntity

        @Deprecated
        public org.xml.sax.InputSource resolveEntity​(java.lang.String publicId,
                                                     java.lang.String systemId)
                                              throws org.xml.sax.SAXException,
                                                     java.io.IOException
        Deprecated.
        Specified by:
        resolveEntity in interface org.xml.sax.EntityResolver
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • warning

        public void warning​(org.xml.sax.Locator[] locs,
                            java.lang.String errorMessage)
        Specified by:
        warning in interface GrammarReaderController
      • error

        public void error​(org.xml.sax.Locator[] locs,
                          java.lang.String errorMessage,
                          java.lang.Exception nestedException)
        Specified by:
        error in interface GrammarReaderController
      • error

        public void error​(java.lang.String errorMessage,
                          java.lang.Exception nestedException)
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException spe)
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
      • error

        public void error​(org.xml.sax.SAXParseException spe)
        Specified by:
        error in interface org.xml.sax.ErrorHandler
      • warning

        public void warning​(org.xml.sax.SAXParseException spe)
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
      • error

        public void error​(java.io.IOException e,
                          org.xml.sax.Locator source)
      • error

        public void error​(org.xml.sax.SAXException e,
                          org.xml.sax.Locator source)
      • error

        public void error​(javax.xml.parsers.ParserConfigurationException e,
                          org.xml.sax.Locator source)
      • getLocator

        protected org.xml.sax.Locator[] getLocator​(org.xml.sax.SAXParseException spe)