#include <xml/dom/xmlengxpathconfiguration.h>
class XmlEngXPathConfiguration |
Public Member Functions | |
---|---|
IMPORT_C void | AddExtensionFunctionL(const TXmlEngExtensionFunctionDescriptor &) |
IMPORT_C void | AddExtensionFunctionVectorL(const RArray< TXmlEngExtensionFunctionDescriptor > &, TUint) |
IMPORT_C void | AddNativeExtensionFunctionL(const TXmlEngExtensionFunctionDescriptor &) |
IMPORT_C void | AddNativeExtensionFunctionVectorL(const RArray< TXmlEngExtensionFunctionDescriptor > &, TUint) |
IMPORT_C TBool | IsFunctionSupportedL(const TDesC8 &, const TDesC8 &) |
IMPORT_C void | RemoveExtensionFunction(const TXmlEngExtensionFunctionDescriptor &) |
IMPORT_C void | RemoveExtensionFunctionVector(const RArray< TXmlEngExtensionFunctionDescriptor > &, TUint) |
IMPORT_C void | ResetExtensionFunctionsL() |
IMPORT_C void | Unused_Func1(TBool) |
This object is used to support extension functions used within the XPath library. Extension functions may be added or removed. This object can also determine whether an extension function is supported.
Extension functions are stored in a TXmlEngExtensionFunctionDescriptor object which holds the extension function (a MXmlEngXPathExtensionFunction instance), the function name and the function namespace. An extension function can be added to the library using XmlEngXPathConfiguration::AddExtensionFunctionL().
When an extension function is to be evaluated, MXmlEngXPathExtensionFunction::Evaluate() is called with a MXmlEngXPathEvaluationContext instance which holds the function arguments and evaluation result.
See also: MXmlEngXPathExtensionFunction MXmlEngXPathEvaluationContext TXmlEngExtensionFunctionDescriptor
IMPORT_C void | AddExtensionFunctionL | ( | const TXmlEngExtensionFunctionDescriptor & | aFuncDes | ) | [static] |
Registers an extension function at the global scope.
One of the system-wide error codes
Parameter | Description |
---|---|
aFuncDes | Function descriptor. |
IMPORT_C void | AddExtensionFunctionVectorL | ( | const RArray< TXmlEngExtensionFunctionDescriptor > & | aFuncVector, |
TUint | aSize | |||
) | [static] |
Registers a set of extension functions at the global scope.
One of the system-wide error codes
Parameter | Description |
---|---|
aFuncVector | Vector with function descriptors. Ownership is not transferred. |
aSize | The size of the vector |
IMPORT_C void | AddNativeExtensionFunctionL | ( | const TXmlEngExtensionFunctionDescriptor & | aNativeFuncDes | ) | [static] |
Registers a native extension function at the global scope.
One of the system-wide error codes
Parameter | Description |
---|---|
aNativeFuncDes | Function descriptor. |
IMPORT_C void | AddNativeExtensionFunctionVectorL | ( | const RArray< TXmlEngExtensionFunctionDescriptor > & | aNativeFuncVector, |
TUint | aSize | |||
) | [static] |
Registers a set of native extension functions at the global scope.
One of the system-wide error codes
Parameter | Description |
---|---|
aNativeFuncVector | Function descriptor. |
aSize | The size of the vector |
IMPORT_C void | RemoveExtensionFunction | ( | const TXmlEngExtensionFunctionDescriptor & | aFuncDes | ) | [static] |
Deregisters an extension function. No error is generated if the extension function is not found.
Parameter | Description |
---|---|
aFuncDes | Function descriptor. |
IMPORT_C void | RemoveExtensionFunctionVector | ( | const RArray< TXmlEngExtensionFunctionDescriptor > & | aFuncVector, |
TUint | aSize | |||
) | [static] |
Deregisters a set of extension functions. No error is generated if an extension function in the vector is not found.
Parameter | Description |
---|---|
aFuncVector | Vector with function descriptors. |
aSize | The size of the vector |