default_content_handler.h
Go to the documentation of this file.
1 /*
2  * Copyright 2006-2008 The FLWOR Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef ZORBA_DEFAULT_CONTENT_HANDLER_API_H
17 #define ZORBA_DEFAULT_CONTENT_HANDLER_API_H
18 
19 #include <zorba/config.h>
20 #include <zorba/sax2.h>
21 
22 namespace zorba{
23 
24  /** \brief A default content handler class implementing the SAX2_ContentHandler and
25  * SAX2_LexicalHandler interfaces with all functions being implemented and doing
26  * nothing.
27  *
28  * See SAX2_ContentHandler for a documentation.
29  */
30 
31  class ZORBA_DLL_PUBLIC DefaultContentHandler: public SAX2_ContentHandler,
32  public SAX2_LexicalHandler
33  {
34  public:
35  virtual
37 
38  void
40 
41  void
43 
44  void
45  startElement( const String &uri, const String &localname,
46  const String &qname, const SAX2_Attributes& aAttrs ) {}
47 
48  void
49  endElement( const String &uri, const String &localname, const String &qname ) {}
50 
51  void
52  characters( const String & text ) {}
53 
54  void
55  processingInstruction( const String &target, const String &data ) {}
56 
57  void
58  ignorableWhitespace( const String & whitespace ) {}
59 
60  void
61  startPrefixMapping( const String & prefix, const String & uri ) {}
62 
63  void
64  endPrefixMapping( const String & prefix ) {}
65 
66  void
67  skippedEntity( const String & name ) {}
68 
69  void elementDecl ( const String & name, const String & model ) {}
70 
71  void attributeDecl ( const String & eName, const String & aName,
72  const String & type, const String & mode,
73  const String & value ) {}
74 
75  void internalEntityDecl ( const String & name, const String & value ) {}
76 
77  void externalEntityDecl ( const String & name, const String & publicId,
78  const String & systemId ) {}
79 
80  void notationDecl ( const String & name, const String & publicId, const String & systemId ) {}
81 
82  void unparsedEntityDecl ( const String & name, const String & publicId,
83  const String & systemId, const String & notationName ) {}
84 
85  void resetDocType () {}
86 
87  void comment ( const String & chars ) {}
88 
89  void endCDATA () {}
90 
91  void endDTD () {}
92 
93  void endEntity ( const String & name ) {}
94 
95  void startCDATA () {}
96 
97  void startDTD ( const String & name, const String & publicId,
98  const String & systemId ) {}
99 
100  void startEntity ( const String & name ) {}
101  };
102 }//end of namespace
103 #endif
104 /* vim:set et sw=2 ts=2: */
blog comments powered by Disqus