Class XMLAgainstXSDErrorHandler

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class XMLAgainstXSDErrorHandler
    extends org.xml.sax.helpers.DefaultHandler

    XMLAgainstXSDErrorHandler class.

    Version:
    $Id: $Id
    Author:
    vzarva
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException e)
      void fatalError​(org.xml.sax.SAXParseException e)
      java.lang.String getErrorMessage​(java.lang.String errorType, org.xml.sax.SAXParseException e, IncludedDocuments includedDocuments)
      getErrorMessage.
      boolean isHasErrors()
      isHasErrors.
      void setHasErrors​(boolean hasErrors)
      Setter for the field hasErrors.
      void warning​(org.xml.sax.SAXParseException e)
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl
      • Methods inherited from class java.lang.Object

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

      • XMLAgainstXSDErrorHandler

        public XMLAgainstXSDErrorHandler​(IncludedDocuments includedDocuments)

        Constructor for XMLAgainstXSDErrorHandler.

        Parameters:
        includedDocuments - a IncludedDocuments object.
    • Method Detail

      • error

        public void error​(org.xml.sax.SAXParseException e)
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Overrides:
        error in class org.xml.sax.helpers.DefaultHandler
      • warning

        public void warning​(org.xml.sax.SAXParseException e)
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Overrides:
        warning in class org.xml.sax.helpers.DefaultHandler
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException e)
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Overrides:
        fatalError in class org.xml.sax.helpers.DefaultHandler
      • getErrorMessage

        public java.lang.String getErrorMessage​(java.lang.String errorType,
                                                org.xml.sax.SAXParseException e,
                                                IncludedDocuments includedDocuments)

        getErrorMessage.

        Parameters:
        errorType - a String object.
        e - a SAXParseException object.
        includedDocuments - a IncludedDocuments object.
        Returns:
        a String object.
      • isHasErrors

        public boolean isHasErrors()

        isHasErrors.

        Returns:
        a boolean.
      • setHasErrors

        public void setHasErrors​(boolean hasErrors)

        Setter for the field hasErrors.

        Parameters:
        hasErrors - a boolean.