Xalan-C++ API Reference 1.12.0
XercesNodeListBridge.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(XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680)
19#define XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680
20
21
22
24
25
26
27#if XERCES_VERSION_MAJOR >= 2
28#include <xercesc/dom/deprecated/DOM_NodeList.hpp>
29#else
30#include <xercesc/dom/DOM_NodeList.hpp>
31#endif
32
33
34
36
37
38
40
41
42
43namespace XALAN_CPP_NAMESPACE {
44
45
46
47class XercesBridgeNavigator;
48
49
50/**
51 * This class is deprecated.
52 *
53 * @deprecated This class is part of the deprecated Xerces DOM bridge.
54 */
56{
57public:
58
62
64
65 virtual
67
68 bool
70 {
71 return m_xercesNodeList == theRHS.m_xercesNodeList ? true : false;
72 }
73
74 /** @name Get functions. */
75 //@{
76 /**
77 * Returns the <code>index</code>th item in the collection.
78 *
79 * If <code>index</code> is greater than or equal to the number of nodes in
80 * the list, this returns <code>null</code>.
81 *
82 * @param index Index into the collection.
83 * @return The node at the <code>index</code>th position in the
84 * <code>NodeList</code>, or <code>null</code> if that is not a valid
85 * index.
86 */
87 virtual XalanNode*
88 item(unsigned int index) const;
89
90 /**
91 * Returns the number of nodes in the list.
92 *
93 * The range of valid child node indices is 0 to <code>length-1</code> inclusive.
94 */
95 virtual unsigned int
96 getLength() const;
97
98private:
99
100 // Not implemented...
102 operator=(const XercesNodeListBridge& theRHS);
103
104
105 // Data members...
106 DOM_NodeListType m_xercesNodeList;
107
108 const XercesBridgeNavigator& m_navigator;
109};
110
111
112
113}
114
115
116
117#endif // !defined(XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
#define XALAN_XERCESPARSERLIAISON_EXPORT
XercesNodeListBridge(const DOM_NodeListType &theXercesNodeList, const XercesBridgeNavigator &theNavigator)
bool operator==(const XercesNodeListBridge &theRHS) const
virtual XalanNode * item(unsigned int index) const
Returns the indexth item in the collection.
virtual unsigned int getLength() const
Returns the number of nodes in the list.
XercesNodeListBridge(const XercesNodeListBridge &theSource)
xercesc::DOM_NodeList DOM_NodeListType