Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.10

Public Types | Public Member Functions | List of all members
ProblemListener Class Referenceabstract

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

Inheritance diagram for ProblemListener:
ProblemListenerDefault XalanTransformerProblemListener

Public Types

enum  eProblemSource { eXMLPARSER = 1, eXSLPROCESSOR = 2, eXPATH = 3 }
 Sources of problem. More...
 
enum  eClassification { eMESSAGE = 0, eWARNING = 1, eERROR = 2 }
 Severity of problem. More...
 

Public Member Functions

 ProblemListener ()
 
virtual ~ProblemListener ()
 
virtual void setPrintWriter (PrintWriter *pw)=0
 Set the print writer to which the problem is reported. More...
 
virtual void problem (eProblemSource where, eClassification classification, const XalanNode *sourceNode, const ElemTemplateElement *styleNode, const XalanDOMString &msg, const XalanDOMChar *uri, int lineNo, int charOffset)=0
 Function that is called when a problem event occurs. More...
 

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

Severity of problem.

Enumerator
eMESSAGE 
eWARNING 
eERROR 

Sources of problem.

Enumerator
eXMLPARSER 
eXSLPROCESSOR 
eXPATH 

Constructor & Destructor Documentation

ProblemListener::ProblemListener ( )
virtual ProblemListener::~ProblemListener ( )
virtual

Member Function Documentation

virtual void ProblemListener::problem ( eProblemSource  where,
eClassification  classification,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString msg,
const XalanDOMChar *  uri,
int  lineNo,
int  charOffset 
)
pure virtual

Function that is called when a problem event occurs.

Parameters
whereeither in XMLPARSER, XSLPROCESSOR, or QUERYENGINE
classificationeither MESSAGE, ERROR or WARNING
sourceNodesource tree node where the problem occurred (may be 0)
styleNodestyle tree node where the problem occurred (may be 0)
msgstring message explaining the problem.
urithe URI of the document where the problem occurred. May be 0.
lineNoline number where the problem occurred.
charOffsetcharacter offset where the problem.

Implemented in XalanTransformerProblemListener, and ProblemListenerDefault.

virtual void ProblemListener::setPrintWriter ( PrintWriter pw)
pure virtual

Set the print writer to which the problem is reported.

Parameters
pwwriter to receive messages

Implemented in XalanTransformerProblemListener, and 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.

dot

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

Apache Logo