Xerces-C++: Attributes.hpp Source File

| API Docs for SAX and DOM |
| Main Page Classes Files Related Pages # Attributes.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: Attributes.hpp 568078 2007-08-21 11:43:25Z amassari $
    00020  */
    00021
    00022 #ifndef ATTRIBUTES_HPP
    00023 #define ATTRIBUTES_HPP
    00024
    00025 #include <xercesc/util/XercesDefs.hpp>
    00026
    00027 XERCES_CPP_NAMESPACE_BEGIN
    00028
    00082 class  Attributes
    00083 {
    00084 public:
    00085     // -----------------------------------------------------------------------
    00086     //  Constructors and Destructor
    00087     // -----------------------------------------------------------------------
    00091     Attributes()
    00092     {
    00093     }
    00094
    00096     virtual ~Attributes()
    00097     {
    00098     }
    00100
    00113     virtual unsigned int getLength() const = 0;
    00114
    00128     virtual const XMLCh* getURI(const unsigned int index) const = 0;
    00129
    00143     virtual const XMLCh* getLocalName(const unsigned int index) const = 0;
    00144
    00158     virtual const XMLCh* getQName(const unsigned int index) const = 0;
    00159
    00181     virtual const XMLCh* getType(const unsigned int index) const = 0;
    00182
    00196     virtual const XMLCh* getValue(const unsigned int index) const = 0;
    00197
    00199     // Name-based query.
    00201
    00211     virtual int getIndex(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
    00212
    00220     virtual int getIndex(const XMLCh* const qName ) const = 0 ;
    00221
    00234     virtual const XMLCh* getType(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
    00235
    00246     virtual const XMLCh* getType(const XMLCh* const qName) const = 0;
    00247
    00259     virtual const XMLCh* getValue(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
    00260
    00271     virtual const XMLCh* getValue(const XMLCh* const qName) const = 0;
    00272
    00274
    00275 private :
    00276     /* Constructors and operators */
    00277     /* Copy constructor */
    00278     Attributes(const Attributes&);
    00279     /* Assignment operator */
    00280     Attributes& operator=(const Attributes&);
    00281
    00282 };
    00283
    00284 XERCES_CPP_NAMESPACE_END
    00285
    00286 #endif

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