Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XPath/XPathEnvSupportDefault.hpp>
Classes | |
struct | NamespaceFunctionTableDeleteFunctor |
Public Types | |
typedef XalanMap< XalanDOMString, XalanDocument * > | SourceDocsTableType |
typedef FunctionTableTypeDefinition | FunctionTableType |
typedef XalanMap< XalanDOMString, FunctionTableType > | NamespaceFunctionTablesType |
Public Types inherited from xalanc::XPathEnvSupport | |
typedef xercesc::Locator | LocatorType |
typedef Function::XObjectArgVectorType | XObjectArgVectorType |
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 |
Public Member Functions | |
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. 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 | installExternalFunctionLocal (const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function) |
Install an external function in the local space. More... | |
virtual void | uninstallExternalFunctionLocal (const XalanDOMString &theNamespace, const XalanDOMString &functionName) |
Uninstall an external function from the local space. More... | |
virtual XalanDocument * | parseXML (MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) |
Provides support for XML parsing service. More... | |
virtual XalanDocument * | getSourceDocument (const XalanDOMString &theURI) const |
Get the source document for the given URI. More... | |
virtual void | setSourceDocument (const XalanDOMString &theURI, XalanDocument *theDocument) |
Associate a document with a given URI. More... | |
virtual const XalanDOMString & | findURIFromDoc (const XalanDocument *owner) const |
Given a DOM Document, tell what URI was used to parse it. More... | |
virtual bool | elementAvailable (const XalanDOMString &theNamespace, const XalanDOMString &elementName) const |
Determine if an external element is available. More... | |
virtual bool | functionAvailable (const XalanDOMString &theNamespace, const XalanDOMString &functionName) const |
Determine if a function is available. More... | |
virtual XObjectPtr | extFunction (XPathExecutionContext &executionContext, const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator) const |
Handle an extension function. More... | |
virtual void | reset () |
Reset the instance. More... | |
Public Member Functions inherited from xalanc::XPathEnvSupport | |
XPathEnvSupport () | |
virtual | ~XPathEnvSupport () |
Public Member Functions inherited from xalanc::ProblemListenerBase | |
ProblemListenerBase () | |
virtual | ~ProblemListenerBase () |
Static Public Member Functions | |
static void | initialize (MemoryManager &theManager) |
Perform initialization of statics – must be called before any processing occurs. More... | |
static void | terminate () |
Perform termination of statics. More... | |
static void | installExternalFunctionGlobal (const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function &function) |
Install an external function in the global space. More... | |
static void | uninstallExternalFunctionGlobal (const XalanDOMString &theNamespace, const XalanDOMString &functionName) |
Uninstall an external function from the global space. More... | |
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... | |
Protected Member Functions | |
const Function * | findFunction (const XalanDOMString &theNamespace, const XalanDOMString &functionName) const |
Find an external function. More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from xalanc::ProblemListenerBase | |
static const XalanMessages::Codes | s_messageCodes [eSourceCount][eClassificationCount] |
Definition at line 46 of file XPathEnvSupportDefault.hpp.
Definition at line 51 of file XPathEnvSupportDefault.hpp.
typedef XalanMap<XalanDOMString, FunctionTableType> xalanc::XPathEnvSupportDefault::NamespaceFunctionTablesType |
Definition at line 52 of file XPathEnvSupportDefault.hpp.
typedef XalanMap<XalanDOMString, XalanDocument*> xalanc::XPathEnvSupportDefault::SourceDocsTableType |
Definition at line 50 of file XPathEnvSupportDefault.hpp.
xalanc::XPathEnvSupportDefault::XPathEnvSupportDefault | ( | MemoryManager &theManager | XALAN_DEFAULT_MEMMGR | ) |
|
virtual |
|
virtual |
Determine if an external element is available.
theNamespace | namespace for the element |
elementName | name of extension element |
Implements xalanc::XPathEnvSupport.
|
virtual |
Handle an extension function.
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. |
Implements xalanc::XPathEnvSupport.
|
protected |
Find an external function.
theNamespace | The namespace for the function. |
functionName | The name of the function. |
|
virtual |
Given a DOM Document, tell what URI was used to parse it.
Needed for relative resolution.
owner | source document |
Implements xalanc::XPathEnvSupport.
|
virtual |
Determine if a function is available.
For standard function availability, theNamespace should be an empty string.
theNamespace | namespace for the function |
functionName | name of the function |
Implements xalanc::XPathEnvSupport.
|
inline |
Definition at line 74 of file XPathEnvSupportDefault.hpp.
|
virtual |
Get the source document for the given URI.
theURI | document URI |
Implements xalanc::XPathEnvSupport.
|
static |
Perform initialization of statics – must be called before any processing occurs.
See class XPathInit.
|
static |
Install an external function in the global space.
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
function | The function to install. |
|
virtual |
Install an external function in the local space.
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
function | The function to install. |
|
virtual |
Provides support for XML parsing service.
theManager | The MemoryManager instance to use. |
urlString | location of the XML |
base | base location for URI |
theErrorHandler | An optional ErrorHandler instance for error reporting. |
Implements xalanc::XPathEnvSupport.
|
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 xalanc::XPathEnvSupport.
|
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 xalanc::XPathEnvSupport.
|
virtual |
Reset the instance.
Implements xalanc::XPathEnvSupport.
|
virtual |
|
virtual |
Associate a document with a given URI.
theURI | document URI |
theDocument | source document |
Implements xalanc::XPathEnvSupport.
|
static |
Perform termination of statics.
See class XPathInit.
|
static |
Uninstall an external function from the global space.
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
|
virtual |
Uninstall an external function from the local space.
theNamespace | The namespace for the functionl |
functionName | The name of the function. |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:40 for Xalan-C++ API Reference by 1.8.17