Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACEXML_XMLFilterImpl Class Reference

ACEXML_XMLFilterImpl. More...

#include "ACEXML/common/XMLFilterImpl.h"

Inheritance diagram for ACEXML_XMLFilterImpl:

Inheritance graph
[legend]
Collaboration diagram for ACEXML_XMLFilterImpl:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACEXML_XMLFilterImpl (void)
 Default constructor. More...

 ACEXML_XMLFilterImpl (ACEXML_XMLReader *parent)
 Construct an XML filter with the specified parent. More...

virtual ~ACEXML_XMLFilterImpl (void)
 Destructor. More...

virtual int getFeature (const ACEXML_Char *name, ACEXML_Env &xmlenv)
 Look up the value of a feature. More...

virtual void * getProperty (const ACEXML_Char *name, ACEXML_Env &xmlenv)
 Look up the value of a property. More...

virtual void parse (ACEXML_InputSource *input, ACEXML_Env &xmlenv)
 Parse an XML document. More...

virtual void parse (const ACEXML_Char *systemId, ACEXML_Env &xmlenv)
 Parse an XML document from a system identifier (URI). More...

virtual void setFeature (const ACEXML_Char *name, int boolean_value, ACEXML_Env &xmlenv)
 Activating or deactivating a feature. More...

virtual void setProperty (const ACEXML_Char *name, void *value, ACEXML_Env &xmlenv)
 Set the value of a property. More...

virtual ACEXML_XMLReadergetParent (void) const
 Get the parent reader. More...

virtual void setParent (ACEXML_XMLReader *parent)
 Set the parent reader. More...

virtual ACEXML_DTDHandlergetDTDHandler (void) const
 Return the current DTD handler. More...

virtual ACEXML_ContentHandlergetContentHandler (void) const
 Return the current content handler. More...

virtual ACEXML_EntityResolvergetEntityResolver (void) const
 Return the current entity resolver. More...

virtual ACEXML_ErrorHandlergetErrorHandler (void) const
 Return the current error handler. More...

virtual void setDTDHandler (ACEXML_DTDHandler *handler)
 Allow an application to register a DTD event handler. More...

virtual void setContentHandler (ACEXML_ContentHandler *handler)
 Allow an application to register a content event handler. More...

virtual void setEntityResolver (ACEXML_EntityResolver *handler)
 Allow an application to register an entity resolver. More...

virtual void setErrorHandler (ACEXML_ErrorHandler *handler)
 Allow an application to register an error event handler. More...

virtual void characters (const ACEXML_Char *ch, int start, int length, ACEXML_Env &xmlenv)
 Receive notification of character data. More...

virtual void endDocument (ACEXML_Env &xmlenv)
 Receive notification of the end of a document. More...

virtual void endElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Env &xmlenv)
 Receive notification of the end of an element. More...

virtual void endPrefixMapping (const ACEXML_Char *prefix, ACEXML_Env &xmlenv)
 End the scope of a prefix-URI mapping. More...

virtual void ignorableWhitespace (const ACEXML_Char *ch, int start, int length, ACEXML_Env &xmlenv)
 Receive notification of ignorable whitespace in element content. More...

virtual void processingInstruction (const ACEXML_Char *target, const ACEXML_Char *data, ACEXML_Env &xmlenv)
 Receive notification of a processing instruction. More...

virtual void setDocumentLocator (ACEXML_Locator *locator, ACEXML_Env &xmlenv)
 Receive an object for locating the origin of SAX document events. More...

virtual void skippedEntity (const ACEXML_Char *name, ACEXML_Env &xmlenv)
 Receive notification of a skipped entity. More...

virtual void startDocument (ACEXML_Env &xmlenv)
 Receive notification of the beginning of a document. More...

virtual void startElement (const ACEXML_Char *namespaceURI, const ACEXML_Char *localName, const ACEXML_Char *qName, ACEXML_Attributes *atts, ACEXML_Env &xmlenv)
 Receive notification of the beginning of an element. More...

virtual void startPrefixMapping (const ACEXML_Char *prefix, const ACEXML_Char *uri, ACEXML_Env &xmlenv)
 Begin the scope of a prefix-URI Namespace mapping. More...

virtual void notationDecl (const ACEXML_Char *name, const ACEXML_Char *publicId, const ACEXML_Char *systemId, ACEXML_Env &xmlenv)
 Receive notification of a notation declaration event. More...

virtual void unparsedEntityDecl (const ACEXML_Char *name, const ACEXML_Char *publicId, const ACEXML_Char *systemId, const ACEXML_Char *notationName, ACEXML_Env &xmlenv)
 Receive notification of an unparsed entity declaration event. More...

virtual ACEXML_InputSourceresolveEntity (const ACEXML_Char *publicId, const ACEXML_Char *systemId, ACEXML_Env &xmlenv)
 Allow the application to resolve external entities. More...

virtual void error (ACEXML_SAXParseException &exception, ACEXML_Env &xmlenv)
 Receive notification of a recoverable error. More...

virtual void fatalError (ACEXML_SAXParseException &exception, ACEXML_Env &xmlenv)
 Receive notification of a non-recoverable error. More...

virtual void warning (ACEXML_SAXParseException &exception, ACEXML_Env &xmlenv)
 Receive notification of a warning. More...


Protected Methods

int setupParser (void)

Private Attributes

ACEXML_XMLReaderparent_
ACEXML_Locatorlocator_
ACEXML_EntityResolverentityResolver_
ACEXML_DTDHandlerdtdHandler_
ACEXML_ContentHandlercontentHandler_
ACEXML_ErrorHandlererrorHandler_

Detailed Description

ACEXML_XMLFilterImpl.

This class is designed to sit between an XMLReader and the client application's event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass through.


Constructor & Destructor Documentation

ACEXML_XMLFilterImpl::ACEXML_XMLFilterImpl void   
 

Default constructor.

Create with no parent.

ACEXML_XMLFilterImpl::ACEXML_XMLFilterImpl ACEXML_XMLReader   parent
 

Construct an XML filter with the specified parent.

ACEXML_XMLFilterImpl::~ACEXML_XMLFilterImpl void    [virtual]
 

Destructor.


Member Function Documentation

void ACEXML_XMLFilterImpl::characters const ACEXML_Char   ch,
int    start,
int    length,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of character data.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::endDocument ACEXML_Env   xmlenv [virtual]
 

Receive notification of the end of a document.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::endElement const ACEXML_Char   namespaceURI,
const ACEXML_Char   localName,
const ACEXML_Char   qName,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of the end of an element.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::endPrefixMapping const ACEXML_Char   prefix,
ACEXML_Env   xmlenv
[virtual]
 

End the scope of a prefix-URI mapping.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::error ACEXML_SAXParseException   exception,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of a recoverable error.

Reimplemented from ACEXML_ErrorHandler.

void ACEXML_XMLFilterImpl::fatalError ACEXML_SAXParseException   exception,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of a non-recoverable error.

Reimplemented from ACEXML_ErrorHandler.

ACEXML_ContentHandler * ACEXML_XMLFilterImpl::getContentHandler void    const [virtual]
 

Return the current content handler.

Reimplemented from ACEXML_XMLReader.

ACEXML_DTDHandler * ACEXML_XMLFilterImpl::getDTDHandler void    const [virtual]
 

Return the current DTD handler.

Reimplemented from ACEXML_XMLReader.

ACEXML_EntityResolver * ACEXML_XMLFilterImpl::getEntityResolver void    const [virtual]
 

Return the current entity resolver.

Reimplemented from ACEXML_XMLReader.

ACEXML_ErrorHandler * ACEXML_XMLFilterImpl::getErrorHandler void    const [virtual]
 

Return the current error handler.

Reimplemented from ACEXML_XMLReader.

int ACEXML_XMLFilterImpl::getFeature const ACEXML_Char   name,
ACEXML_Env   xmlenv
[virtual]
 

Look up the value of a feature.

This method allows programmers to check whether a specific feature has been activated in the parser.

Reimplemented from ACEXML_XMLReader.

ACEXML_XMLReader * ACEXML_XMLFilterImpl::getParent void    const [virtual]
 

Get the parent reader.

Reimplemented from ACEXML_XMLFilter.

void * ACEXML_XMLFilterImpl::getProperty const ACEXML_Char   name,
ACEXML_Env   xmlenv
[virtual]
 

Look up the value of a property.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::ignorableWhitespace const ACEXML_Char   ch,
int    start,
int    length,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of ignorable whitespace in element content.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::notationDecl const ACEXML_Char   name,
const ACEXML_Char   publicId,
const ACEXML_Char   systemId,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of a notation declaration event.

Reimplemented from ACEXML_DTDHandler.

void ACEXML_XMLFilterImpl::parse const ACEXML_Char   systemId,
ACEXML_Env   xmlenv
[virtual]
 

Parse an XML document from a system identifier (URI).

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::parse ACEXML_InputSource   input,
ACEXML_Env   xmlenv
[virtual]
 

Parse an XML document.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::processingInstruction const ACEXML_Char   target,
const ACEXML_Char   data,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of a processing instruction.

Reimplemented from ACEXML_ContentHandler.

ACEXML_InputSource * ACEXML_XMLFilterImpl::resolveEntity const ACEXML_Char   publicId,
const ACEXML_Char   systemId,
ACEXML_Env   xmlenv
[virtual]
 

Allow the application to resolve external entities.

Reimplemented from ACEXML_EntityResolver.

void ACEXML_XMLFilterImpl::setContentHandler ACEXML_ContentHandler   handler [virtual]
 

Allow an application to register a content event handler.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::setDocumentLocator ACEXML_Locator   locator,
ACEXML_Env   xmlenv
[virtual]
 

Receive an object for locating the origin of SAX document events.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::setDTDHandler ACEXML_DTDHandler   handler [virtual]
 

Allow an application to register a DTD event handler.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::setEntityResolver ACEXML_EntityResolver   handler [virtual]
 

Allow an application to register an entity resolver.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::setErrorHandler ACEXML_ErrorHandler   handler [virtual]
 

Allow an application to register an error event handler.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::setFeature const ACEXML_Char   name,
int    boolean_value,
ACEXML_Env   xmlenv
[virtual]
 

Activating or deactivating a feature.

Reimplemented from ACEXML_XMLReader.

void ACEXML_XMLFilterImpl::setParent ACEXML_XMLReader   parent [virtual]
 

Set the parent reader.

Reimplemented from ACEXML_XMLFilter.

void ACEXML_XMLFilterImpl::setProperty const ACEXML_Char   name,
void *    value,
ACEXML_Env   xmlenv
[virtual]
 

Set the value of a property.

Reimplemented from ACEXML_XMLReader.

ACEXML_INLINE int ACEXML_XMLFilterImpl::setupParser void    [protected]
 

void ACEXML_XMLFilterImpl::skippedEntity const ACEXML_Char   name,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of a skipped entity.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::startDocument ACEXML_Env   xmlenv [virtual]
 

Receive notification of the beginning of a document.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::startElement const ACEXML_Char   namespaceURI,
const ACEXML_Char   localName,
const ACEXML_Char   qName,
ACEXML_Attributes   atts,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of the beginning of an element.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::startPrefixMapping const ACEXML_Char   prefix,
const ACEXML_Char   uri,
ACEXML_Env   xmlenv
[virtual]
 

Begin the scope of a prefix-URI Namespace mapping.

Reimplemented from ACEXML_ContentHandler.

void ACEXML_XMLFilterImpl::unparsedEntityDecl const ACEXML_Char   name,
const ACEXML_Char   publicId,
const ACEXML_Char   systemId,
const ACEXML_Char   notationName,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of an unparsed entity declaration event.

Reimplemented from ACEXML_DTDHandler.

void ACEXML_XMLFilterImpl::warning ACEXML_SAXParseException   exception,
ACEXML_Env   xmlenv
[virtual]
 

Receive notification of a warning.

Reimplemented from ACEXML_ErrorHandler.


Member Data Documentation

ACEXML_ContentHandler* ACEXML_XMLFilterImpl::contentHandler_ [private]
 

ACEXML_DTDHandler* ACEXML_XMLFilterImpl::dtdHandler_ [private]
 

ACEXML_EntityResolver* ACEXML_XMLFilterImpl::entityResolver_ [private]
 

ACEXML_ErrorHandler* ACEXML_XMLFilterImpl::errorHandler_ [private]
 

ACEXML_Locator* ACEXML_XMLFilterImpl::locator_ [private]
 

ACEXML_XMLReader* ACEXML_XMLFilterImpl::parent_ [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Oct 10 17:28:12 2002 for ACEXML by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001