#include <xalanc/XPath/XPathEnvSupportDefault.hpp>
|
typedef XalanMap< XalanDOMString, XalanDocument * > | SourceDocsTableType |
|
typedef FunctionTableTypeDefinition | FunctionTableType |
|
typedef XalanMap< XalanDOMString, FunctionTableType > | NamespaceFunctionTablesType |
|
typedef xercesc::Locator | LocatorType |
|
typedef Function::XObjectArgVectorType | XObjectArgVectorType |
|
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 |
|
|
| XPathEnvSupportDefault (MemoryManager &theManager XALAN_DEFAULT_MEMMGR) |
|
virtual | ~XPathEnvSupportDefault () |
|
MemoryManager & | getMemoryManager () const |
|
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.
|
|
virtual void | problem (eSource source, eClassification classification, const XalanDOMString &msg, const XalanNode *sourceNode) |
| Function that is called when a problem event occurs.
|
|
virtual void | installExternalFunctionLocal (const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function) |
| Install an external function in the local space.
|
|
virtual void | uninstallExternalFunctionLocal (const XalanDOMString &theNamespace, const XalanDOMString &functionName) |
| Uninstall an external function from the local space.
|
|
virtual XalanDocument * | parseXML (MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) |
| Provides support for XML parsing service.
|
|
virtual XalanDocument * | getSourceDocument (const XalanDOMString &theURI) const |
| Get the source document for the given URI.
|
|
virtual void | setSourceDocument (const XalanDOMString &theURI, XalanDocument *theDocument) |
| Associate a document with a given URI.
|
|
virtual const XalanDOMString & | findURIFromDoc (const XalanDocument *owner) const |
| Given a DOM Document, tell what URI was used to parse it.
|
|
virtual bool | elementAvailable (const XalanDOMString &theNamespace, const XalanDOMString &elementName) const |
| Determine if an external element is available.
|
|
virtual bool | functionAvailable (const XalanDOMString &theNamespace, const XalanDOMString &functionName) const |
| Determine if a function is available.
|
|
virtual XObjectPtr | extFunction (XPathExecutionContext &executionContext, const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator) const |
| Handle an extension function.
|
|
virtual void | reset () |
| Reset the instance.
|
|
| XPathEnvSupport () |
|
virtual | ~XPathEnvSupport () |
|
| ProblemListenerBase () |
|
virtual | ~ProblemListenerBase () |
|
|
static void | initialize (MemoryManager &theManager) |
| Perform initialization of statics – must be called before any processing occurs.
|
|
static void | terminate () |
| Perform termination of statics.
|
|
static void | installExternalFunctionGlobal (const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function) |
| Install an external function in the global space.
|
|
static void | uninstallExternalFunctionGlobal (const XalanDOMString &theNamespace, const XalanDOMString &functionName) |
| Uninstall an external function from the global space.
|
|
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.
|
|
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.
|
|
Definition at line 46 of file XPathEnvSupportDefault.hpp.
◆ FunctionTableType
◆ NamespaceFunctionTablesType
◆ SourceDocsTableType
◆ XPathEnvSupportDefault()
xalanc::XPathEnvSupportDefault::XPathEnvSupportDefault |
( |
MemoryManager &theManager |
XALAN_DEFAULT_MEMMGR | ) |
|
◆ ~XPathEnvSupportDefault()
virtual xalanc::XPathEnvSupportDefault::~XPathEnvSupportDefault |
( |
| ) |
|
|
virtual |
◆ elementAvailable()
Determine if an external element is available.
- Parameters
-
theNamespace | namespace for the element |
elementName | name of extension element |
- Returns
- whether the element is available or not
Implements xalanc::XPathEnvSupport.
◆ extFunction()
Handle an extension function.
- Parameters
-
executionContext | current execution context |
theNamespace | namespace of function
|
functionName | extension function name |
argVec | vector of arguments to function |
locator | A Locator instance for error reporting. |
- Returns
- pointer to XObject result
Implements xalanc::XPathEnvSupport.
◆ findFunction()
Find an external function.
- Parameters
-
theNamespace | The namespace for the function. |
functionName | The name of the function. |
- Returns
- a pointer to the function if found, or 0 if not found.
References xalanc::operator==().
◆ findURIFromDoc()
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
- Parameters
-
- Returns
- document URI
Implements xalanc::XPathEnvSupport.
◆ functionAvailable()
Determine if a function is available.
For standard function availability, theNamespace should be an empty string.
- Parameters
-
theNamespace | namespace for the function |
functionName | name of the function |
- Returns
- whether the function is available or not
Implements xalanc::XPathEnvSupport.
◆ getMemoryManager()
MemoryManager & xalanc::XPathEnvSupportDefault::getMemoryManager |
( |
| ) |
const |
|
inline |
◆ getSourceDocument()
◆ initialize()
static void xalanc::XPathEnvSupportDefault::initialize |
( |
MemoryManager & |
theManager | ) |
|
|
static |
Perform initialization of statics – must be called before any processing occurs.
See class XPathInit.
◆ installExternalFunctionGlobal()
Install an external function in the global space.
- Parameters
-
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
function | The function to install. |
◆ installExternalFunctionLocal()
Install an external function in the local space.
- Parameters
-
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
function | The function to install. |
◆ parseXML()
Provides support for XML parsing service.
- Parameters
-
theManager | The MemoryManager instance to use. |
urlString | location of the XML |
base | base location for URI |
theErrorHandler | An optional ErrorHandler instance for error reporting. |
- Returns
- parsed document
Implements xalanc::XPathEnvSupport.
◆ problem() [1/2]
Function that is called when a problem event occurs.
- Parameters
-
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 xalanc::XPathEnvSupport.
◆ problem() [2/2]
Function that is called when a problem event occurs.
This version assumes location information is already formatted into the message.
- Parameters
-
source | either eXMLPARSER, eXSLPROCESSOR, or eXPATH |
classification | either eMESSAGE, eERROR or eWARNING |
msg | string message explaining the problem. |
Implements xalanc::XPathEnvSupport.
◆ reset()
◆ setPrintWriter()
◆ setSourceDocument()
Associate a document with a given URI.
- Parameters
-
theURI | document URI |
theDocument | source document |
Implements xalanc::XPathEnvSupport.
◆ terminate()
static void xalanc::XPathEnvSupportDefault::terminate |
( |
| ) |
|
|
static |
Perform termination of statics.
See class XPathInit.
◆ uninstallExternalFunctionGlobal()
Uninstall an external function from the global space.
- Parameters
-
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
◆ uninstallExternalFunctionLocal()
Uninstall an external function from the local space.
- Parameters
-
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
The documentation for this class was generated from the following file: