default_content_handler.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2006-2008 The FLWOR Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 #ifndef ZORBA_DEFAULT_CONTENT_HANDLER_API_H
00017 #define ZORBA_DEFAULT_CONTENT_HANDLER_API_H
00018 
00019 #include <zorba/config.h>
00020 #include <zorba/sax2.h>
00021 
00022 namespace zorba{
00023   
00024   /** \brief A default content handler class implementing the SAX2_ContentHandler and
00025    *         SAX2_LexicalHandler interfaces with all functions being implemented and doing
00026    *         nothing.
00027    *
00028    * See SAX2_ContentHandler for a documentation.
00029    */
00030 
00031   class ZORBA_DLL_PUBLIC DefaultContentHandler: public SAX2_ContentHandler,
00032                                public SAX2_LexicalHandler
00033   {
00034     public:
00035       virtual 
00036       ~DefaultContentHandler() {}
00037 
00038       void 
00039       startDocument() {}
00040 
00041       void 
00042       endDocument() {}
00043 
00044       void 
00045       startElement( const String &uri, const String &localname,
00046                     const String &qname, const SAX2_Attributes& aAttrs ) {}
00047     
00048       void
00049       endElement( const String &uri, const String &localname, const String &qname ) {}
00050     
00051       void
00052       characters( const String & text ) {}
00053     
00054       void
00055       processingInstruction( const String &target, const String &data ) {}
00056 
00057       void
00058       ignorableWhitespace( const String & whitespace ) {}
00059 
00060       void
00061       startPrefixMapping( const String  & prefix, const String  & uri ) {}
00062 
00063       void 
00064       endPrefixMapping( const String & prefix ) {}
00065 
00066       void 
00067       skippedEntity( const  String & name ) {}
00068   
00069       void elementDecl ( const String & name, const String & model ) {}
00070 
00071       void attributeDecl ( const String & eName, const String & aName,
00072                            const String & type,  const String & mode,
00073                            const String & value ) {}
00074 
00075       void internalEntityDecl ( const String & name, const String & value ) {}
00076 
00077       void externalEntityDecl ( const String & name, const String & publicId,
00078                                 const String & systemId ) {}
00079 
00080       void notationDecl ( const String & name, const String & publicId, const String & systemId ) {}
00081 
00082       void unparsedEntityDecl ( const String & name, const String & publicId,
00083                                 const String & systemId, const String & notationName ) {}
00084 
00085       void resetDocType () {}
00086 
00087       void comment ( const String & chars ) {}
00088 
00089       void endCDATA () {}
00090 
00091       void endDTD () {}
00092 
00093       void endEntity ( const String & name ) {}
00094 
00095       void startCDATA () {}
00096 
00097       void startDTD ( const String & name, const String & publicId,
00098                       const String & systemId ) {}
00099 
00100       void startEntity ( const String & name ) {}
00101   };
00102 }//end of namespace
00103 #endif
00104 /* vim:set et sw=2 ts=2: */
blog comments powered by Disqus