Unicorn XML Toolkit
Version 1.00.00

Namespace Xslt
Class CExtensionPackage

class CExtensionPackage: public CInterface {
public:
    CExtensionPackage();
    virtual ~CExtensionPackage();
public:
    virtual CString GetNamespaceUri() = 0;
    virtual XExtensionPackageContext 
        CreateExtensionPackageContext() = 0;
    virtual bool IsExtensionElementAvailable(
        const CString &strLocalName) = 0;
    virtual XExtensionElement CreateExtensionElement(
        const XExtensionStaticContext &pExtensionStaticContext) = 0;
    virtual bool IsExtensionFunctionAvailable(
        const CString &strLocalName) = 0;
    virtual XExtensionFunction FindExtensionFunction(
        const CString &strLocalName) = 0;
    };

The abstract interface to XSLT extension packages.

An extension package is a collection of all extension elements and extension functions associated with the same namespace URI.

For each extension package supported by the particular XSLT implementation, the separate derived class must be provided.

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

Function Summary
CString GetNamespaceUri ();
����������Returns the namespace URI associated with this extension package.
XExtensionPackageContext CreateExtensionPackageContext ();
����������Creates the extension package context for this extension package.
bool IsExtensionElementAvailable (const CString &strLocalName);
����������Tests whether the extension element with the given local name is supported by this extension package.
XExtensionElement CreateExtensionElement (const XExtensionStaticContext &pExtensionStaticContext);
����������Creates an extension element in the given extension static context.
bool IsExtensionFunctionAvailable (const CString &strLocalName);
����������Tests whether the extension function with the given local name is supported by this extension package.
XExtensionFunction FindExtensionFunction (const CString &strLocalName);
����������Looks up the extension function with the given local name in this extension package.

Constructor/Destructor Detail

CExtensionPackage

CExtensionPackage();

Constructs the extension package.

~CExtensionPackage

virtual ~CExtensionPackage();

Destroys the extension package.

Function Detail

GetNamespaceUri

virtual CString GetNamespaceUri() = 0;

Returns the namespace URI associated with this extension package.

Returns:
the namespace URI associated with this extension package

CreateExtensionPackageContext

virtual XExtensionPackageContext 
    CreateExtensionPackageContext() = 0;

Creates the extension package context for this extension package.

Returns:
the newly created extension package context for this extension package

IsExtensionElementAvailable

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

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

Parameters:
strLocalName - the local name of the element
Returns:
true if the extension element with the given name is supported by this extension package; 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 &strLocalName) = 0;

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

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

FindExtensionFunction

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

Looks up the extension function with the given local name in this extension package.

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

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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