Xalan-C++ API Reference 1.12.0
|
Class handling an extension namespace for XPath. More...
#include <xalanc/XSLT/ExtensionFunctionHandler.hpp>
Public Types | |
typedef XalanVector< void * > | ArgVectorType |
Vector of pointers to function arguments. | |
typedef XalanSet< XalanDOMString > | StringSetType |
Protected Member Functions | |
virtual void | startupComponent () |
Start the component up by executing any script that needs to run at startup time. | |
Static Protected Attributes | |
static const XalanDOMChar | s_tokenDelimiterCharacters [] |
Class handling an extension namespace for XPath.
Provides functions to test a function's existence and call a function
Definition at line 58 of file ExtensionFunctionHandler.hpp.
Vector of pointers to function arguments.
Definition at line 140 of file ExtensionFunctionHandler.hpp.
Definition at line 142 of file ExtensionFunctionHandler.hpp.
xalanc::ExtensionFunctionHandler::ExtensionFunctionHandler | ( | const XalanDOMString & | namespaceUri, |
MemoryManager & | theManager | ||
) |
Construct a new extension namespace handler for a given extension NS.
This doesn't do anything - just hang on to the namespace URI.
namespaceUri | the extension namespace URI that I'm implementing |
xalanc::ExtensionFunctionHandler::ExtensionFunctionHandler | ( | MemoryManager & | theManager, |
const XalanDOMString & | namespaceUri, | ||
const XalanDOMString & | funcNames, | ||
const XalanDOMString & | lang, | ||
const XalanDOMString & | srcURL, | ||
const XalanDOMString & | scriptSrc | ||
) |
Construct a new extension namespace handler given all the information needed.
namespaceUri | the extension namespace URI that I'm implementing |
funcNames | string containing list of functions of extension NS |
lang | language of code implementing the extension |
srcURL | value of src attribute (if any) - treated as a URL or a classname depending on the value of lang. If srcURL is not null, then scriptSrc is ignored. |
scriptSrc | the actual script code (if any) |
|
virtual |
|
virtual |
Process a call to a function.
funcName | Function name. |
args | The arguments of the function call. |
XSLProcessorException | thrown if something goes wrong while running the extension handler. |
MalformedURLException | if loading trouble |
FileNotFoundException | if loading trouble |
IOException | if loading trouble |
SAXException | if parsing trouble |
|
inline |
Definition at line 97 of file ExtensionFunctionHandler.hpp.
|
virtual |
Tests whether a certain function name is known within this namespace.
function | name of the function being tested |
|
virtual |
Set function local parts of extension NS.
functions | whitespace separated list of function names defined by this extension namespace. |
Reimplemented in xalanc::ExtensionNSHandler.
|
virtual |
Set the script data for this extension NS.
If srcURL is !null then the script body is read from that URL. If not the scriptSrc is used as the src. This method does not actually execute anything - that's done when the component is first hit by the user by an element or a function call.
lang | language of the script. |
srcURL | value of src attribute (if any) - treated as a URL or a classname depending on the value of lang. If srcURL is not null, then scriptSrc is ignored. |
scriptSrc | the actual script code (if any) |
Reimplemented in xalanc::ExtensionNSHandler.
Start the component up by executing any script that needs to run at startup time.
This needs to happen before any functions can be called on the component.
XPathProcessorException | if something bad happens. |
Reimplemented in xalanc::ExtensionNSHandler.
|
protected |
Definition at line 178 of file ExtensionFunctionHandler.hpp.
|
protected |
Definition at line 174 of file ExtensionFunctionHandler.hpp.
|
protected |
Definition at line 172 of file ExtensionFunctionHandler.hpp.
|
protected |
Definition at line 167 of file ExtensionFunctionHandler.hpp.
|
protected |
Definition at line 168 of file ExtensionFunctionHandler.hpp.
|
protected |
Definition at line 169 of file ExtensionFunctionHandler.hpp.
|
protected |
Definition at line 170 of file ExtensionFunctionHandler.hpp.
|
staticprotected |
Definition at line 192 of file ExtensionFunctionHandler.hpp.
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Mon Feb 5 2024 20:50:04 for Xalan-C++ API Reference by