zorba::DefaultContentHandler

#include <zorba/default_content_handler.h>

Inherited from: zorba::SAX2_ContentHandler

Inherited from: zorba::SAX2_LexicalHandler

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.

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

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.

void

endDTD()

void

endElement(const String &uri, const String &localname, const String &qname)

Receive notification of the end of an element.

void

endEntity(const String &name)

void

endPrefixMapping(const String &prefix)

Receive notification of the end of an namespace prefix mapping.

void

externalEntityDecl(const String &name, const String &publicId, const String &systemId)

void

ignorableWhitespace(const String &whitespace)

Receive notification of ignorable whitespace in element content.

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.

void

resetDocType()

void

skippedEntity(const String &name)

Receive notification of a skipped entity.

void

startCDATA()

void

startDocument()

Receive notification of the beginning of a document.

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.

void

startEntity(const String &name)

void

startPrefixMapping(const String &prefix, const String &uri)

Receive notification of the start of an namespace prefix mapping.

void

unparsedEntityDecl(const String &name, const String &publicId, const String &systemId, const String &notationName)

~DefaultContentHandler()

Public Functions

attributeDecl

void attributeDecl(const String &eName, const String &aName, const String &type, const String &mode, const String &value)

characters

void characters(const String &text)

Receive notification of character data.

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

Parameters

aText the characters from the serialized result.

comment

void comment(const String &chars)

elementDecl

void elementDecl(const String &name, const String &model)

endCDATA

void endCDATA()

endDocument

void endDocument()

Receive notification of the end of a document.

endDTD

void endDTD()

endElement

void endElement(const String &uri, const String &localname, const String &qname)

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

aURI the URI of the asscioated namespace for this element
aLocalname the local part of the element name
aQName the QName of this element

endEntity

void endEntity(const String &name)

endPrefixMapping

void endPrefixMapping(const String &prefix)

Receive notification of the end of an namespace prefix mapping.

Parameters

aPrefix the namespace prefix used.

externalEntityDecl

void externalEntityDecl(const String &name, const String &publicId, const String &systemId)

ignorableWhitespace

void ignorableWhitespace(const String &whitespace)

Receive notification of ignorable whitespace in element content.

Parameters

aText the characters from the serialized query result.

internalEntityDecl

void internalEntityDecl(const String &name, const String &value)

notationDecl

void notationDecl(const String &name, const String &publicId, const String &systemId)

processingInstruction

void processingInstruction(const String &target, const String &data)

Receive notification of a processing instruction.

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

Parameters

aTarget the processing instruction target.
aData the processing instruction data, or null if none was supplied.

resetDocType

void resetDocType()

skippedEntity

void skippedEntity(const String &name)

Receive notification of a skipped entity.

Parameters

aName the name of the skipped entity.

startCDATA

void startCDATA()

startDocument

void startDocument()

Receive notification of the beginning of a document.

startDTD

void startDTD(const String &name, const String &publicId, const String &systemId)

startElement

void startElement(const String &uri, const String &localname, const String &qname, const SAX2_Attributes &aAttrs)

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

aURI the URI of the associated namespace for this element.
aLocalname thee local part of the element name.
aQName the QName of this element.
aAttrs the attributes attached to the element, if any.

startEntity

void startEntity(const String &name)

startPrefixMapping

void startPrefixMapping(const String &prefix, const String &uri)

Receive notification of the start of an namespace prefix mapping.

Parameters

aPrefix the namespace prefix used
aURI the namespace URI used.

unparsedEntityDecl

void unparsedEntityDecl(const String &name, const String &publicId, const String &systemId, const String &notationName)

~DefaultContentHandler

 ~DefaultContentHandler()