source: icXML/icXML-devel/src/xercesc/validators/DTD/DocTypeHandler.hpp @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 4.0 KB
Line 
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id: DocTypeHandler.hpp 557282 2007-07-18 14:54:15Z amassari $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOCTYPEHANDLER_HPP)
23#define XERCESC_INCLUDE_GUARD_DOCTYPEHANDLER_HPP
24
25#include <xercesc/util/XercesDefs.hpp>
26#include <xercesc/framework/XMLNotationDecl.hpp>
27#include <icxercesc/validators/DTD/DTDAttDef.hpp>
28#include <icxercesc/validators/DTD/DTDElementDecl.hpp>
29#include <xercesc/validators/DTD/DTDEntityDecl.hpp>
30
31XERCES_CPP_NAMESPACE_BEGIN
32
33//
34//  This abstract class defines the document type handler API's which can be
35//  used to process the DTD events generated by the DTDScanner as it scans the
36//  internal and external subset.
37
38class VALIDATORS_EXPORT DocTypeHandler
39{
40public:
41    // -----------------------------------------------------------------------
42    //  Constructors and Destructor
43    // -----------------------------------------------------------------------
44    DocTypeHandler()
45    {
46    }
47
48    virtual ~DocTypeHandler()
49    {
50    }
51
52
53    // -----------------------------------------------------------------------
54    //  The document type handler virtual handler interface
55    // -----------------------------------------------------------------------
56    virtual void attDef
57    (
58        const   DTDElementDecl&     elemDecl
59        , const DTDAttDef&          attDef
60        , const bool                ignoring
61    ) = 0;
62
63    virtual void doctypeComment
64    (
65        const   XMLCh* const    comment
66    ) = 0;
67
68    virtual void doctypeDecl
69    (
70        const   DTDElementDecl& elemDecl
71        , const XMLCh* const    publicId
72        , const XMLCh* const    systemId
73        , const bool            hasIntSubset
74        , const bool            hasExtSubset = false
75    ) = 0;
76
77    virtual void doctypePI
78    (
79        const   XMLCh* const    target
80        , const XMLCh* const    data
81    ) = 0;
82
83    virtual void doctypeWhitespace
84    (
85        const   XMLCh* const    chars
86        , const XMLSize_t       length
87    ) = 0;
88
89    virtual void elementDecl
90    (
91        const   DTDElementDecl& decl
92        , const bool            isIgnored
93    ) = 0;
94
95    virtual void endAttList
96    (
97        const   DTDElementDecl& elemDecl
98    ) = 0;
99
100    virtual void endIntSubset() = 0;
101
102    virtual void endExtSubset() = 0;
103
104    virtual void entityDecl
105    (
106        const   DTDEntityDecl&  entityDecl
107        , const bool            isPEDecl
108        , const bool            isIgnored
109    ) = 0;
110
111    virtual void resetDocType() = 0;
112
113    virtual void notationDecl
114    (
115        const   XMLNotationDecl&    notDecl
116        , const bool                isIgnored
117    ) = 0;
118
119    virtual void startAttList
120    (
121        const   DTDElementDecl& elemDecl
122    ) = 0;
123
124    virtual void startIntSubset() = 0;
125
126    virtual void startExtSubset() = 0;
127
128    virtual void TextDecl
129    (
130        const   XMLCh* const    versionStr
131        , const XMLCh* const    encodingStr
132    ) = 0;
133
134
135private:
136    // -----------------------------------------------------------------------
137    //  Unimplemented constructors and operators
138    // -----------------------------------------------------------------------
139    DocTypeHandler(const DocTypeHandler&);
140    DocTypeHandler& operator=(const DocTypeHandler&);
141};
142
143XERCES_CPP_NAMESPACE_END
144
145#endif
Note: See TracBrowser for help on using the repository browser.