The implementation of the default error handling for Xalan.
More...
#include <xalanc/XSLT/ProblemListenerDefault.hpp>
|
| ProblemListenerDefault (MemoryManager &theManager, PrintWriter *pw=0) |
|
virtual | ~ProblemListenerDefault () |
|
virtual void | setPrintWriter (PrintWriter *pw) |
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs. More...
|
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs. More...
|
|
virtual void | problem (eSource source, eClassification classification, const XalanNode *sourceNode, const ElemTemplateElement *styleNode, const XalanDOMString &msg, const XalanDOMChar *uri, XalanFileLoc lineNo, XalanFileLoc charOffset) |
| Function that is called when a problem event occurs. More...
|
|
PrintWriter * | getPrintWriter () const |
|
| ProblemListener () |
|
virtual | ~ProblemListener () |
|
| ProblemListenerBase () |
|
virtual | ~ProblemListenerBase () |
|
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanNode *sourceNode, const ElemTemplateElement *styleNode, const XalanDOMString &msg, const XalanDOMChar *uri, XalanFileLoc lineNo, XalanFileLoc charOffset) |
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode) |
| Function to format a problem call to a PrintWriter instance. More...
|
|
static void | defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
| Function to format a problem call to a PrintWriter instance. More...
|
|
|
typedef eSource | eProblemSource |
|
enum | eSource {
eXMLPARSER = 0,
eXMLParser = 0,
eXSLPROCESSOR = 1,
eXSLTProcessor = 1,
eXPATH = 2,
eXPath = 2,
eSourceCount
} |
|
enum | eClassification {
eMESSAGE = 0,
eMessage = 0,
eWARNING = 1,
eWarning = 1,
eERROR = 2,
eError = 2,
eClassificationCount
} |
|
typedef eSource | eProblemSource |
|
static const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
|
The implementation of the default error handling for Xalan.
Definition at line 51 of file ProblemListenerDefault.hpp.
◆ ProblemListenerDefault()
xalanc::ProblemListenerDefault::ProblemListenerDefault |
( |
MemoryManager & |
theManager, |
|
|
PrintWriter * |
pw = 0 |
|
) |
| |
◆ ~ProblemListenerDefault()
virtual xalanc::ProblemListenerDefault::~ProblemListenerDefault |
( |
| ) |
|
|
virtual |
◆ defaultFormat() [1/3]
◆ defaultFormat() [2/3]
◆ defaultFormat() [3/3]
◆ getPrintWriter()
PrintWriter* xalanc::ProblemListenerDefault::getPrintWriter |
( |
| ) |
const |
|
inline |
◆ problem() [1/3]
Function that is called when a problem event occurs.
- Parameters
-
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 xalanc::ProblemListener.
◆ problem() [2/3]
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
- Parameters
-
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH |
classification | either eMESSAGE, eERROR or eWARNING |
msg | string message explaining the problem. |
Implements xalanc::ProblemListener.
◆ problem() [3/3]
Function that is called when a problem event occurs.
This function is deprecated. Use the overload with the Locator parameter instead.
- Deprecated:
- Parameters
-
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 xalanc::ProblemListener.
◆ setPrintWriter()
virtual void xalanc::ProblemListenerDefault::setPrintWriter |
( |
PrintWriter * |
pw | ) |
|
|
virtual |
The documentation for this class was generated from the following file: