| API Docs for SAX and DOM |

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

# Attributes.hpp

Go to the documentation of this file.

    00001 /*
    00002  * Copyright 1999-2001,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: Attributes.hpp 191054 2005-06-17 02:56:35Z jberry $
    00019  */
    00020
    00021 #ifndef ATTRIBUTES_HPP
    00022 #define ATTRIBUTES_HPP
    00023
    00024 #include <xercesc/util/XercesDefs.hpp>
    00025
    00026 XERCES_CPP_NAMESPACE_BEGIN
    00027
    00081 class  Attributes
    00082 {
    00083 public:
    00084     // -----------------------------------------------------------------------
    00085     //  Constructors and Destructor
    00086     // -----------------------------------------------------------------------
    00090     Attributes()
    00091     {
    00092     }
    00093
    00095     virtual ~Attributes()
    00096     {
    00097     }
    00099
    00112     virtual unsigned int getLength() const = 0;
    00113
    00127     virtual const XMLCh* getURI(const unsigned int index) const = 0;
    00128
    00142     virtual const XMLCh* getLocalName(const unsigned int index) const = 0;
    00143
    00157     virtual const XMLCh* getQName(const unsigned int index) const = 0;
    00158
    00180     virtual const XMLCh* getType(const unsigned int index) const = 0;
    00181
    00195     virtual const XMLCh* getValue(const unsigned int index) const = 0;
    00196
    00198     // Name-based query.
    00200
    00210     virtual int getIndex(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
    00211
    00219     virtual int getIndex(const XMLCh* const qName ) const = 0 ;
    00220
    00233     virtual const XMLCh* getType(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
    00234
    00245     virtual const XMLCh* getType(const XMLCh* const qName) const = 0;
    00246
    00258     virtual const XMLCh* getValue(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
    00259
    00270     virtual const XMLCh* getValue(const XMLCh* const qName) const = 0;
    00271
    00273
    00274 private :
    00275     /* Constructors and operators */
    00276     /* Copy constructor */
    00277     Attributes(const Attributes&);
    00278     /* Assignment operator */
    00279     Attributes& operator=(const Attributes&);
    00280
    00281 };
    00282
    00283 XERCES_CPP_NAMESPACE_END
    00284
    00285 #endif

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