Xalan-C++ API Reference  1.12.0
Public Member Functions | Static Public Member Functions | List of all members
xalanc::ProblemListenerDefault Class Reference

The implementation of the default error handling for Xalan. More...

#include <xalanc/XSLT/ProblemListenerDefault.hpp>

Inheritance diagram for xalanc::ProblemListenerDefault:
[legend]
Collaboration diagram for xalanc::ProblemListenerDefault:
[legend]

Public Member Functions

 ProblemListenerDefault (MemoryManager &theManager, PrintWriter *pw=0)
 
virtual ~ProblemListenerDefault ()
 
virtual void setPrintWriter (PrintWriter *pw)
 
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...
 
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...
 
PrintWritergetPrintWriter () const
 
- Public Member Functions inherited from xalanc::ProblemListener
 ProblemListener ()
 
virtual ~ProblemListener ()
 
- Public Member Functions inherited from xalanc::ProblemListenerBase
 ProblemListenerBase ()
 
virtual ~ProblemListenerBase ()
 

Static Public Member Functions

static void defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)
 
static void defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)
 
static void defaultFormat (PrintWriter &pw, eSource source, eClassification classification, const XalanNode *sourceNode, const ElemTemplateElement *styleNode, const XalanDOMString &msg, const XalanDOMChar *uri, XalanFileLoc lineNo, XalanFileLoc charOffset)
 
- Static Public Member Functions inherited from xalanc::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...
 

Additional Inherited Members

- Public Types inherited from xalanc::ProblemListener
typedef eSource eProblemSource
 
- Public Types inherited from xalanc::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
 
- Static Protected Attributes inherited from xalanc::ProblemListenerBase
static const XalanMessages::Codes s_messageCodes [eSourceCount][eClassificationCount]
 

Detailed Description

The implementation of the default error handling for Xalan.

Definition at line 51 of file ProblemListenerDefault.hpp.

Constructor & Destructor Documentation

◆ ProblemListenerDefault()

xalanc::ProblemListenerDefault::ProblemListenerDefault ( MemoryManager &  theManager,
PrintWriter pw = 0 
)

◆ ~ProblemListenerDefault()

virtual xalanc::ProblemListenerDefault::~ProblemListenerDefault ( )
virtual

Member Function Documentation

◆ defaultFormat() [1/3]

static void xalanc::ProblemListenerDefault::defaultFormat ( PrintWriter pw,
eSource  source,
eClassification  classification,
const XalanDOMString msg,
const Locator *  locator,
const XalanNode sourceNode 
)
inlinestatic

Definition at line 103 of file ProblemListenerDefault.hpp.

◆ defaultFormat() [2/3]

static void xalanc::ProblemListenerDefault::defaultFormat ( PrintWriter pw,
eSource  source,
eClassification  classification,
const XalanDOMString msg,
const XalanNode sourceNode 
)
inlinestatic

Definition at line 121 of file ProblemListenerDefault.hpp.

◆ defaultFormat() [3/3]

static void xalanc::ProblemListenerDefault::defaultFormat ( PrintWriter pw,
eSource  source,
eClassification  classification,
const XalanNode sourceNode,
const ElemTemplateElement styleNode,
const XalanDOMString msg,
const XalanDOMChar *  uri,
XalanFileLoc  lineNo,
XalanFileLoc  charOffset 
)
static

◆ getPrintWriter()

PrintWriter* xalanc::ProblemListenerDefault::getPrintWriter ( ) const
inline

Definition at line 97 of file ProblemListenerDefault.hpp.

◆ problem() [1/3]

virtual void xalanc::ProblemListenerDefault::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 xalanc::ProblemListener.

◆ problem() [2/3]

virtual void xalanc::ProblemListenerDefault::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 xalanc::ProblemListener.

◆ problem() [3/3]

virtual void xalanc::ProblemListenerDefault::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 xalanc::ProblemListener.

◆ setPrintWriter()

virtual void xalanc::ProblemListenerDefault::setPrintWriter ( PrintWriter pw)
virtual

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