| API Docs for SAX and DOM |

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

# XMLAttDefList.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-2004 The Apache Software 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
    00017 /*
    00018  * $Id: XMLAttDefList.hpp 191054 2005-06-17 02:56:35Z jberry $
    00019  */
    00020
    00021 #if !defined(XMLATTDEFLIST_HPP)
    00022 #define XMLATTDEFLIST_HPP
    00023
    00024 #include <xercesc/util/XercesDefs.hpp>
    00025 #include <xercesc/util/XMemory.hpp>
    00026 #include <xercesc/internal/XSerializable.hpp>
    00027
    00028 XERCES_CPP_NAMESPACE_BEGIN
    00029
    00030 class XMLAttDef;
    00031
    00049 class  XMLAttDefList : public XSerializable, public XMemory
    00050 {
    00051 public:
    00052     // -----------------------------------------------------------------------
    00053     //  Constructors and Destructor
    00054     // -----------------------------------------------------------------------
    00055
    00058     virtual ~XMLAttDefList();
    00060
    00061
    00062     // -----------------------------------------------------------------------
    00063     //  The virtual interface
    00064     // -----------------------------------------------------------------------
    00065
    00069     virtual bool hasMoreElements() const = 0;
    00070     virtual bool isEmpty() const = 0;
    00071     virtual XMLAttDef* findAttDef
    00072     (
    00073         const   unsigned long       uriID
    00074         , const XMLCh* const        attName
    00075     ) = 0;
    00076     virtual const XMLAttDef* findAttDef
    00077     (
    00078         const   unsigned long       uriID
    00079         , const XMLCh* const        attName
    00080     )   const = 0;
    00081     virtual XMLAttDef* findAttDef
    00082     (
    00083         const   XMLCh* const        attURI
    00084         , const XMLCh* const        attName
    00085     ) = 0;
    00086     virtual const XMLAttDef* findAttDef
    00087     (
    00088         const   XMLCh* const        attURI
    00089         , const XMLCh* const        attName
    00090     )   const = 0;
    00091
    00095     virtual XMLAttDef& nextElement() = 0;
    00096
    00100     virtual void Reset() = 0;
    00101
    00105     virtual unsigned int getAttDefCount() const = 0;
    00106
    00110     virtual XMLAttDef &getAttDef(unsigned int index) = 0;
    00111
    00115     virtual const XMLAttDef &getAttDef(unsigned int index) const = 0;
    00116
    00117     /***
    00118      * Support for Serialization/De-serialization
    00119      ***/
    00120     DECL_XSERIALIZABLE(XMLAttDefList)
    00121
    00122
    00123     // -----------------------------------------------------------------------
    00124     //  Getter methods
    00125     // -----------------------------------------------------------------------
    00126
    00127
    00129
    00137     MemoryManager* getMemoryManager() const;
    00138
    00140
    00141 protected :
    00142     // -----------------------------------------------------------------------
    00143     //  Hidden constructors and operators
    00144     // -----------------------------------------------------------------------
    00145     XMLAttDefList(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
    00146
    00147 private:
    00148     // unimplemented
    00149     XMLAttDefList(const XMLAttDefList&);
    00150     XMLAttDefList& operator=(const XMLAttDefList&);
    00151
    00152     MemoryManager*      fMemoryManager;
    00153 };
    00154
    00155
    00156
    00157 // ---------------------------------------------------------------------------
    00158 //  XMLAttDefList: Getter methods
    00159 // ---------------------------------------------------------------------------
    00160
    00161 inline MemoryManager* XMLAttDefList::getMemoryManager() const
    00162 {
    00163     return fMemoryManager;
    00164 }
    00165
    00166 // ---------------------------------------------------------------------------
    00167 //  XMLAttDefList: Constructors and Destructor
    00168 // ---------------------------------------------------------------------------
    00169 inline XMLAttDefList::~XMLAttDefList()
    00170 {
    00171 }
    00172
    00173
    00174 // ---------------------------------------------------------------------------
    00175 //  XMLAttDefList: Protected Constructor
    00176 // ---------------------------------------------------------------------------
    00177 inline XMLAttDefList::XMLAttDefList(MemoryManager* const manager):
    00178 fMemoryManager(manager)
    00179 {
    00180 }
    00181
    00182 XERCES_CPP_NAMESPACE_END
    00183
    00184 #endif

Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.