#include <qgarlib/sax/ContentHandler.H>
Inheritance diagram for qgxml::ContentHandler:

This is the main interface that most SAX applications implement: if the application needs to be informed of basic parsing events, it implements this interface and registers an instance with the SAX parser using the setContentHandler method. The parser uses the instance to report basic document-related events like the start and end of elements and character data.
The order of events in this interface is very important, and mirrors the order of information in the document itself. For example, all of an element's content (character data, processing instructions, and/or subelements) will appear, in order, between the startElement event and the corresponding endElement event.
This class is an adaptation for C++ of the interface of the same name implemented in the Java SAX API (http://www.saxproject.org).
Definition at line 80 of file ContentHandler.H.
Public Member Functions | |
| virtual void | characters (const char *ch, const unsigned int start, const unsigned int length)=0 |
| Receive notification of character data. | |
| virtual void | endDocument ()=0 |
| Receive notification of the end of a document. | |
| virtual void | endElement (const std::string &uri, const std::string &localName, const std::string &qName)=0 |
| Receive notification of the end of an element. | |
| virtual void | endPrefixMapping (const std::string &prefix)=0 |
| End the scope of a prefix-URI mapping. | |
| virtual void | ignorableWhitespace (const char *ch, const unsigned int start, const unsigned int length)=0 |
| Receive notification of ignorable whitespace in element content. | |
| virtual void | processingInstruction (const std::string &target, const std::string &data)=0 |
| Receive notification of a processing instruction. | |
| virtual void | setDocumentLocator (Locator *locator)=0 |
| Receive an object for locating the origin of SAX document events. | |
| virtual void | skippedEntity (const std::string &name)=0 |
| Receive notification of a skipped entity. | |
| virtual void | startDocument ()=0 |
| Receive notification of the beginning of a document. | |
| virtual void | startElement (const std::string &uri, const std::string &localName, const std::string &qName, const Attributes &atts)=0 |
| Receive notification of the beginning of an element. | |
| virtual void | startPrefixMapping (const std::string &prefix, const std::string &uri)=0 |
| Begin the scope of a prefix-URI Namespace mapping. | |
Destructor | |
| virtual | ~ContentHandler () |
| Destructor. | |
|
|
Destructor.
Definition at line 95 of file ContentHandler.H. |
|
||||||||||||||||
|
Receive notification of character data.
Implemented in qgar::QgarAppDescr, and qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::characters(), and qgxml::QtQgarContentHandlerAdaptor::characters(). |
|
|
Receive notification of the end of a document. The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::endDocument(), and qgxml::QtQgarContentHandlerAdaptor::endDocument(). |
|
||||||||||||||||
|
Receive notification of the end of an element. The SAX parser will invoke this method at the end of every element in the XML document; there will be a corresponding startElement event for every endElement event (even when the element is empty).
Implemented in qgar::QgarAppDescr, and qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::endElement(), and qgxml::QtQgarContentHandlerAdaptor::endElement(). |
|
|
End the scope of a prefix-URI mapping.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::endPrefixMapping(), and qgxml::QtQgarContentHandlerAdaptor::endPrefixMapping(). |
|
||||||||||||||||
|
Receive notification of ignorable whitespace in element content.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::ignorableWhitespace(), and qgxml::QtQgarContentHandlerAdaptor::ignorableWhitespace(). |
|
||||||||||||
|
Receive notification of a processing instruction.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::processingInstruction(), and qgxml::QtQgarContentHandlerAdaptor::processingInstruction(). |
|
|
Receive an object for locating the origin of SAX document events.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::setDocumentLocator(), and qgxml::QtQgarContentHandlerAdaptor::setDocumentLocator(). |
|
|
Receive notification of a skipped entity.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::skippedEntity(), and qgxml::QtQgarContentHandlerAdaptor::skippedEntity(). |
|
|
Receive notification of the beginning of a document. The SAX parser will invoke this method only once, before any other event callbacks (except for setDocumentLocator()).
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::startDocument(), and qgxml::QtQgarContentHandlerAdaptor::startDocument(). |
|
||||||||||||||||||||
|
Receive notification of the beginning of an element. The Parser will invoke this method at the beginning of every element in the XML document; 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.
Implemented in qgar::QgarAppDescr, and qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::startElement(), and qgxml::QtQgarContentHandlerAdaptor::startElement(). |
|
||||||||||||
|
Begin the scope of a prefix-URI Namespace mapping.
Implemented in qgxml::DefaultHandler. Referenced by qgxml::XercesQgarContentHandlerAdaptor::startPrefixMapping(), and qgxml::QtQgarContentHandlerAdaptor::startPrefixMapping(). |