Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | Static Public Member Functions | Static Protected Attributes

ProblemListenerBase Class Reference

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 <ProblemListenerBase.hpp>

Inherited by ExecutionContext, ProblemListener, XPathConstructionContext, XPathEnvSupport, and XSLTProcessor.

List of all members.

Public Types

Public Member Functions

Static Public Member Functions

Static Protected Attributes


Detailed Description

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 53 of file ProblemListenerBase.hpp.


Member Typedef Documentation

Reimplemented in ProblemListener.

Definition at line 68 of file ProblemListenerBase.hpp.


Member Enumeration Documentation

Enumerator:
eMESSAGE 
eMessage 
eWARNING 
eWarning 
eERROR 
eError 
eClassificationCount 

Definition at line 72 of file ProblemListenerBase.hpp.

Enumerator:
eXMLPARSER 
eXMLParser 
eXSLPROCESSOR 
eXSLTProcessor 
eXPATH 
eXPath 
eSourceCount 

Definition at line 59 of file ProblemListenerBase.hpp.


Constructor & Destructor Documentation

ProblemListenerBase::ProblemListenerBase (  ) 
virtual ProblemListenerBase::~ProblemListenerBase (  )  [virtual]

Member Function Documentation

static void ProblemListenerBase::defaultFormat ( PrintWriter pw,
eSource  source,
eClassification  classification,
const XalanDOMString msg,
const Locator *  locator,
const XalanNode sourceNode 
) [static]

Function to format a problem call to a PrintWriter instance.

This is a bare-bones implementation that uses localized strings.

Parameters:
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 in ProblemListenerDefault.

static void ProblemListenerBase::defaultFormat ( PrintWriter pw,
eSource  source,
eClassification  classification,
const XalanDOMString msg,
const XalanNode sourceNode 
) [static]

Function to format a problem call to a PrintWriter instance.

This is a bare-bones implementation that uses localized strings.

Parameters:
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 in ProblemListenerDefault.

virtual void ProblemListenerBase::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.

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.

Implemented in ProblemListener, ProblemListenerDefault, StylesheetConstructionContext, StylesheetConstructionContextDefault, StylesheetExecutionContext, StylesheetExecutionContextDefault, XSLTProcessor, XSLTProcessorEnvSupport, XSLTProcessorEnvSupportDefault, XalanTransformerProblemListener, ExecutionContext, XPathConstructionContext, XPathConstructionContextDefault, XPathEnvSupport, XPathEnvSupportDefault, XPathExecutionContext, and XPathExecutionContextDefault.

virtual void ProblemListenerBase::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.

Parameters:
source either eXMLPARSER, eXSLPROCESSOR, or eXPATH
classification either eMESSAGE, eERROR or eWARNING
msg string message explaining the problem.

Implemented in ProblemListener, ProblemListenerDefault, StylesheetConstructionContext, StylesheetConstructionContextDefault, StylesheetExecutionContext, StylesheetExecutionContextDefault, XSLTProcessor, XSLTProcessorEnvSupport, XSLTProcessorEnvSupportDefault, XalanTransformerProblemListener, ExecutionContext, XPathConstructionContext, XPathConstructionContextDefault, XPathEnvSupport, XPathEnvSupportDefault, XPathExecutionContext, and XPathExecutionContextDefault.


Member Data Documentation

const XalanMessages::Codes ProblemListenerBase::s_messageCodes[eSourceCount][eClassificationCount] [static, protected]

Definition at line 156 of file ProblemListenerBase.hpp.


The documentation for this class was generated from the following file:

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo