Xerces-C++ 3.2.4

Attributes.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_ATTRIBUTES_HPP)
23#define XERCESC_INCLUDE_GUARD_ATTRIBUTES_HPP
24
25#include <xercesc/util/XercesDefs.hpp>
26
27 XERCES_CPP_NAMESPACE_BEGIN
28
82 class SAX2_EXPORT Attributes
83{
84 public:
85 // -----------------------------------------------------------------------
86 // Constructors and Destructor
87 // -----------------------------------------------------------------------
91 Attributes()
92 {
93 }
94
96 virtual ~Attributes()
97 {
98 }
100
113 virtual XMLSize_t getLength() const = 0;
114
128 virtual const XMLCh* getURI(const XMLSize_t index) const = 0;
129
143 virtual const XMLCh* getLocalName(const XMLSize_t index) const = 0;
144
158 virtual const XMLCh* getQName(const XMLSize_t index) const = 0;
159
181 virtual const XMLCh* getType(const XMLSize_t index) const = 0;
182
196 virtual const XMLCh* getValue(const XMLSize_t index) const = 0;
197
199 // Name-based query.
201
212 virtual bool getIndex(const XMLCh* const uri,
213 const XMLCh* const localPart,
214 XMLSize_t& index) const = 0 ;
215
225 virtual int getIndex(const XMLCh* const uri,
226 const XMLCh* const localPart ) const = 0 ;
227
236 virtual bool getIndex(const XMLCh* const qName,
237 XMLSize_t& index) const = 0 ;
238
246 virtual int getIndex(const XMLCh* const qName ) const = 0 ;
247
260 virtual const XMLCh* getType(const XMLCh* const uri,
261 const XMLCh* const localPart ) const = 0 ;
262
273 virtual const XMLCh* getType(const XMLCh* const qName) const = 0;
274
286 virtual const XMLCh* getValue(const XMLCh* const uri, const XMLCh* const localPart ) const = 0 ;
287
298 virtual const XMLCh* getValue(const XMLCh* const qName) const = 0;
299
301
302private :
303 /* Constructors and operators */
304 /* Copy constructor */
305 Attributes(const Attributes&);
306 /* Assignment operator */
307 Attributes& operator=(const Attributes&);
308
309};
310
311 XERCES_CPP_NAMESPACE_END
312
313#endif
XercesDefs.hpp
SAX2_EXPORT
#define SAX2_EXPORT
Definition: XercesDefs.hpp:165
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
XMLSize_t
size_t XMLSize_t
Definition: Xerces_autoconf_config.hpp:112
Attributes
Interface for an element's attribute specifications.
Definition: Attributes.hpp:83
Attributes::getValue
virtual const XMLCh * getValue(const XMLCh *const qName) const =0
Look up an attribute's value by XML 1.0 qualified name.
Attributes::getValue
virtual const XMLCh * getValue(const XMLSize_t index) const =0
Return the value of an attribute in the list (by position).
Attributes::~Attributes
virtual ~Attributes()
Destructor.
Definition: Attributes.hpp:96
Attributes::getLocalName
virtual const XMLCh * getLocalName(const XMLSize_t index) const =0
Return the local name of an attribute in this list (by position).
Attributes::getType
virtual const XMLCh * getType(const XMLSize_t index) const =0
Return the type of an attribute in the list (by position).
Attributes::Attributes
Attributes()
Default constructor.
Definition: Attributes.hpp:91
Attributes::getValue
virtual const XMLCh * getValue(const XMLCh *const uri, const XMLCh *const localPart) const =0
Look up an attribute's value by Namespace name.
Attributes::getQName
virtual const XMLCh * getQName(const XMLSize_t index) const =0
Return the qName of an attribute in this list (by position).
Attributes::getLength
virtual XMLSize_t getLength() const =0
Return the number of attributes in this list.
Attributes::getIndex
virtual bool getIndex(const XMLCh *const uri, const XMLCh *const localPart, XMLSize_t &index) const =0
Look up the index of an attribute by Namespace name.
Attributes::getURI
virtual const XMLCh * getURI(const XMLSize_t index) const =0
Return the namespace URI of an attribute in this list (by position).
Attributes::getType
virtual const XMLCh * getType(const XMLCh *const qName) const =0
Look up an attribute's type by XML 1.0 qualified name.
Attributes::getIndex
virtual bool getIndex(const XMLCh *const qName, XMLSize_t &index) const =0
Look up the index of an attribute by XML 1.0 qualified name.
Attributes::getIndex
virtual int getIndex(const XMLCh *const qName) const =0
Look up the index of an attribute by XML 1.0 qualified name.
Attributes::getIndex
virtual int getIndex(const XMLCh *const uri, const XMLCh *const localPart) const =0
Look up the index of an attribute by Namespace name.
Attributes::getType
virtual const XMLCh * getType(const XMLCh *const uri, const XMLCh *const localPart) const =0
Look up an attribute's type by Namespace name.