Xalan-C++ API Reference  1.12.0
Public Member Functions | Protected Attributes | List of all members
xalanc::ExecutionContext Class Referenceabstract

#include <xalanc/PlatformSupport/ExecutionContext.hpp>

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

Public Member Functions

 ExecutionContext (MemoryManager &theMemoryManager)
 
virtual ~ExecutionContext ()
 
virtual void problem (eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)=0
 Function that is called when a problem event occurs. More...
 
virtual void problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode)=0
 Function that is called when a problem event occurs. More...
 
bool hasPreserveOrStripSpaceConditions () const
 
virtual bool shouldStripSourceNode (const XalanText &node)=0
 Determine if a text node should be stripped from the source tree, as if it weren't there. More...
 
MemoryManager & getMemoryManager () const
 
MemoryManager & getExceptionMemoryManager () const
 
- Public Member Functions inherited from xalanc::ProblemListenerBase
 ProblemListenerBase ()
 
virtual ~ProblemListenerBase ()
 

Protected Attributes

MemoryManager & m_memoryManager
 
bool m_hasPreserveOrStripConditions
 

Additional Inherited Members

- 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 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...
 
- Static Protected Attributes inherited from xalanc::ProblemListenerBase
static const XalanMessages::Codes s_messageCodes [eSourceCount][eClassificationCount]
 

Detailed Description

Definition at line 60 of file ExecutionContext.hpp.

Constructor & Destructor Documentation

◆ ExecutionContext()

xalanc::ExecutionContext::ExecutionContext ( MemoryManager &  theMemoryManager)

◆ ~ExecutionContext()

virtual xalanc::ExecutionContext::~ExecutionContext ( )
virtual

Member Function Documentation

◆ getExceptionMemoryManager()

MemoryManager& xalanc::ExecutionContext::getExceptionMemoryManager ( ) const
inline

Definition at line 109 of file ExecutionContext.hpp.

◆ getMemoryManager()

MemoryManager& xalanc::ExecutionContext::getMemoryManager ( ) const
inline

Definition at line 103 of file ExecutionContext.hpp.

◆ hasPreserveOrStripSpaceConditions()

bool xalanc::ExecutionContext::hasPreserveOrStripSpaceConditions ( ) const
inline

Definition at line 87 of file ExecutionContext.hpp.

Referenced by xalanc::DOMServices::getNodeData().

◆ problem() [1/2]

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

Implemented in xalanc::StylesheetExecutionContext, xalanc::XPathExecutionContext, xalanc::StylesheetExecutionContextDefault, and xalanc::XPathExecutionContextDefault.

◆ problem() [2/2]

virtual void xalanc::ExecutionContext::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
sourceeither eXMLPARSER, eXSLPROCESSOR, or eXPATH
classificationeither eMESSAGE, eERROR or eWARNING
msgstring message explaining the problem.

Implements xalanc::ProblemListenerBase.

Implemented in xalanc::StylesheetExecutionContext, xalanc::XPathExecutionContext, xalanc::StylesheetExecutionContextDefault, and xalanc::XPathExecutionContextDefault.

◆ shouldStripSourceNode()

virtual bool xalanc::ExecutionContext::shouldStripSourceNode ( const XalanText node)
pure virtual

Determine if a text node should be stripped from the source tree, as if it weren't there.

Parameters
textNodetext node from the source tree
Returns
true if the text node should be stripped

Implemented in xalanc::StylesheetExecutionContext, xalanc::XPathExecutionContext, xalanc::StylesheetExecutionContextDefault, and xalanc::XPathExecutionContextDefault.

Member Data Documentation

◆ m_hasPreserveOrStripConditions

bool xalanc::ExecutionContext::m_hasPreserveOrStripConditions
protected

Definition at line 118 of file ExecutionContext.hpp.

◆ m_memoryManager

MemoryManager& xalanc::ExecutionContext::m_memoryManager
protected

Definition at line 116 of file ExecutionContext.hpp.


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