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 #if !defined(XMLATTDEFLIST_HPP)
00098 #define XMLATTDEFLIST_HPP
00099
00100 #include <xercesc/util/XercesDefs.hpp>
00101 #include <xercesc/util/XMemory.hpp>
00102 #include <xercesc/internal/XSerializable.hpp>
00103
00104 XERCES_CPP_NAMESPACE_BEGIN
00105
00106 class XMLAttDef;
00107
00125 class XMLAttDefList : public XSerializable, public XMemory
00126 {
00127 public:
00128
00129
00130
00131
00134 virtual ~XMLAttDefList();
00136
00137
00138
00139
00140
00141
00145 virtual bool hasMoreElements() const = 0;
00146 virtual bool isEmpty() const = 0;
00147 virtual XMLAttDef* findAttDef
00148 (
00149 const unsigned long uriID
00150 , const XMLCh* const attName
00151 ) = 0;
00152 virtual const XMLAttDef* findAttDef
00153 (
00154 const unsigned long uriID
00155 , const XMLCh* const attName
00156 ) const = 0;
00157 virtual XMLAttDef* findAttDef
00158 (
00159 const XMLCh* const attURI
00160 , const XMLCh* const attName
00161 ) = 0;
00162 virtual const XMLAttDef* findAttDef
00163 (
00164 const XMLCh* const attURI
00165 , const XMLCh* const attName
00166 ) const = 0;
00167
00171 virtual XMLAttDef& nextElement() = 0;
00172
00176 virtual void Reset() = 0;
00177
00181 virtual unsigned int getAttDefCount() const = 0;
00182
00186 virtual XMLAttDef &getAttDef(unsigned int index) = 0;
00187
00191 virtual const XMLAttDef &getAttDef(unsigned int index) const = 0;
00192
00193
00194
00195
00196 DECL_XSERIALIZABLE(XMLAttDefList)
00197
00198
00199
00200
00201
00202
00205
00213 MemoryManager* getMemoryManager() const;
00214
00216
00217 protected :
00218
00219
00220
00221 XMLAttDefList(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
00222 XMLAttDefList(const XMLAttDefList&);
00223 XMLAttDefList& operator=(const XMLAttDefList&);
00224
00225
00226 private:
00227 MemoryManager* fMemoryManager;
00228 };
00229
00230
00231
00232
00233
00234
00235
00236 inline MemoryManager* XMLAttDefList::getMemoryManager() const
00237 {
00238 return fMemoryManager;
00239 }
00240
00241
00242
00243
00244 inline XMLAttDefList::~XMLAttDefList()
00245 {
00246 }
00247
00248
00249
00250
00251
00252 inline XMLAttDefList::XMLAttDefList(MemoryManager* const manager):
00253 fMemoryManager(manager)
00254 {
00255 }
00256
00257 inline XMLAttDefList::XMLAttDefList(const XMLAttDefList&)
00258 {
00259 }
00260
00261 inline XMLAttDefList& XMLAttDefList::operator=(const XMLAttDefList&)
00262 {
00263 return *this;
00264 }
00265
00266 XERCES_CPP_NAMESPACE_END
00267
00268 #endif