Package org.opencms.xml
Class CmsXmlValidationErrorHandler
java.lang.Object
org.dom4j.util.XMLErrorHandler
org.opencms.xml.CmsXmlValidationErrorHandler
- All Implemented Interfaces:
ErrorHandler
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.dom4j.Element
Returns the warnings.void
Methods inherited from class org.dom4j.util.XMLErrorHandler
addException, fatalError, getErrorQName, getErrors, getFatalErrorQName, getWarningQName, setErrorQName, setErrors, setFatalErrorQName, setWarningQName
-
Constructor Details
-
CmsXmlValidationErrorHandler
public CmsXmlValidationErrorHandler()Constructor from superclass.
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classorg.dom4j.util.XMLErrorHandler
- See Also:
-
getWarnings
Returns the warnings.- Returns:
- the warnings
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classorg.dom4j.util.XMLErrorHandler
- See Also:
-
XMLErrorHandler.warning(org.xml.sax.SAXParseException)
-