#include <XPathConstructionContext.hpp>
Inherits ProblemListenerBase.
Inherited by StylesheetConstructionContext, and XPathConstructionContextDefault.
Classes | |
class | GetCachedString |
Public Types | |
typedef GetCachedString | GetAndReleaseCachedString |
![]() | |
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 | |
XPathConstructionContext (MemoryManager &theManager) | |
virtual | ~XPathConstructionContext () |
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... | |
virtual void | reset ()=0 |
Reset the instance. More... | |
virtual const XalanDOMString & | getPooledString (const XalanDOMString &theString)=0 |
Get a pooled string given the source string. More... | |
virtual const XalanDOMString & | getPooledString (const XalanDOMChar *theString, XalanDOMString::size_type theLength=XalanDOMString::npos)=0 |
Get a pooled string given the source character array. More... | |
virtual XalanDOMString & | getCachedString ()=0 |
Get a cached string for temporary use. More... | |
virtual bool | releaseCachedString (XalanDOMString &theString)=0 |
Return a cached string. More... | |
MemoryManager & | getMemoryManager () const |
MemoryManager & | getMemoryManager () |
![]() | |
ProblemListenerBase () | |
virtual | ~ProblemListenerBase () |
Additional Inherited Members | |
![]() | |
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 const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
Definition at line 57 of file XPathConstructionContext.hpp.
Definition at line 187 of file XPathConstructionContext.hpp.
XPathConstructionContext::XPathConstructionContext | ( | MemoryManager & | theManager | ) |
|
virtual |
|
pure virtual |
Get a cached string for temporary use.
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
|
inline |
Definition at line 190 of file XPathConstructionContext.hpp.
|
inline |
Definition at line 196 of file XPathConstructionContext.hpp.
|
pure virtual |
Get a pooled string given the source string.
If the string already exists in the pool, no copy will be made. If not, a copy will be made and kept for later use.
theString | The source string |
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
|
pure virtual |
Get a pooled string given the source character array.
If the string already exists in the pool, no copy will be made. If not, a copy will be made and kept for later use.
theString | The source character array |
theLength | The length of the character array |
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
|
pure virtual |
Function that is called when a problem event occurs.
source | Either eXMLParser, eXSLProcessor, or eXPATH. |
classification | Either eMessage, eWarning, or eError. |
locator | The current Locator instance for the stylesheet. Maybe be a null pointer. |
sourceNode | The current source node, if any. |
msg | The error message. |
Implements ProblemListenerBase.
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
|
pure virtual |
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH |
classification | either eMESSAGE, eERROR or eWARNING |
msg | string message explaining the problem. |
Implements ProblemListenerBase.
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
|
pure virtual |
Return a cached string.
theString | The string to release. |
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
|
pure virtual |
Reset the instance.
Any existing objects created by the instance will be destroyed.
Implemented in StylesheetConstructionContext, StylesheetConstructionContextDefault, and XPathConstructionContextDefault.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|