|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.xml.tools.CollectingErrorHandler
atg.xml.tools.DefaultErrorHandler
public class DefaultErrorHandler
This class can be used to log and collect warnings and errors from SAX and TRAX.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
DefaultErrorHandler(ApplicationLogging pLog,
boolean pCollectErrors,
boolean pCollectWarnings)
Create a DefaultErrorHandler |
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException pException)
Receive notification of a recoverable SAX error. |
void |
error(javax.xml.transform.TransformerException pException)
Receive notification of a recoverable TrAX error. |
void |
fatalError(org.xml.sax.SAXParseException pException)
Receive notification of a non-recoverable SAX error. |
void |
fatalError(javax.xml.transform.TransformerException pException)
Receive notification of a non-recoverable TrAX error. |
java.lang.String |
getDefaultPublicId()
Default PublicId to use in log messages. |
java.lang.String |
getDefaultSystemId()
The default SystemId to use in log messages. |
boolean |
isThrowExceptionOnError()
Return whether to throw exceptions on errors. |
void |
setDefaultPublicId(java.lang.String pId)
Default PublicId to use in log messages. |
void |
setDefaultSystemId(java.lang.String pId)
The default SystemId to use in log messages. |
void |
setThrowExceptionOnError(boolean pThrowExceptionOnError)
Set whether to throw exceptions on errors. |
void |
warning(org.xml.sax.SAXParseException pException)
Receive notification of a SAX warning. |
void |
warning(javax.xml.transform.TransformerException pException)
Receive notification of a TrAX warning. |
Methods inherited from class atg.xml.tools.CollectingErrorHandler |
---|
getErrorCount, getErrors, getHasErrors, getHasWarnings, getWarningCount, getWarnings, setNextErrorHandler, setNextErrorHandler, setNextErrorHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public DefaultErrorHandler(ApplicationLogging pLog, boolean pCollectErrors, boolean pCollectWarnings)
Method Detail |
---|
public void setThrowExceptionOnError(boolean pThrowExceptionOnError)
public boolean isThrowExceptionOnError()
public void setDefaultSystemId(java.lang.String pId)
public java.lang.String getDefaultSystemId()
public void setDefaultPublicId(java.lang.String pId)
public java.lang.String getDefaultPublicId()
public void error(org.xml.sax.SAXParseException pException) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
error
in class atg.xml.tools.CollectingErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException pException) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
fatalError
in class atg.xml.tools.CollectingErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException pException) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
warning
in class atg.xml.tools.CollectingErrorHandler
org.xml.sax.SAXException
public void error(javax.xml.transform.TransformerException pException) throws javax.xml.transform.TransformerException
error
in interface javax.xml.transform.ErrorListener
error
in class atg.xml.tools.CollectingErrorHandler
javax.xml.transform.TransformerException
public void fatalError(javax.xml.transform.TransformerException pException) throws javax.xml.transform.TransformerException
fatalError
in interface javax.xml.transform.ErrorListener
fatalError
in class atg.xml.tools.CollectingErrorHandler
javax.xml.transform.TransformerException
public void warning(javax.xml.transform.TransformerException pException) throws javax.xml.transform.TransformerException
warning
in interface javax.xml.transform.ErrorListener
warning
in class atg.xml.tools.CollectingErrorHandler
javax.xml.transform.TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |