Xalan-C++ API Documentation

The Xalan C++ XSLT Processor Version 1.11


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 
43 XALAN_CPP_NAMESPACE_BEGIN
44 
45 
46 
48 
49 
50 /**
51  * This class is deprecated.
52  *
53  * @deprecated This class is part of the deprecated Xerces DOM bridge.
54  */
56 {
57 public:
58 
60  const DOM_NodeListType& theXercesNodeList,
61  const XercesBridgeNavigator& theNavigator);
62 
64 
65  virtual
67 
68  bool
69  operator==(const XercesNodeListBridge& theRHS) const
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 
98 private:
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 XALAN_CPP_NAMESPACE_END
114 
115 
116 
117 #endif // !defined(XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680)
XERCES_CPP_NAMESPACE_QUALIFIER DOM_NodeList DOM_NodeListType
#define XALAN_XERCESPARSERLIAISON_EXPORT
XalanNodeList & operator=(const XalanNodeList &theSource)
This class is deprecated.
virtual XalanNode * item(XalanSize_t index) const =0
Returns the indexth item in the collection.
This class is deprecated.
bool operator==(const XercesNodeListBridge &theRHS) const
virtual XalanSize_t getLength() const =0
Returns the number of nodes in the list.

Interpreting class diagrams

Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.

Xalan-C++ XSLT Processor Version 1.11
Copyright © 1999-2012 The Apache Software Foundation.
All Rights Reserved.

Apache Logo