This is the abstract class that the XSL processor uses when it has a problem of some kind, that requires a message, an error or a warning. More...
#include <ProblemListener.hpp>
Inherits ProblemListenerBase.
Inherited by ProblemListenerDefault, and XalanTransformerProblemListener.
This is the abstract class that the XSL processor uses when it has a problem of some kind, that requires a message, an error or a warning.
Users should ask the XSLTProcessor class to setProblemListener if they wish an object instance to be called when a problem event occurs.
Definition at line 48 of file ProblemListener.hpp.
Reimplemented from ProblemListenerBase.
Definition at line 53 of file ProblemListener.hpp.
ProblemListener::ProblemListener | ( | ) |
virtual ProblemListener::~ProblemListener | ( | ) | [virtual] |
virtual void ProblemListener::problem | ( | eSource | source, | |
eClassification | classification, | |||
const XalanDOMString & | msg, | |||
const Locator * | locator, | |||
const XalanNode * | sourceNode | |||
) | [pure 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 ProblemListenerBase.
Implemented in ProblemListenerDefault, and XalanTransformerProblemListener.
virtual void ProblemListener::problem | ( | eSource | source, | |
eClassification | classification, | |||
const XalanNode * | sourceNode, | |||
const ElemTemplateElement * | styleNode, | |||
const XalanDOMString & | msg, | |||
const XalanDOMChar * | uri, | |||
XalanFileLoc | lineNo, | |||
XalanFileLoc | charOffset | |||
) | [pure 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. |
Implemented in ProblemListenerDefault, and XalanTransformerProblemListener.
virtual void ProblemListener::problem | ( | eSource | source, | |
eClassification | classification, | |||
const XalanDOMString & | msg, | |||
const XalanNode * | sourceNode | |||
) | [pure 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 ProblemListenerBase.
Implemented in ProblemListenerDefault, and XalanTransformerProblemListener.
virtual void ProblemListener::setPrintWriter | ( | PrintWriter * | pw | ) | [pure virtual] |
Implemented in ProblemListenerDefault, and XalanTransformerProblemListener.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|