Module xml.base

Class ValidatorHandler

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

    public class ValidatorHandler
    extends org.xml.sax.helpers.DefaultHandler
    The class ValidatorHandler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException exception)
      void fatalError​(org.xml.sax.SAXParseException exception)
      org.xml.sax.SAXParseException getSaxParseException()  
      boolean isValid()
      Checks if is validation error.
      boolean isValidationError()  
      void setSaxParseException​(org.xml.sax.SAXParseException saxParseException)  
      void setValidationError​(boolean validationError)  
      void warning​(org.xml.sax.SAXParseException exception)
      • 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

      • ValidatorHandler

        public ValidatorHandler()
    • Method Detail

      • error

        public void error​(org.xml.sax.SAXParseException exception)
                   throws org.xml.sax.SAXException
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Overrides:
        error in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException exception)
                        throws org.xml.sax.SAXException
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Overrides:
        fatalError in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • getSaxParseException

        public org.xml.sax.SAXParseException getSaxParseException()
      • setSaxParseException

        public void setSaxParseException​(org.xml.sax.SAXParseException saxParseException)
      • isValid

        public boolean isValid()
        Checks if is validation error.
        Returns:
        true, if is validation error
      • isValidationError

        public boolean isValidationError()
      • setValidationError

        public void setValidationError​(boolean validationError)
      • warning

        public void warning​(org.xml.sax.SAXParseException exception)
                     throws org.xml.sax.SAXException
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Overrides:
        warning in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException