Unicorn XML Toolkit
Version 1.00.00

Namespace EcmaScriptXml
Class CXmlObject

class CXmlObject: public CNativeObject {
public:
    CXmlObject(
        CGlobalObject *pGlobalObject,
        const XReaderFactory &pReaderFactory,
        const XWriterFactory &pWriterFactory);
    ~CXmlObject();
public:
    void Create();
public:
    CString Class();
public:
    CGlobalObject *GetGlobalObject();
    XObject GetAttributesPrototype();
    XObject GetContentHandlerPrototype();
    XObject GetDtdHandlerPrototype();
    XObject GetEntityResolverPrototype();
    XObject GetErrorHandlerPrototype();
    XObject GetInputSourcePrototype();
    XObject GetLocatorPrototype();
    XObject GetNamespaceSupportPrototype();
    XObject GetExceptionPrototype();
    XObject GetNotSupportedExceptionPrototype();
    XObject GetNotRecognizedExceptionPrototype();
    XObject GetParseExceptionPrototype();
    XObject GetStreamPrototype();
    XObject GetProcessorPrototype();
    XObject GetReaderPrototype();
    XObject GetFilterPrototype();
    XObject GetWriterPrototype();
    };

The XML extension root object.

An object of this class is created when the XML extension is registered using CXmlExtension::Register .

Since:
1.00.00
Version:
1.00.00
Author:
Alexey Gokhberg
See Also:
EcmaScript::CObject, EcmaScript::CGlobalObject, Sax::CXmlReaderFactory, XmlWriter::CXmlWriterFactory
Constructor/Destructor Summary
CXmlObject (CGlobalObject *pGlobalObject, const XReaderFactory &pReaderFactory, const XWriterFactory &pWriterFactory);
����������Constructs the XML root object.
~CXmlObject ();
����������Destroys the XML root object.

Function Summary
void Create ();
����������Finalizes the object initialization.
CString Class ();
����������Returns the value of the internal [[Class]] property of this object.
CGlobalObject�* GetGlobalObject ();
����������Returns the ECMAScript global object associated with this object.
XObject GetAttributesPrototype ();
����������Returns the Attributes prototype object.
XObject GetContentHandlerPrototype ();
����������Returns the ContentHandler prototype object.
XObject GetDtdHandlerPrototype ();
����������Returns the DtdHandler prototype object.
XObject GetEntityResolverPrototype ();
����������Returns the EntityResolver prototype object.
XObject GetErrorHandlerPrototype ();
����������Returns the ErrorHandler prototype object.
XObject GetInputSourcePrototype ();
����������Returns the InputSource prototype object.
XObject GetLocatorPrototype ();
����������Returns the Locator prototype object.
XObject GetNamespaceSupportPrototype ();
����������Returns the NamespaceSupport prototype object.
XObject GetExceptionPrototype ();
����������Returns the Exception prototype object.
XObject GetNotSupportedExceptionPrototype ();
����������Returns the NotSupportedException prototype object.
XObject GetNotRecognizedExceptionPrototype ();
����������Returns the NotRecognizedException prototype object.
XObject GetParseExceptionPrototype ();
����������Returns the ParseException prototype object.
XObject GetStreamPrototype ();
����������Returns the Stream prototype object.
XObject GetProcessorPrototype ();
����������Returns the Processor prototype object.
XObject GetReaderPrototype ();
����������Returns the Reader prototype object.
XObject GetFilterPrototype ();
����������Returns the Filter prototype object.
XObject GetWriterPrototype ();
����������Returns the Writer prototype object.

Constructor/Destructor Detail

CXmlObject

CXmlObject(
    CGlobalObject *pGlobalObject,
    const XReaderFactory &pReaderFactory,
    const XWriterFactory &pWriterFactory);

Constructs the XML root object.

The following information is required for the object construction:

Note that, once the XML root object is constructed, the member function Create must be called in order to finalize the object initialization.

Parameters:
pGlobalObject - the ECMAScript global object
pReaderFactory - the XML reader factory
pWriterFactory - the XML writer factory

~CXmlObject

~CXmlObject();

Destroys the XML root object.

Function Detail

Create

void Create();

Finalizes the object initialization.

This function is called from CXmlExtension::Register . Application programmers normally do not use this function.

Class

CString Class();

Returns the value of the internal [[Class]] property of this object.

This value is always "XML" .

Returns:
the string value of the internal [[Class]] property of this object

GetGlobalObject

CGlobalObject *GetGlobalObject();

Returns the ECMAScript global object associated with this object.

Returns:
the ECMAScript global object associated with this object

GetAttributesPrototype

XObject GetAttributesPrototype();

Returns the Attributes prototype object.

The returned object is the initial value of XML.Attributes.prototype .

Returns:
the Attributes prototype object

GetContentHandlerPrototype

XObject GetContentHandlerPrototype();

Returns the ContentHandler prototype object.

The returned object is the initial value of XML.ContentHandler.prototype .

Returns:
the ContentHandler prototype object

GetDtdHandlerPrototype

XObject GetDtdHandlerPrototype();

Returns the DtdHandler prototype object.

The returned object is the initial value of XML.DtdHandler.prototype .

Returns:
the DtdHandler prototype object

GetEntityResolverPrototype

XObject GetEntityResolverPrototype();

Returns the EntityResolver prototype object.

The returned object is the initial value of XML.EntityResolver.prototype .

Returns:
the EntityResolver prototype object

GetErrorHandlerPrototype

XObject GetErrorHandlerPrototype();

Returns the ErrorHandler prototype object.

The returned object is the initial value of XML.ErrorHandler.prototype .

Returns:
the ErrorHandler prototype object

GetInputSourcePrototype

XObject GetInputSourcePrototype();

Returns the InputSource prototype object.

The returned object is the initial value of XML.InputSource.prototype .

Returns:
the InputSource prototype object

GetLocatorPrototype

XObject GetLocatorPrototype();

Returns the Locator prototype object.

The returned object is the initial value of XML.Locator.prototype .

Returns:
the Locator prototype object

GetNamespaceSupportPrototype

XObject GetNamespaceSupportPrototype();

Returns the NamespaceSupport prototype object.

The returned object is the initial value of XML.NamespaceSupport.prototype .

Returns:
the NamespaceSupport prototype object

GetExceptionPrototype

XObject GetExceptionPrototype();

Returns the Exception prototype object.

The returned object is the initial value of XML.Exception.prototype .

Returns:
the Exception prototype object

GetNotSupportedExceptionPrototype

XObject GetNotSupportedExceptionPrototype();

Returns the NotSupportedException prototype object.

The returned object is the initial value of XML.NotSupportedException.prototype .

Returns:
the NotSupportedException prototype object

GetNotRecognizedExceptionPrototype

XObject GetNotRecognizedExceptionPrototype();

Returns the NotRecognizedException prototype object.

The returned object is the initial value of XML.NotRecognizedException.prototype .

Returns:
the NotRecognizedException prototype object

GetParseExceptionPrototype

XObject GetParseExceptionPrototype();

Returns the ParseException prototype object.

The returned object is the initial value of XML.ParseException.prototype .

Returns:
the ParseException prototype object

GetStreamPrototype

XObject GetStreamPrototype();

Returns the Stream prototype object.

The returned object is the initial value of XML.Stream.prototype .

Returns:
the Stream prototype object

GetProcessorPrototype

XObject GetProcessorPrototype();

Returns the Processor prototype object.

The returned object is the initial value of XML.Processor.prototype .

Returns:
the Processor prototype object

GetReaderPrototype

XObject GetReaderPrototype();

Returns the Reader prototype object.

The returned object is the initial value of XML.Reader.prototype .

Returns:
the Reader prototype object

GetFilterPrototype

XObject GetFilterPrototype();

Returns the Filter prototype object.

The returned object is the initial value of XML.Filter.prototype .

Returns:
the Filter prototype object

GetWriterPrototype

XObject GetWriterPrototype();

Returns the Writer prototype object.

The returned object is the initial value of XML.Writer.prototype .

Returns:
the Writer prototype object

Unicorn XML Toolkit
Version 1.00.00


This document was created using Unicorn DOC++.

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