> The XQuery Processor
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/sax2.h> 00020 00021 namespace zorba{ 00022 00023 /** \brief A default content handler class implementing the SAX2_ContentHandler and 00024 * SAX2_LexicalHandler interfaces with all functions being implemented and doing 00025 * nothing. 00026 * 00027 * See SAX2_ContentHandler for a documentation. 00028 */ 00029 00030 class DefaultContentHandler: public SAX2_ContentHandler, 00031 public SAX2_LexicalHandler 00032 { 00033 public: 00034 virtual 00035 ~DefaultContentHandler() {} 00036 00037 void 00038 startDocument() {} 00039 00040 void 00041 endDocument() {} 00042 00043 void 00044 startElement( const String &uri, const String &localname, 00045 const String &qname, const SAX2_Attributes& aAttrs ) {} 00046 00047 void 00048 endElement( const String &uri, const String &localname, const String &qname ) {} 00049 00050 void 00051 characters( const String & text ) {} 00052 00053 void 00054 processingInstruction( const String &target, const String &data ) {} 00055 00056 void 00057 ignorableWhitespace( const String & whitespace ) {} 00058 00059 void 00060 startPrefixMapping( const String & prefix, const String & uri ) {} 00061 00062 void 00063 endPrefixMapping( const String & prefix ) {} 00064 00065 void 00066 skippedEntity( const String & name ) {} 00067 00068 void elementDecl ( const String & name, const String & model ) {} 00069 00070 void attributeDecl ( const String & eName, const String & aName, 00071 const String & type, const String & mode, 00072 const String & value ) {} 00073 00074 void internalEntityDecl ( const String & name, const String & value ) {} 00075 00076 void externalEntityDecl ( const String & name, const String & publicId, 00077 const String & systemId ) {} 00078 00079 void notationDecl ( const String & name, const String & publicId, const String & systemId ) {} 00080 00081 void unparsedEntityDecl ( const String & name, const String & publicId, 00082 const String & systemId, const String & notationName ) {} 00083 00084 void resetDocType () {} 00085 00086 void comment ( const String & chars ) {} 00087 00088 void endCDATA () {} 00089 00090 void endDTD () {} 00091 00092 void endEntity ( const String & name ) {} 00093 00094 void startCDATA () {} 00095 00096 void startDTD ( const String & name, const String & publicId, 00097 const String & systemId ) {} 00098 00099 void startEntity ( const String & name ) {} 00100 }; 00101 }//end of namespace 00102 #endif