All Frameworks  Class Hierarchy  This Framework  Indexes   

XMLParser Class CATSAXParserAdapter

Usage: you must use this class as is. You should never derive it.


public class CATSAXParserAdapter

Class to adapt a SAX1 CATISAXParser as a SAX2 CATISAXXMLReader.

This class wraps a SAX1 CATISAXParser and makes it act as a SAX2 CATISAXXMLReader, with feature, property, and Namespace support. Note that it is not possible to report CATISAXContentHandler.SkippedEntity events, since SAX1 does not make that information available. This adapter does not test for duplicate Namespace-qualified attribute names.

See also:
CATISAXXMLReader, CATISAXParser


Constructor and Destructor Index


o ~CATSAXParserAdapter()
Destructor.

Method Index


o CreateAdapter(CATISAXParser_var&,CATISAXXMLReader_var&)
Factory method.
o GetContentHandler(CATISAXContentHandler_var&)
Retrieves the current content event handler.
o GetDTDHandler(CATISAXDTDHandler_var&)
Retrieves the current DTD event handler.
o GetEntityResolver(CATISAXEntityResolver_var&)
Retrieves the current entity resolver.
o GetErrorHandler(CATISAXErrorHandler_var&)
Retrieves the current error event handler.
o GetFeature(CATUnicodeString&,CATBoolean&)
Retrieves the value of a feature.
o GetProperty(CATUnicodeString&,CATVariant&)
Retrieves up the value of a property.
o Parse(CATUnicodeString&)
Parses an XML document from a system identifier (URI).
o Parse(CATISAXInputSource_var&)
Parses an XML document.
o SetContentHandler(CATISAXContentHandler_var&)
Allows an application to register a content event handler.
o SetDTDHandler(CATISAXDTDHandler_var&)
Allows an application to register a DTD event handler.
o SetEntityResolver(CATISAXEntityResolver_var&)
Allows an application to register a custom entity resolver.
o SetErrorHandler(CATISAXErrorHandler_var&)
Allows an application to register an error event handler.
o SetFeature(CATUnicodeString&,CATBoolean)
Sets the value of a feature.
o SetProperty(CATUnicodeString&,CATVariant&)
Sets the value of a property.

Constructor and Destructor


o ~CATSAXParserAdapter
public virtual ~CATSAXParserAdapter()
Destructor.

Methods


o CreateAdapter
public static CreateAdapter( const iParser,
oReader)
Factory method.
Parameters:
iParser
The parser to encapsulate
oReader
The resulting reader
o GetContentHandler
public virtual GetContentHandler( oContentHandler)
Retrieves the current content event handler.
See also:
CATISAXXMLReader.GetContentHandler
o GetDTDHandler
public virtual GetDTDHandler( oDTDHandler)
Retrieves the current DTD event handler.
See also:
CATISAXXMLReader.GetDTDHandler
o GetEntityResolver
public virtual GetEntityResolver( oEntityResolver)
Retrieves the current entity resolver.
See also:
CATISAXXMLReader.GetEntityResolver
o GetErrorHandler
public virtual GetErrorHandler( oErrorHandler)
Retrieves the current error event handler.
See also:
CATISAXXMLReader.GetErrorHandler
o GetFeature
public virtual GetFeature( const iName,
oFeature)
Retrieves the value of a feature.
See also:
CATISAXXMLReader.GetFeature
o GetProperty
public virtual GetProperty( const iName,
oProperty)
Retrieves up the value of a property.
See also:
CATISAXXMLReader.GetProperty
o Parse
public virtual Parse( const iSystemId)
Parses an XML document from a system identifier (URI).
See also:
CATISAXXMLReader.Parse
o Parse
public virtual Parse( const iInputSource)
Parses an XML document.
See also:
CATISAXXMLReader.Parse
o SetContentHandler
public virtual SetContentHandler( const iContentHandler)
Allows an application to register a content event handler.
See also:
CATISAXXMLReader.SetContentHandler
o SetDTDHandler
public virtual SetDTDHandler( const iDTDHandler)
Allows an application to register a DTD event handler.
See also:
CATISAXXMLReader.SetDTDHandler
o SetEntityResolver
public virtual SetEntityResolver( const iEntityResolver)
Allows an application to register a custom entity resolver.
See also:
CATISAXXMLReader.SetEntityResolver
o SetErrorHandler
public virtual SetErrorHandler( const iErrorHandler)
Allows an application to register an error event handler.
See also:
CATISAXXMLReader.SetErrorHandler
o SetFeature
public virtual SetFeature( const iName,
iFeature)
Sets the value of a feature.
See also:
CATISAXXMLReader.SetFeature
o SetProperty
public virtual SetProperty( const iName,
const iProperty)
Sets the value of a property.
See also:
CATISAXXMLReader.SetProperty

This object is included in the file: CATSAXParserAdapter.h
If needed, your Imakefile.mk should include the module: CATXMLParserItf

Copyright © 2003, Dassault Systèmes. All rights reserved.