Public Member Functions | List of all members
zorba::DefaultContentHandler Class Reference

A default content handler class implementing the SAX2_ContentHandler and SAX2_LexicalHandler interfaces with all functions being implemented and doing nothing. More...

#include <zorba/default_content_handler.h>

Inheritance diagram for zorba::DefaultContentHandler:
Inheritance graph
[legend]
Collaboration diagram for zorba::DefaultContentHandler:
Collaboration graph
[legend]

Public Member Functions

void attributeDecl (const String &eName, const String &aName, const String &type, const String &mode, const String &value)
 
void characters (const String &text)
 Receive notification of character data. More...
 
void comment (const String &chars)
 
void elementDecl (const String &name, const String &model)
 
void endCDATA ()
 
void endDocument ()
 Receive notification of the end of a document. More...
 
void endDTD ()
 
void endElement (const String &uri, const String &localname, const String &qname)
 Receive notification of the end of an element. More...
 
void endEntity (const String &name)
 
void endPrefixMapping (const String &prefix)
 Receive notification of the end of an namespace prefix mapping. More...
 
void externalEntityDecl (const String &name, const String &publicId, const String &systemId)
 
void ignorableWhitespace (const String &whitespace)
 Receive notification of ignorable whitespace in element content. More...
 
void internalEntityDecl (const String &name, const String &value)
 
void notationDecl (const String &name, const String &publicId, const String &systemId)
 
void processingInstruction (const String &target, const String &data)
 Receive notification of a processing instruction. More...
 
void resetDocType ()
 
void skippedEntity (const String &name)
 Receive notification of a skipped entity. More...
 
void startCDATA ()
 
void startDocument ()
 Receive notification of the beginning of a document. More...
 
void startDTD (const String &name, const String &publicId, const String &systemId)
 
void startElement (const String &uri, const String &localname, const String &qname, const SAX2_Attributes &aAttrs)
 Receive notification of the beginning of an element. More...
 
void startEntity (const String &name)
 
void startPrefixMapping (const String &prefix, const String &uri)
 Receive notification of the start of an namespace prefix mapping. More...
 
void unparsedEntityDecl (const String &name, const String &publicId, const String &systemId, const String &notationName)
 
virtual ~DefaultContentHandler ()
 

Detailed Description

A default content handler class implementing the SAX2_ContentHandler and SAX2_LexicalHandler interfaces with all functions being implemented and doing nothing.

See SAX2_ContentHandler for a documentation.

Examples:
sax2.cpp.

Definition at line 31 of file default_content_handler.h.

Constructor & Destructor Documentation

virtual zorba::DefaultContentHandler::~DefaultContentHandler ( )
inlinevirtual

Definition at line 36 of file default_content_handler.h.

Member Function Documentation

void zorba::DefaultContentHandler::attributeDecl ( const String eName,
const String aName,
const String type,
const String mode,
const String value 
)
inline

Definition at line 71 of file default_content_handler.h.

void zorba::DefaultContentHandler::characters ( const String aText)
inlinevirtual

Receive notification of character data.

The serializer will call this method to report each chunk of character data.

Parameters
aTextthe characters from the serialized result.

Implements zorba::SAX2_ContentHandler.

Definition at line 52 of file default_content_handler.h.

void zorba::DefaultContentHandler::comment ( const String chars)
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 87 of file default_content_handler.h.

void zorba::DefaultContentHandler::elementDecl ( const String name,
const String model 
)
inline

Definition at line 69 of file default_content_handler.h.

void zorba::DefaultContentHandler::endCDATA ( )
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 89 of file default_content_handler.h.

void zorba::DefaultContentHandler::endDocument ( )
inlinevirtual

Receive notification of the end of a document.

Implements zorba::SAX2_ContentHandler.

Definition at line 42 of file default_content_handler.h.

void zorba::DefaultContentHandler::endDTD ( )
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 91 of file default_content_handler.h.

void zorba::DefaultContentHandler::endElement ( const String aURI,
const String aLocalname,
const String aQName 
)
inlinevirtual

Receive notification of the end of an element.

Zorba's serializerwill invoke this method at the end of every element in the serialized query result document; there will be a corresponding startElement() event for every endElement() event (even when the element is empty).

Parameters
aURIthe URI of the asscioated namespace for this element
aLocalnamethe local part of the element name
aQNamethe QName of this element

Implements zorba::SAX2_ContentHandler.

Definition at line 49 of file default_content_handler.h.

void zorba::DefaultContentHandler::endEntity ( const String name)
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 93 of file default_content_handler.h.

void zorba::DefaultContentHandler::endPrefixMapping ( const String aPrefix)
inlinevirtual

Receive notification of the end of an namespace prefix mapping.

Parameters
aPrefixthe namespace prefix used.

Implements zorba::SAX2_ContentHandler.

Definition at line 64 of file default_content_handler.h.

void zorba::DefaultContentHandler::externalEntityDecl ( const String name,
const String publicId,
const String systemId 
)
inline

Definition at line 77 of file default_content_handler.h.

void zorba::DefaultContentHandler::ignorableWhitespace ( const String aText)
inlinevirtual

Receive notification of ignorable whitespace in element content.

Parameters
aTextthe characters from the serialized query result.

Implements zorba::SAX2_ContentHandler.

Definition at line 58 of file default_content_handler.h.

void zorba::DefaultContentHandler::internalEntityDecl ( const String name,
const String value 
)
inline

Definition at line 75 of file default_content_handler.h.

void zorba::DefaultContentHandler::notationDecl ( const String name,
const String publicId,
const String systemId 
)
inline

Definition at line 80 of file default_content_handler.h.

void zorba::DefaultContentHandler::processingInstruction ( const String aTarget,
const String aData 
)
inlinevirtual

Receive notification of a processing instruction.

The serializer will invoke this method once for each processing instruction found.

Parameters
aTargetthe processing instruction target.
aDatathe processing instruction data, or null if none was supplied.

Implements zorba::SAX2_ContentHandler.

Definition at line 55 of file default_content_handler.h.

void zorba::DefaultContentHandler::resetDocType ( )
inline

Definition at line 85 of file default_content_handler.h.

void zorba::DefaultContentHandler::skippedEntity ( const String aName)
inlinevirtual

Receive notification of a skipped entity.

Parameters
aNamethe name of the skipped entity.

Implements zorba::SAX2_ContentHandler.

Definition at line 67 of file default_content_handler.h.

void zorba::DefaultContentHandler::startCDATA ( )
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 95 of file default_content_handler.h.

void zorba::DefaultContentHandler::startDocument ( )
inlinevirtual

Receive notification of the beginning of a document.

Implements zorba::SAX2_ContentHandler.

Definition at line 39 of file default_content_handler.h.

void zorba::DefaultContentHandler::startDTD ( const String name,
const String publicId,
const String systemId 
)
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 97 of file default_content_handler.h.

void zorba::DefaultContentHandler::startElement ( const String aURI,
const String aLocalname,
const String aQName,
const SAX2_Attributes aAttrs 
)
inlinevirtual

Receive notification of the beginning of an element.

Zorba's serializer will invoke this method at the beginning of every element of the serialized query result; there will be a corresponding endElement() event for every startElement() event (even when the element is empty). All of the element's content will be reported, in order, before the corresponding endElement() event.

Parameters
aURIthe URI of the associated namespace for this element.
aLocalnamethee local part of the element name.
aQNamethe QName of this element.
aAttrsthe attributes attached to the element, if any.

Implements zorba::SAX2_ContentHandler.

Definition at line 45 of file default_content_handler.h.

void zorba::DefaultContentHandler::startEntity ( const String name)
inlinevirtual

Implements zorba::SAX2_LexicalHandler.

Definition at line 100 of file default_content_handler.h.

void zorba::DefaultContentHandler::startPrefixMapping ( const String aPrefix,
const String aURI 
)
inlinevirtual

Receive notification of the start of an namespace prefix mapping.

Parameters
aPrefixthe namespace prefix used
aURIthe namespace URI used.

Implements zorba::SAX2_ContentHandler.

Definition at line 61 of file default_content_handler.h.

void zorba::DefaultContentHandler::unparsedEntityDecl ( const String name,
const String publicId,
const String systemId,
const String notationName 
)
inline

Definition at line 82 of file default_content_handler.h.


The documentation for this class was generated from the following file:
blog comments powered by Disqus