Xalan-C++ API Reference
1.12.0
|
This is the abstract class that is used when reporting a problem some kind, that requires a message, an error or a warning. More...
#include <xalanc/PlatformSupport/ProblemListenerBase.hpp>
Public Types | |
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 |
Public Member Functions | |
ProblemListenerBase () | |
virtual | ~ProblemListenerBase () |
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)=0 |
Function that is called when a problem event occurs. More... | |
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)=0 |
Function that is called when a problem event occurs. More... | |
Static Public Member Functions | |
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... | |
Static Protected Attributes | |
static const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
This is the abstract class that is used when reporting a problem some kind, that requires a message, an error or a warning.
Definition at line 56 of file ProblemListenerBase.hpp.
Definition at line 71 of file ProblemListenerBase.hpp.
Enumerator | |
---|---|
eMESSAGE | |
eMessage | |
eWARNING | |
eWarning | |
eERROR | |
eError | |
eClassificationCount |
Definition at line 75 of file ProblemListenerBase.hpp.
Enumerator | |
---|---|
eXMLPARSER | |
eXMLParser | |
eXSLPROCESSOR | |
eXSLTProcessor | |
eXPATH | |
eXPath | |
eSourceCount |
Definition at line 62 of file ProblemListenerBase.hpp.
xalanc::ProblemListenerBase::ProblemListenerBase | ( | ) |
|
virtual |
|
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. |
|
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. |
|
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. |
Implemented in xalanc::StylesheetExecutionContext, xalanc::XPathExecutionContext, xalanc::StylesheetConstructionContext, xalanc::XSLTProcessor, xalanc::XPathEnvSupport, xalanc::ExecutionContext, xalanc::XPathConstructionContext, xalanc::ProblemListener, xalanc::XSLTProcessorEnvSupport, xalanc::StylesheetExecutionContextDefault, xalanc::XPathExecutionContextDefault, xalanc::XSLTEngineImpl, xalanc::StylesheetConstructionContextDefault, xalanc::XSLTProcessorEnvSupportDefault, xalanc::XPathEnvSupportDefault, xalanc::XalanTransformerProblemListener, xalanc::ProblemListenerDefault, and xalanc::XPathConstructionContextDefault.
|
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. |
Implemented in xalanc::StylesheetExecutionContext, xalanc::XPathExecutionContext, xalanc::StylesheetConstructionContext, xalanc::XSLTProcessor, xalanc::XPathEnvSupport, xalanc::ExecutionContext, xalanc::XPathConstructionContext, xalanc::ProblemListener, xalanc::XSLTProcessorEnvSupport, xalanc::StylesheetExecutionContextDefault, xalanc::XPathExecutionContextDefault, xalanc::XSLTEngineImpl, xalanc::StylesheetConstructionContextDefault, xalanc::XSLTProcessorEnvSupportDefault, xalanc::XPathEnvSupportDefault, xalanc::XalanTransformerProblemListener, xalanc::ProblemListenerDefault, and xalanc::XPathConstructionContextDefault.
|
staticprotected |
Definition at line 159 of file ProblemListenerBase.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:33 for Xalan-C++ API Reference by 1.8.17