Xalan-C++ API Reference  1.12.0
NamedNodeMapAttributeList.hpp
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 #if !defined(NAMEDNODEMAPATTRIBUTELIST_HEADER_GUARD_1357924680)
19 #define NAMEDNODEMAPATTRIBUTELIST_HEADER_GUARD_1357924680
20 
21 
22 
23 // Base include file. Must be first.
25 
26 
27 
28 #include <xercesc/sax/AttributeList.hpp>
29 
31 
32 
33 namespace XALAN_CPP_NAMESPACE {
34 
35 
36 
37 class XalanNamedNodeMap;
38 
39 
40 
41 class XALAN_PLATFORMSUPPORT_EXPORT NamedNodeMapAttributeList : public xercesc::AttributeList
42 {
43 public:
44 
45  typedef xercesc::AttributeList ParentType;
46 
47  explicit
49  const XalanNamedNodeMap& theMap,
50  MemoryManager& theManager);
51 
52  virtual
54 
55  // These are inherited from AttributeList
56  virtual XalanSize_t
57  getLength() const;
58 
59  virtual const XalanDOMChar*
60  getName(const XalanSize_t index) const;
61 
62  virtual const XalanDOMChar*
63  getType(const XalanSize_t index) const;
64 
65  virtual const XalanDOMChar*
66  getValue(const XalanSize_t index) const;
67 
68  virtual const XalanDOMChar*
69  getType(const XalanDOMChar* const name) const;
70 
71  virtual const XalanDOMChar*
72  getValue(const XalanDOMChar* const name) const;
73 
74  virtual const XalanDOMChar*
75  getValue(const char* const name) const;
76 
77 private:
78 
79  // Not implemented...
81  operator=(const NamedNodeMapAttributeList&);
82 
83  bool
85 
86  // Data members...
87  const XalanNamedNodeMap& m_nodeMap;
88 
89  const XalanSize_t m_length;
90 
91  MemoryManager& m_memoryManager;
92 
93  static const XalanDOMChar s_typeString[];
94 };
95 
96 
97 
98 }
99 
100 
101 
102 #endif // NAMEDNODEMAPATTRIBUTELIST_HEADER_GUARD_1357924680
xalanc::NamedNodeMapAttributeList::ParentType
xercesc::AttributeList ParentType
Definition: NamedNodeMapAttributeList.hpp:45
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition: XalanVersion.hpp:76
xalanc::operator==
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)
Definition: XalanVector.hpp:1118
XALAN_PLATFORMSUPPORT_EXPORT
#define XALAN_PLATFORMSUPPORT_EXPORT
Definition: PlatformSupportDefinitions.hpp:35
PlatformSupportDefinitions.hpp
XalanMemoryManagement.hpp
xalanc::NamedNodeMapAttributeList
Definition: NamedNodeMapAttributeList.hpp:41
xalanc::XalanNamedNodeMap
Definition: XalanNamedNodeMap.hpp:36