00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116 #if !defined(XMLNOTATIONDECL_HPP)
00117 #define XMLNOTATIONDECL_HPP
00118
00119 #include <xercesc/util/XMemory.hpp>
00120 #include <xercesc/util/PlatformUtils.hpp>
00121 #include <xercesc/util/XMLString.hpp>
00122 #include <xercesc/internal/XSerializable.hpp>
00123
00124 XERCES_CPP_NAMESPACE_BEGIN
00125
00135 class XMLNotationDecl : public XSerializable, public XMemory
00136 {
00137 public:
00138
00139
00140
00141
00144 XMLNotationDecl(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00145 XMLNotationDecl
00146 (
00147 const XMLCh* const notName
00148 , const XMLCh* const pubId
00149 , const XMLCh* const sysId
00150 , const XMLCh* const baseURI = 0
00151 , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager
00152 );
00154
00157 ~XMLNotationDecl();
00159
00160
00161
00162
00163
00164 unsigned int getId() const;
00165 const XMLCh* getName() const;
00166 const XMLCh* getPublicId() const;
00167 const XMLCh* getSystemId() const;
00168 const XMLCh* getBaseURI() const;
00169 const unsigned int getNameSpaceId() const;
00170 MemoryManager* getMemoryManager() const;
00171
00172
00173
00174
00175
00176 void setId(const unsigned int newId);
00177 void setName
00178 (
00179 const XMLCh* const notName
00180 );
00181 void setPublicId(const XMLCh* const newId);
00182 void setSystemId(const XMLCh* const newId);
00183 void setBaseURI(const XMLCh* const newId);
00184 void setNameSpaceId(const unsigned int newId);
00185
00186
00187
00188
00189 const XMLCh* getKey() const;
00190
00191
00192
00193
00194 DECL_XSERIALIZABLE(XMLNotationDecl)
00195
00196 private :
00197
00198
00199
00200 XMLNotationDecl(const XMLNotationDecl&);
00201 XMLNotationDecl& operator=(const XMLNotationDecl&);
00202
00203
00204
00205
00206
00207 void cleanUp();
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229 unsigned int fId;
00230 XMLCh* fName;
00231 XMLCh* fPublicId;
00232 XMLCh* fSystemId;
00233 XMLCh* fBaseURI;
00234 unsigned int fNameSpaceId;
00235 MemoryManager* fMemoryManager;
00236 };
00237
00238
00239
00240
00241
00242 inline unsigned int XMLNotationDecl::getId() const
00243 {
00244 return fId;
00245 }
00246
00247 inline const XMLCh* XMLNotationDecl::getName() const
00248 {
00249 return fName;
00250 }
00251
00252 inline const unsigned int XMLNotationDecl::getNameSpaceId() const
00253 {
00254 return fNameSpaceId;
00255 }
00256
00257 inline const XMLCh* XMLNotationDecl::getPublicId() const
00258 {
00259 return fPublicId;
00260 }
00261
00262 inline const XMLCh* XMLNotationDecl::getSystemId() const
00263 {
00264 return fSystemId;
00265 }
00266
00267 inline const XMLCh* XMLNotationDecl::getBaseURI() const
00268 {
00269 return fBaseURI;
00270 }
00271
00272 inline MemoryManager* XMLNotationDecl::getMemoryManager() const
00273 {
00274 return fMemoryManager;
00275 }
00276
00277
00278
00279
00280 inline void XMLNotationDecl::setId(const unsigned int newId)
00281 {
00282 fId = newId;
00283 }
00284
00285 inline void XMLNotationDecl::setNameSpaceId(const unsigned int newId)
00286 {
00287 fNameSpaceId = newId;
00288 }
00289
00290 inline void XMLNotationDecl::setPublicId(const XMLCh* const newId)
00291 {
00292 if (fPublicId)
00293 fMemoryManager->deallocate(fPublicId);
00294
00295 fPublicId = XMLString::replicate(newId, fMemoryManager);
00296 }
00297
00298 inline void XMLNotationDecl::setSystemId(const XMLCh* const newId)
00299 {
00300 if (fSystemId)
00301 fMemoryManager->deallocate(fSystemId);
00302
00303 fSystemId = XMLString::replicate(newId, fMemoryManager);
00304 }
00305
00306 inline void XMLNotationDecl::setBaseURI(const XMLCh* const newId)
00307 {
00308 if (fBaseURI)
00309 fMemoryManager->deallocate(fBaseURI);
00310
00311 fBaseURI = XMLString::replicate(newId, fMemoryManager);
00312 }
00313
00314
00315
00316
00317
00318 inline const XMLCh* XMLNotationDecl::getKey() const
00319 {
00320 return fName;
00321 }
00322
00323 XERCES_CPP_NAMESPACE_END
00324
00325 #endif