Class XMLErrorHandler

  • All Implemented Interfaces:
    org.xml.sax.ErrorHandler

    public class XMLErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ERROR  
      static java.lang.String FATAL_ERROR  
      static java.lang.String MESSAGE  
      static java.lang.String VALID  
      static java.lang.String VALIDATION_RESULT  
      static java.lang.String WARNING  
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLErrorHandler()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanXML​(java.lang.String schemaLocation)
      remove duplicate warnings from the list and set schemaloction
      void error​(org.xml.sax.SAXParseException exception)  
      void fatalError​(org.xml.sax.SAXParseException exception)  
      XMLDoc getXMLOutput()  
      static boolean isWantLog()  
      void reset()  
      void setInputSource​(org.xml.sax.InputSource inSource)  
      void setParser​(XMLParser parser)
      Setter for parser attribute.
      static void setWantLog​(boolean wantLog)  
      java.lang.String toString()  
      void warning​(org.xml.sax.SAXParseException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XMLErrorHandler

        public XMLErrorHandler()
    • Method Detail

      • isWantLog

        public static boolean isWantLog()
        Returns:
        the wantLog
      • setWantLog

        public static void setWantLog​(boolean wantLog)
        Parameters:
        wantLog - the wantLog to set
      • warning

        public void warning​(org.xml.sax.SAXParseException exception)
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Parameters:
        exception -
        See Also:
        ErrorHandler.warning(org.xml.sax.SAXParseException)
      • error

        public void error​(org.xml.sax.SAXParseException exception)
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Parameters:
        exception -
        See Also:
        ErrorHandler.error(org.xml.sax.SAXParseException)
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException exception)
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Parameters:
        exception - SAXParseException
        Throws:
        JDFException - - if fatal error occurs
      • getXMLOutput

        public XMLDoc getXMLOutput()
        Returns:
      • cleanXML

        public void cleanXML​(java.lang.String schemaLocation)
        remove duplicate warnings from the list and set schemaloction
        Parameters:
        schemaLocation -
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • setParser

        public void setParser​(XMLParser parser)
        Setter for parser attribute.
        Parameters:
        parser - the parser to set
      • setInputSource

        public void setInputSource​(org.xml.sax.InputSource inSource)
        Parameters:
        inSource -
      • reset

        public void reset()