Unicorn XML Toolkit
Version 1.00.00

Namespace XsltObject
Class CObjectExtensionPackage

class CObjectExtensionPackage: public CExtensionPackage {
public:
    CObjectExtensionPackage(
        const CString &strNamespaceUri,
        const XObjectHandler &pObjectHandler);
    ~CObjectExtensionPackage();
public:
    CString GetNamespaceUri();
    XExtensionPackageContext CreateExtensionPackageContext();
    bool IsExtensionElementAvailable(const CString &strLocalName);
    XExtensionElement CreateExtensionElement(
        const XExtensionStaticContext &pExtensionStaticContext);
    bool IsExtensionFunctionAvailable(const CString &strLocalName);
    XExtensionFunction FindExtensionFunction(
        const CString &strLocalName);
    };

The XSLT extension package implementing Object Access Extensions.

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
CObjectHandler, Xslt::CExtensionStaticContext, Xslt::CExtensionElement, Xslt::CExtensionFunction, Xslt::CExtensionPackageContext
Constructor/Destructor Summary
CObjectExtensionPackage (const CString &strNamespaceUri, const XObjectHandler &pObjectHandler);
����������Constructs the extension package.
~CObjectExtensionPackage ();
����������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

CObjectExtensionPackage

CObjectExtensionPackage(
    const CString &strNamespaceUri,
    const XObjectHandler &pObjectHandler);

Constructs the extension package.

Parameters:
strNamespaceUri - the namespace URI assigned to the extension implemented by this package
pObjectHandler - the object handler assigned to this package

~CObjectExtensionPackage

~CObjectExtensionPackage();

Destroys the extension package.

Function Detail

GetNamespaceUri

CString GetNamespaceUri();

Returns the namespace URI associated with this extension package.

Returns:
the namespace URI associated with this extension package

CreateExtensionPackageContext

XExtensionPackageContext CreateExtensionPackageContext();

Creates the extension package context for this extension package.

Returns:
the newly created extension package context

IsExtensionElementAvailable

bool IsExtensionElementAvailable(const CString &strLocalName);

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

XExtensionElement CreateExtensionElement(
    const XExtensionStaticContext &pExtensionStaticContext);

Creates an extension element in the given extension static context.

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

IsExtensionFunctionAvailable

bool IsExtensionFunctionAvailable(const CString &strLocalName);

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

XExtensionFunction FindExtensionFunction(
    const CString &strLocalName);

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 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.