| API Docs for SAX and DOM |

- Main Page
- Classes
- Files
- Related Pages

# XMLAttDefList.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Licensed to the Apache Software Foundation (ASF) under one or more
    00003  * contributor license agreements.  See the NOTICE file distributed with
    00004  * this work for additional information regarding copyright ownership.
    00005  * The ASF licenses this file to You under the Apache License, Version 2.0
    00006  * (the "License"); you may not use this file except in compliance with
    00007  * the License.  You may obtain a copy of the License at
    00008  *
    00009  *      http://www.apache.org/licenses/LICENSE-2.0
    00010  *
    00011  * Unless required by applicable law or agreed to in writing, software
    00012  * distributed under the License is distributed on an "AS IS" BASIS,
    00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00014  * See the License for the specific language governing permissions and
    00015  * limitations under the License.
    00016  */
    00017
    00018 /*
    00019  * $Id: XMLAttDefList.hpp 568078 2007-08-21 11:43:25Z amassari $
    00020  */
    00021
    00022 #if !defined(XMLATTDEFLIST_HPP)
    00023 #define XMLATTDEFLIST_HPP
    00024
    00025 #include <xercesc/util/XercesDefs.hpp>
    00026 #include <xercesc/util/XMemory.hpp>
    00027 #include <xercesc/internal/XSerializable.hpp>
    00028
    00029 XERCES_CPP_NAMESPACE_BEGIN
    00030
    00031 class XMLAttDef;
    00032
    00050 class  XMLAttDefList : public XSerializable, public XMemory
    00051 {
    00052 public:
    00053     // -----------------------------------------------------------------------
    00054     //  Constructors and Destructor
    00055     // -----------------------------------------------------------------------
    00056
    00059     virtual ~XMLAttDefList();
    00061
    00062
    00063     // -----------------------------------------------------------------------
    00064     //  The virtual interface
    00065     // -----------------------------------------------------------------------
    00066
    00070     virtual bool hasMoreElements() const = 0;
    00071     virtual bool isEmpty() const = 0;
    00072     virtual XMLAttDef* findAttDef
    00073     (
    00074         const   unsigned long       uriID
    00075         , const XMLCh* const        attName
    00076     ) = 0;
    00077     virtual const XMLAttDef* findAttDef
    00078     (
    00079         const   unsigned long       uriID
    00080         , const XMLCh* const        attName
    00081     )   const = 0;
    00082     virtual XMLAttDef* findAttDef
    00083     (
    00084         const   XMLCh* const        attURI
    00085         , const XMLCh* const        attName
    00086     ) = 0;
    00087     virtual const XMLAttDef* findAttDef
    00088     (
    00089         const   XMLCh* const        attURI
    00090         , const XMLCh* const        attName
    00091     )   const = 0;
    00092
    00096     virtual XMLAttDef& nextElement() = 0;
    00097
    00101     virtual void Reset() = 0;
    00102
    00106     virtual unsigned int getAttDefCount() const = 0;
    00107
    00111     virtual XMLAttDef &getAttDef(unsigned int index) = 0;
    00112
    00116     virtual const XMLAttDef &getAttDef(unsigned int index) const = 0;
    00117
    00118     /***
    00119      * Support for Serialization/De-serialization
    00120      ***/
    00121     DECL_XSERIALIZABLE(XMLAttDefList)
    00122
    00123
    00124     // -----------------------------------------------------------------------
    00125     //  Getter methods
    00126     // -----------------------------------------------------------------------
    00127
    00128
    00130
    00138     MemoryManager* getMemoryManager() const;
    00139
    00141
    00142 protected :
    00143     // -----------------------------------------------------------------------
    00144     //  Hidden constructors and operators
    00145     // -----------------------------------------------------------------------
    00146     XMLAttDefList(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
    00147
    00148 private:
    00149     // unimplemented
    00150     XMLAttDefList(const XMLAttDefList&);
    00151     XMLAttDefList& operator=(const XMLAttDefList&);
    00152
    00153     MemoryManager*      fMemoryManager;
    00154 };
    00155
    00156
    00157
    00158 // ---------------------------------------------------------------------------
    00159 //  XMLAttDefList: Getter methods
    00160 // ---------------------------------------------------------------------------
    00161
    00162 inline MemoryManager* XMLAttDefList::getMemoryManager() const
    00163 {
    00164     return fMemoryManager;
    00165 }
    00166
    00167 // ---------------------------------------------------------------------------
    00168 //  XMLAttDefList: Constructors and Destructor
    00169 // ---------------------------------------------------------------------------
    00170 inline XMLAttDefList::~XMLAttDefList()
    00171 {
    00172 }
    00173
    00174
    00175 // ---------------------------------------------------------------------------
    00176 //  XMLAttDefList: Protected Constructor
    00177 // ---------------------------------------------------------------------------
    00178 inline XMLAttDefList::XMLAttDefList(MemoryManager* const manager):
    00179 fMemoryManager(manager)
    00180 {
    00181 }
    00182
    00183 XERCES_CPP_NAMESPACE_END
    00184
    00185 #endif

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