Class CmsXmlValidationErrorHandler

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

    public class CmsXmlValidationErrorHandler
    extends org.dom4j.util.XMLErrorHandler
    Error hander for writing errors found during XML validation to the OpenCms log.

    Exceptions caused by warnings are suppressed (but written to the log if level is set to WARN).

    Since:
    6.0.0
    • Field Summary

      • Fields inherited from class org.dom4j.util.XMLErrorHandler

        ERROR_QNAME, FATALERROR_QNAME, WARNING_QNAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException e)  
      org.dom4j.Element getWarnings()
      Returns the warnings.
      void warning​(org.xml.sax.SAXParseException e)  
      • Methods inherited from class org.dom4j.util.XMLErrorHandler

        addException, fatalError, getErrorQName, getErrors, getFatalErrorQName, getWarningQName, setErrorQName, setErrors, setFatalErrorQName, setWarningQName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.dom4j.util.XMLErrorHandler
        See Also:
        ErrorHandler.error(org.xml.sax.SAXParseException)
      • getWarnings

        public org.dom4j.Element getWarnings()
        Returns the warnings.

        Returns:
        the warnings
      • warning

        public void warning​(org.xml.sax.SAXParseException e)
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Overrides:
        warning in class org.dom4j.util.XMLErrorHandler
        See Also:
        XMLErrorHandler.warning(org.xml.sax.SAXParseException)