Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


Public Types | Public Member Functions | List of all members
XalanTransformerProblemListener Class Reference

#include <XalanTransformerProblemListener.hpp>

Inherits ProblemListener.

Public Types

typedef std::ostream StreamType
 
- Public Types inherited from ProblemListener
typedef eSource eProblemSource
 
- Public Types inherited from ProblemListenerBase
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

 XalanTransformerProblemListener (MemoryManager &theManager, StreamType *theStream, PrintWriter *thePrintWriter)
 
virtual ~XalanTransformerProblemListener ()
 
virtual void setPrintWriter (PrintWriter *pw)
 
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...
 
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...
 
- Public Member Functions inherited from ProblemListener
 ProblemListener ()
 
virtual ~ProblemListener ()
 
- Public Member Functions inherited from ProblemListenerBase
 ProblemListenerBase ()
 
virtual ~ProblemListenerBase ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ProblemListenerBase
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 inherited from ProblemListenerBase
static const XalanMessages::Codes s_messageCodes [eSourceCount][eClassificationCount]
 

Detailed Description

Definition at line 50 of file XalanTransformerProblemListener.hpp.

Member Typedef Documentation

◆ StreamType

Definition at line 57 of file XalanTransformerProblemListener.hpp.

Constructor & Destructor Documentation

◆ XalanTransformerProblemListener()

XalanTransformerProblemListener::XalanTransformerProblemListener ( MemoryManager &  theManager,
StreamType theStream,
PrintWriter thePrintWriter 
)

◆ ~XalanTransformerProblemListener()

virtual XalanTransformerProblemListener::~XalanTransformerProblemListener ( )
virtual

Member Function Documentation

◆ problem() [1/3]

virtual void XalanTransformerProblemListener::problem ( eSource  source,
eClassification  classification,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString msg,
const XalanDOMChar *  uri,
XalanFileLoc  lineNo,
XalanFileLoc  charOffset 
)
virtual

Function that is called when a problem event occurs.

This function is deprecated. Use the overload with the Locator parameter instead.

Deprecated:
Parameters
sourceeither eXMLPARSER, eXSLPROCESSOR, or eXPATH
classificationeither eMESSAGE, eERROR or eWARNING
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.

Implements ProblemListener.

◆ problem() [2/3]

virtual void XalanTransformerProblemListener::problem ( eSource  source,
eClassification  classification,
const XalanDOMString msg,
const Locator *  locator,
const XalanNode sourceNode 
)
virtual

Function that is called when a problem event occurs.

Parameters
sourceEither eXMLParser, eXSLProcessor, or eXPATH.
classificationEither eMessage, eWarning, or eError.
locatorThe current Locator instance for the stylesheet. Maybe be a null pointer.
sourceNodeThe current source node, if any.
msgThe error message.

Implements ProblemListener.

◆ problem() [3/3]

virtual void XalanTransformerProblemListener::problem ( eSource  source,
eClassification  classification,
const XalanDOMString msg,
const XalanNode sourceNode 
)
virtual

Function that is called when a problem event occurs.

This version assumes location information is already formatted into the message.

Parameters
sourceeither eXMLPARSER, eXSLPROCESSOR, or eXPATH
classificationeither eMESSAGE, eERROR or eWARNING
msgstring message explaining the problem.

Implements ProblemListener.

◆ setPrintWriter()

virtual void XalanTransformerProblemListener::setPrintWriter ( PrintWriter pw)
virtual

Implements ProblemListener.


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