Xerces-C++ 3.2.5
AttributeList.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_ATTRIBUTELIST_HPP)
23#define XERCESC_INCLUDE_GUARD_ATTRIBUTELIST_HPP
24
26
28
81{
82public:
83 // -----------------------------------------------------------------------
84 // Constructors and Destructor
85 // -----------------------------------------------------------------------
90 {
91 }
92
95 {
96 }
98
111 virtual XMLSize_t getLength() const = 0;
112
129 virtual const XMLCh* getName(const XMLSize_t index) const = 0;
130
152 virtual const XMLCh* getType(const XMLSize_t index) const = 0;
153
167 virtual const XMLCh* getValue(const XMLSize_t index) const = 0;
168
183 virtual const XMLCh* getType(const XMLCh* const name) const = 0;
184
199 virtual const XMLCh* getValue(const XMLCh* const name) const = 0;
200
215 virtual const XMLCh* getValue(const char* const name) const = 0;
217
218private :
219 /* Constructors and operators */
220 /* Copy constructor */
222 /* Assignment operator */
223 AttributeList& operator=(const AttributeList&);
224
225};
226
228
229#endif
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define SAX_EXPORT
Definition XercesDefs.hpp:164
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
Interface for an element's attribute specifications.
Definition AttributeList.hpp:81
virtual ~AttributeList()
Destructor.
Definition AttributeList.hpp:94
AttributeList()
Default constructor.
Definition AttributeList.hpp:89
virtual XMLSize_t getLength() const =0
Return the number of attributes in this list.
virtual const XMLCh * getValue(const XMLCh *const name) const =0
Return the value of an attribute in the list (by name).
virtual const XMLCh * getName(const XMLSize_t index) const =0
Return the name of an attribute in this list (by position).
virtual const XMLCh * getValue(const XMLSize_t index) const =0
Return the value of an attribute in the list (by position).
virtual const XMLCh * getType(const XMLSize_t index) const =0
Return the type of an attribute in the list (by position).
virtual const XMLCh * getValue(const char *const name) const =0
Return the value of an attribute in the list (by name).
virtual const XMLCh * getType(const XMLCh *const name) const =0
Return the type of an attribute in the list (by name).