com.ibm.commerce.contract.util

Class XMLValidationErrorHandler

  • java.lang.Object
    • com.ibm.commerce.contract.util.XMLValidationErrorHandler
  • All Implemented Interfaces:
    org.xml.sax.ErrorHandler


    public class XMLValidationErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    This class is called by the parser to handle validation errors.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      XMLValidationErrorHandler()
      Constructor for XMLValidationErrorHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void error(org.xml.sax.SAXParseException e)
      This method will handle a recoverable error which occurred during the parsing
      void fatalError(org.xml.sax.SAXParseException e)
      This method will handle a non-recoverable error which occurred during the parsing
      void warning(org.xml.sax.SAXParseException e)
      This method will handle a warning which occurred during the parsing
      • Methods inherited from class java.lang.Object

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

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLValidationErrorHandler

        public XMLValidationErrorHandler()
        Constructor for XMLValidationErrorHandler.
    • Method Detail

      • error

        public void error(org.xml.sax.SAXParseException e)
                   throws org.xml.sax.SAXParseException
        This method will handle a recoverable error which occurred during the parsing
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Parameters:
        e - A SAXParseException occurred during the the parsing.
        Throws:
        org.xml.sax.SAXParseException
        See Also:
        ErrorHandler.error(SAXParseException exception)
      • fatalError

        public void fatalError(org.xml.sax.SAXParseException e)
                        throws org.xml.sax.SAXParseException
        This method will handle a non-recoverable error which occurred during the parsing
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Parameters:
        e - A SAXParseException occurred during the the parsing.
        Throws:
        org.xml.sax.SAXParseException
        See Also:
        ErrorHandler.fatalError(SAXParseException exception)
      • warning

        public void warning(org.xml.sax.SAXParseException e)
                     throws org.xml.sax.SAXParseException
        This method will handle a warning which occurred during the parsing
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Parameters:
        e - A SAXParseException occurred during the the parsing.
        Throws:
        org.xml.sax.SAXParseException
        See Also:
        ErrorHandler.warning(SAXParseException exception)