Xalan-C++ API Documentation

The Xalan C++ XSL Transformer Version 1.1

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ProblemListener Class Reference

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>

Inheritance diagram for ProblemListener

Inheritance graph

[legend]
List of all members.

Public Types

Public Methods


Detailed Description

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.


Member Enumeration Documentation

enum ProblemListener::eClassification
 

Severity of problem.

Enumeration values:
eMESSAGE  
eWARNING  
eERROR  

enum ProblemListener::eProblemSource
 

Sources of problem.

Enumeration values:
eXMLPARSER  
eXSLPROCESSOR  
eQUERYENGINE  


Constructor & Destructor Documentation

ProblemListener::ProblemListener ( )
 

virtual ProblemListener::~ProblemListener ( ) [virtual]
 


Member Function Documentation

bool ProblemListener::problem ( eProblemSource where,
eClassification classification,
const XalanNode * styleNode,
const XalanNode * sourceNode,
const XalanDOMString & msg,
const XalanDOMChar * id,
int lineNo,
int charOffset ) [pure virtual]
 

Function that is called when a problem event occurs.

Parameters:
where   either in XMLPARSER, XSLPROCESSOR, or QUERYENGINE
classification   either MESSAGE, ERROR or WARNING
styleNode   style tree node where the problem occurred (may be null)
sourceNode   source tree node where the problem occurred (may be null)
msg   string message explaining the problem.
lineNo   line number where the problem occurred, if it is known, else zero
charOffset   character offset where the problem, occurred if it is known, else zero
Returns:
true if the return is an ERROR, in which case exception will be thrown. Otherwise the processor will continue to process.

Reimplemented in ProblemListenerDefault.

void ProblemListener::setPrintWriter ( PrintWriter * pw ) [pure virtual]
 

Set the print writer to which the problem is reported.

Parameters:
pw   writer to receive messages

Reimplemented in ProblemListenerDefault.


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++ XSL Transformer Version 1.1
Copyright © 2000, 2001 The Apache Software Foundation. All Rights Reserved.