The implementation of the default error handling for Xalan. More...
#include <ProblemListenerDefault.hpp>
Inherits ProblemListener.
The implementation of the default error handling for Xalan.
Definition at line 48 of file ProblemListenerDefault.hpp.
ProblemListenerDefault::ProblemListenerDefault | ( | MemoryManager & | theManager, | |
PrintWriter * | pw = 0 | |||
) |
virtual ProblemListenerDefault::~ProblemListenerDefault | ( | ) | [virtual] |
static void ProblemListenerDefault::defaultFormat | ( | PrintWriter & | pw, | |
eSource | source, | |||
eClassification | classification, | |||
const XalanDOMString & | msg, | |||
const Locator * | locator, | |||
const XalanNode * | sourceNode | |||
) | [inline, static] |
Function to format a problem call to a PrintWriter instance.
This is a bare-bones implementation that uses localized strings.
pw | The PrintWriter instance to use. | |
source | Either eXMLParser, eXSLProcessor, or eXPATH. | |
classification | Either eMessage, eWarning, or eError. | |
locator | The current Locator instance for the stylesheet. Maybe be a null pointer. | |
sourceNode | The current source node, if any. | |
msg | The error message. |
Reimplemented from ProblemListenerBase.
Definition at line 100 of file ProblemListenerDefault.hpp.
static void ProblemListenerDefault::defaultFormat | ( | PrintWriter & | pw, | |
eSource | source, | |||
eClassification | classification, | |||
const XalanNode * | sourceNode, | |||
const ElemTemplateElement * | styleNode, | |||
const XalanDOMString & | msg, | |||
const XalanDOMChar * | uri, | |||
XalanFileLoc | lineNo, | |||
XalanFileLoc | charOffset | |||
) | [static] |
static void ProblemListenerDefault::defaultFormat | ( | PrintWriter & | pw, | |
eSource | source, | |||
eClassification | classification, | |||
const XalanDOMString & | msg, | |||
const XalanNode * | sourceNode | |||
) | [inline, static] |
Function to format a problem call to a PrintWriter instance.
This is a bare-bones implementation that uses localized strings.
pw | The PrintWriter instance to use. | |
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH | |
classification | either eMESSAGE, eERROR or eWARNING | |
msg | string message explaining the problem. |
Reimplemented from ProblemListenerBase.
Definition at line 118 of file ProblemListenerDefault.hpp.
PrintWriter* ProblemListenerDefault::getPrintWriter | ( | ) | const [inline] |
Definition at line 94 of file ProblemListenerDefault.hpp.
virtual void ProblemListenerDefault::problem | ( | eSource | source, | |
eClassification | classification, | |||
const XalanNode * | sourceNode, | |||
const ElemTemplateElement * | styleNode, | |||
const XalanDOMString & | msg, | |||
const XalanDOMChar * | uri, | |||
XalanFileLoc | lineNo, | |||
XalanFileLoc | charOffset | |||
) | [virtual] |
Function that is called when a problem event occurs.
This function is deprecated. Use the overload with the Locator parameter instead.
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH | |
classification | either eMESSAGE, eERROR or eWARNING | |
sourceNode | source tree node where the problem occurred (may be 0) | |
styleNode | style tree node where the problem occurred (may be 0) | |
msg | string message explaining the problem. | |
uri | the URI of the document where the problem occurred. May be 0. | |
lineNo | line number where the problem occurred. | |
charOffset | character offset where the problem. |
Implements ProblemListener.
virtual void ProblemListenerDefault::problem | ( | eSource | source, | |
eClassification | classification, | |||
const XalanDOMString & | msg, | |||
const Locator * | locator, | |||
const XalanNode * | sourceNode | |||
) | [virtual] |
Function that is called when a problem event occurs.
source | Either eXMLParser, eXSLProcessor, or eXPATH. | |
classification | Either eMessage, eWarning, or eError. | |
locator | The current Locator instance for the stylesheet. Maybe be a null pointer. | |
sourceNode | The current source node, if any. | |
msg | The error message. |
Implements ProblemListener.
virtual void ProblemListenerDefault::problem | ( | eSource | source, | |
eClassification | classification, | |||
const XalanDOMString & | msg, | |||
const XalanNode * | sourceNode | |||
) | [virtual] |
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH | |
classification | either eMESSAGE, eERROR or eWARNING | |
msg | string message explaining the problem. |
Implements ProblemListener.
virtual void ProblemListenerDefault::setPrintWriter | ( | PrintWriter * | pw | ) | [virtual] |
Implements ProblemListener.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|