http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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  * $Log: Attributes.hpp,v $
00019  * Revision 1.6  2004/09/26 01:06:31  cargilld
00020  * Fix documentation generation problem.  Replace <pre> with <code>.  Patch from James Littlejohn.
00021  *
00022  * Revision 1.5  2004/09/08 13:56:20  peiyongz
00023  * Apache License Version 2.0
00024  *
00025  * Revision 1.4  2003/03/07 18:10:30  tng
00026  * Return a reference instead of void for operator=
00027  *
00028  * Revision 1.3  2002/11/04 14:55:45  tng
00029  * C++ Namespace Support.
00030  *
00031  * Revision 1.2  2002/02/20 18:17:02  tng
00032  * [Bug 5977] Warnings on generating apiDocs.
00033  *
00034  * Revision 1.1.1.1  2002/02/01 22:22:08  peiyongz
00035  * sane_include
00036  *
00037  * Revision 1.5  2001/05/11 13:26:25  tng
00038  * Copyright update.
00039  *
00040  * Revision 1.4  2001/02/26 19:44:19  tng
00041  * Schema: add utility class QName, by Pei Yong Zhang.
00042  *
00043  * Revision 1.3  2000/08/09 22:19:28  jpolast
00044  * many conformance & stability changes:
00045  *   - ContentHandler::resetDocument() removed
00046  *   - attrs param of ContentHandler::startDocument() made const
00047  *   - SAXExceptions thrown now have msgs
00048  *   - removed duplicate function signatures that had 'const'
00049  *       [ eg: getContentHander() ]
00050  *   - changed getFeature and getProperty to apply to const objs
00051  *   - setProperty now takes a void* instead of const void*
00052  *   - SAX2XMLReaderImpl does not inherit from SAXParser anymore
00053  *   - Reuse Validator (http://apache.org/xml/features/reuse-validator) implemented
00054  *   - Features & Properties now read-only during parse
00055  *
00056  * Revision 1.2  2000/08/07 18:21:26  jpolast
00057  * change  module to 
00058  *
00059  * Revision 1.1  2000/08/02 18:02:34  jpolast
00060  * initial checkin of sax2 implementation
00061  * submitted by Simon Fell (simon@fell.com)
00062  * and Joe Polastre (jpolast@apache.org)
00063  *
00064  *
00065  */
00066 
00067 #ifndef ATTRIBUTES_HPP
00068 #define ATTRIBUTES_HPP
00069 
00070 #include <xercesc/util/XercesDefs.hpp>
00071 
00072 XERCES_CPP_NAMESPACE_BEGIN
00073 
00127 class  Attributes
00128 {
00129 public:
00130     // -----------------------------------------------------------------------
00131     //  Constructors and Destructor
00132     // -----------------------------------------------------------------------
00136     Attributes()
00137     {
00138     }
00139 
00141     virtual ~Attributes()
00142     {
00143     }
00145 
00158     virtual unsigned int getLength() const = 0;
00159 
00173     virtual const XMLCh* getURI(const unsigned int index) const = 0;
00174 
00188     virtual const XMLCh* getLocalName(const unsigned int index) const = 0;
00189 
00203     virtual const XMLCh* getQName(const unsigned int index) const = 0;
00204 
00226     virtual const XMLCh* getType(const unsigned int index) const = 0;
00227 
00241     virtual const XMLCh* getValue(const unsigned int index) const = 0;
00242 
00244     // Name-based query.
00246 
00256     virtual int getIndex(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
00257 
00265     virtual int getIndex(const XMLCh* const qName ) const = 0 ;
00266 
00279     virtual const XMLCh* getType(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
00280 
00291     virtual const XMLCh* getType(const XMLCh* const qName) const = 0;
00292 
00304     virtual const XMLCh* getValue(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
00305 
00316     virtual const XMLCh* getValue(const XMLCh* const qName) const = 0;
00317 
00319 
00320 private :
00321     /* Constructors and operators */
00322     /* Copy constructor */
00323     Attributes(const Attributes&);
00324     /* Assignment operator */
00325     Attributes& operator=(const Attributes&);
00326 
00327 };
00328 
00329 XERCES_CPP_NAMESPACE_END
00330 
00331 #endif


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