00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680) 00019 #define XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00024 00025 00026 00027 #if XERCES_VERSION_MAJOR >= 2 00028 #include <xercesc/dom/deprecated/DOM_NodeList.hpp> 00029 #else 00030 #include <xercesc/dom/DOM_NodeList.hpp> 00031 #endif 00032 00033 00034 00035 #include <xalanc/XalanDOM/XalanNodeList.hpp> 00036 00037 00038 00039 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp> 00040 00041 00042 00043 XALAN_CPP_NAMESPACE_BEGIN 00044 00045 00046 00047 class XercesBridgeNavigator; 00048 00049 00050 /** 00051 * This class is deprecated. 00052 * 00053 * @deprecated This class is part of the deprecated Xerces DOM bridge. 00054 */ 00055 class XALAN_XERCESPARSERLIAISON_EXPORT XercesNodeListBridge : public XalanNodeList 00056 { 00057 public: 00058 00059 XercesNodeListBridge( 00060 const DOM_NodeListType& theXercesNodeList, 00061 const XercesBridgeNavigator& theNavigator); 00062 00063 XercesNodeListBridge(const XercesNodeListBridge& theSource); 00064 00065 virtual 00066 ~XercesNodeListBridge(); 00067 00068 bool 00069 operator==(const XercesNodeListBridge& theRHS) const 00070 { 00071 return m_xercesNodeList == theRHS.m_xercesNodeList ? true : false; 00072 } 00073 00074 /** @name Get functions. */ 00075 //@{ 00076 /** 00077 * Returns the <code>index</code>th item in the collection. 00078 * 00079 * If <code>index</code> is greater than or equal to the number of nodes in 00080 * the list, this returns <code>null</code>. 00081 * 00082 * @param index Index into the collection. 00083 * @return The node at the <code>index</code>th position in the 00084 * <code>NodeList</code>, or <code>null</code> if that is not a valid 00085 * index. 00086 */ 00087 virtual XalanNode* 00088 item(unsigned int index) const; 00089 00090 /** 00091 * Returns the number of nodes in the list. 00092 * 00093 * The range of valid child node indices is 0 to <code>length-1</code> inclusive. 00094 */ 00095 virtual unsigned int 00096 getLength() const; 00097 00098 private: 00099 00100 // Not implemented... 00101 XercesNodeListBridge& 00102 operator=(const XercesNodeListBridge& theRHS); 00103 00104 00105 // Data members... 00106 DOM_NodeListType m_xercesNodeList; 00107 00108 const XercesBridgeNavigator& m_navigator; 00109 }; 00110 00111 00112 00113 XALAN_CPP_NAMESPACE_END 00114 00115 00116 00117 #endif // !defined(XERCESNODELISTBRIDGE_HEADER_GUARD_1357924680)
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|