Unicorn XML Toolkit
Version 1.00.00

Namespace Xslt
Class CExtensionHandler

class CExtensionHandler: public CInterface {
public:
    CExtensionHandler();
    virtual ~CExtensionHandler();
public:
    virtual XTopLevelExtensionContext 
        CreateTopLevelExtensionContext() = 0;
    virtual bool IsExtensionElementAvailable(
        const CString &strNamespaceUri,
        const CString &strLocalName) = 0;
    virtual XExtensionElement CreateExtensionElement(
        const XExtensionStaticContext &pExtensionStaticContext) = 0;
    virtual bool IsExtensionFunctionAvailable(
        const CString &strNamespaceUri,
        const CString &strLocalName) = 0;
    virtual XExtensionFunction FindExtensionFunction(
        const CString &strNamespaceUri,
        const CString &strLocalName) = 0;
    virtual void AddExtensionPackage(
        const XExtensionPackage &pExtensionPackage) = 0;
    virtual XExtensionPackage FindExtensionPackage(
        const CString &strNamespaceUri) = 0;
    };

The abstract interface for handling all extension elements and extension functions supported by the particular XSLT implementation.

Implementation of the interface defined by this class is supplied by the toolkit; toolkit users do not need to implement this interface.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CTopLevelExtensionContext, CExtensionElement, CExtensionFunction, CExtensionPackage
Constructor/Destructor Summary
CExtensionHandler ();
����������Constructs the extension handler.
~CExtensionHandler ();
����������Destroys the extension handler.

Function Summary
XTopLevelExtensionContext CreateTopLevelExtensionContext ();
����������Creates the top-level extension context.
bool IsExtensionElementAvailable (const CString &strNamespaceUri, const CString &strLocalName);
����������Tests whether the extension element with the given name is supported by this extension handler.
XExtensionElement CreateExtensionElement (const XExtensionStaticContext &pExtensionStaticContext);
����������Creates an extension element in the given extension static context.
bool IsExtensionFunctionAvailable (const CString &strNamespaceUri, const CString &strLocalName);
����������Tests whether the extension function with the given name is supported by this extension handler.
XExtensionFunction FindExtensionFunction (const CString &strNamespaceUri, const CString &strLocalName);
����������Looks ip extension function with the given name in the list of functions supported by this extension handler.
void AddExtensionPackage (const XExtensionPackage &pExtensionPackage);
����������Adds the extension package to the list of packages supported by this extension handler.
XExtensionPackage FindExtensionPackage (const CString &strNamespaceUri);
����������Looks up the extension package with the given namepace URI in the list of packages supported by this extension handler.

Constructor/Destructor Detail

CExtensionHandler

CExtensionHandler();

Constructs the extension handler.

~CExtensionHandler

virtual ~CExtensionHandler();

Destroys the extension handler.

Function Detail

CreateTopLevelExtensionContext

virtual XTopLevelExtensionContext 
    CreateTopLevelExtensionContext() = 0;

Creates the top-level extension context.

Returns:
the newly created extension context

IsExtensionElementAvailable

virtual bool IsExtensionElementAvailable(
    const CString &strNamespaceUri,
    const CString &strLocalName) = 0;

Tests whether the extension element with the given name is supported by this extension handler.

Parameters:
strNamespaceUri - the namespace URI of the element
strLocalName - the local name of the element
Returns:
true if the extension element with the given name is supported by this extension handler; false otherwise

CreateExtensionElement

virtual XExtensionElement CreateExtensionElement(
    const XExtensionStaticContext &pExtensionStaticContext) = 0;

Creates an extension element in the given extension static context.

Parameters:
pExtensionStaticContext - the extension static context
Returns:
the newly created extension element

IsExtensionFunctionAvailable

virtual bool IsExtensionFunctionAvailable(
    const CString &strNamespaceUri,
    const CString &strLocalName) = 0;

Tests whether the extension function with the given name is supported by this extension handler.

Parameters:
strNamespaceUri - the namespace URI of the function
strLocalName - the local name of the function
Returns:
true if the extension function with the given name is supported by this extension handler; false otherwise

FindExtensionFunction

virtual XExtensionFunction FindExtensionFunction(
    const CString &strNamespaceUri,
    const CString &strLocalName) = 0;

Looks ip extension function with the given name in the list of functions supported by this extension handler.

Parameters:
strNamespaceUri - the namespace URI of the function
strLocalName - the local name of the function
Returns:
the extension function with the given name, or NULL if the function with this name is not supported by this extension handler

AddExtensionPackage

virtual void AddExtensionPackage(
    const XExtensionPackage &pExtensionPackage) = 0;

Adds the extension package to the list of packages supported by this extension handler.

Parameters:
pExtensionPackage - the extension package to add

FindExtensionPackage

virtual XExtensionPackage FindExtensionPackage(
    const CString &strNamespaceUri) = 0;

Looks up the extension package with the given namepace URI in the list of packages supported by this extension handler.

Parameters:
strNamespaceUri - the namespace URI of the package
Returns:
the extension package with the given namespace URI, or NULL if there is no such package in the list of packages supported by this extension handler

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.