org.dom4j.util
Class XMLErrorHandler
java.lang.Object
org.dom4j.util.XMLErrorHandler
- All Implemented Interfaces:
- org.xml.sax.ErrorHandler
- public class XMLErrorHandler
- extends java.lang.Object
- implements org.xml.sax.ErrorHandler
XMLErrorHandler
is a SAX ErrorHandler
which
turns the SAX parsing errors into XML so that the output can be formatted
using XSLT or the errors can be included in a SOAP message.
- Version:
- $Revision: 1.2 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_QNAME
protected static final QName ERROR_QNAME
FATALERROR_QNAME
protected static final QName FATALERROR_QNAME
WARNING_QNAME
protected static final QName WARNING_QNAME
XMLErrorHandler
public XMLErrorHandler()
XMLErrorHandler
public XMLErrorHandler(Element errors)
error
public void error(org.xml.sax.SAXParseException e)
- Specified by:
error
in interface org.xml.sax.ErrorHandler
fatalError
public void fatalError(org.xml.sax.SAXParseException e)
- Specified by:
fatalError
in interface org.xml.sax.ErrorHandler
warning
public void warning(org.xml.sax.SAXParseException e)
- Specified by:
warning
in interface org.xml.sax.ErrorHandler
getErrors
public Element getErrors()
setErrors
public void setErrors(Element errors)
getErrorQName
public QName getErrorQName()
setErrorQName
public void setErrorQName(QName errorQName)
getFatalErrorQName
public QName getFatalErrorQName()
setFatalErrorQName
public void setFatalErrorQName(QName fatalErrorQName)
getWarningQName
public QName getWarningQName()
setWarningQName
public void setWarningQName(QName warningQName)
addException
protected void addException(Element element,
org.xml.sax.SAXParseException e)
- Adds the given parse exception information to the given element instance
Copyright © 2001 MetaStuff Ltd. All Rights Reserved. Hosted by