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(XERCESBRIDGENAVIGATOR_HEADER_GUARD_1357924680) 00019 #define XERCESBRIDGENAVIGATOR_HEADER_GUARD_1357924680 00020 00021 00022 00023 #include <xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp> 00024 00025 00026 00027 #include <cassert> 00028 00029 00030 00031 #include <xalanc/XalanDOM/XalanDOMString.hpp> 00032 #include <xalanc/XalanDOM/XalanNode.hpp> 00033 00034 00035 00036 #include <xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp> 00037 00038 00039 00040 XALAN_CPP_NAMESPACE_BEGIN 00041 00042 00043 00044 class XercesDocumentBridge; 00045 class XalanAttr; 00046 class XalanElement; 00047 class XalanText; 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 XercesBridgeNavigator 00056 { 00057 public: 00058 00059 typedef XalanNode::IndexType IndexType; 00060 00061 explicit 00062 XercesBridgeNavigator( 00063 XercesDocumentBridge* theOwnerDocument = 0, 00064 bool mappingMode = true); 00065 00066 XercesBridgeNavigator(const XercesBridgeNavigator& theSource); 00067 00068 virtual 00069 ~XercesBridgeNavigator(); 00070 00071 00072 XercesDocumentBridge* 00073 getOwnerDocument() const 00074 { 00075 return m_ownerDocument; 00076 } 00077 00078 void 00079 setOwnerDocument(XercesDocumentBridge* theDocument) 00080 { 00081 m_ownerDocument = theDocument; 00082 } 00083 00084 XalanNode* 00085 mapNode(const DOM_NodeType& theXercesNode) const; 00086 00087 XalanAttr* 00088 mapNode(const DOM_AttrType& theXercesNode) const; 00089 00090 DOM_NodeType 00091 mapNode(const XalanNode* theXalanNode) const; 00092 00093 DOM_AttrType 00094 mapNode(const XalanAttr* theXercesNode) const; 00095 00096 IndexType 00097 getIndex() const 00098 { 00099 return m_index; 00100 } 00101 00102 void 00103 setIndex(IndexType theIndex) 00104 { 00105 m_index = theIndex; 00106 } 00107 00108 XalanNode* 00109 getParentNode(const DOM_NodeType& theXercesNode) const; 00110 00111 XalanNode* 00112 getParentNode() const 00113 { 00114 return m_parentNode; 00115 } 00116 00117 void 00118 setParentNode(XalanNode* theParent) 00119 { 00120 m_parentNode = theParent; 00121 } 00122 00123 XalanNode* 00124 getPreviousSibling(const DOM_NodeType& theXercesNode) const; 00125 00126 XalanNode* 00127 getPreviousSibling() const 00128 { 00129 return m_previousSibling; 00130 } 00131 00132 void 00133 setPreviousSibling(XalanNode* thePreviousSibling) 00134 { 00135 m_previousSibling = thePreviousSibling; 00136 } 00137 00138 XalanNode* 00139 getNextSibling(const DOM_NodeType& theXercesNode) const; 00140 00141 XalanNode* 00142 getNextSibling() const 00143 { 00144 return m_nextSibling; 00145 } 00146 00147 void 00148 setNextSibling(XalanNode* theNextSibling) 00149 { 00150 m_nextSibling = theNextSibling; 00151 } 00152 00153 XalanNode* 00154 getFirstChild(const DOM_NodeType& theXercesNode) const; 00155 00156 XalanNode* 00157 getFirstChild() const 00158 { 00159 return m_firstChild; 00160 } 00161 00162 void 00163 setFirstChild(XalanNode* theFirstChild) 00164 { 00165 m_firstChild = theFirstChild; 00166 } 00167 00168 XalanNode* 00169 getLastChild(const DOM_NodeType& theXercesNode) const; 00170 00171 XalanNode* 00172 getLastChild() const 00173 { 00174 return m_lastChild; 00175 } 00176 00177 void 00178 setLastChild(XalanNode* theLastChild) 00179 { 00180 m_lastChild = theLastChild; 00181 } 00182 00183 XalanNode* 00184 insertBefore( 00185 DOM_NodeType& theXercesParent, 00186 XalanNode* newChild, 00187 XalanNode* refChild) const; 00188 00189 XalanNode* 00190 replaceChild( 00191 DOM_NodeType& theXercesParent, 00192 XalanNode* newChild, 00193 XalanNode* oldChild) const; 00194 00195 XalanNode* 00196 removeChild( 00197 DOM_NodeType& theXercesParent, 00198 XalanNode* oldChild) const; 00199 00200 XalanNode* 00201 appendChild( 00202 DOM_NodeType& theXercesParent, 00203 XalanNode* newChild) const; 00204 00205 XalanElement* 00206 getOwnerElement(const DOM_AttrType& theXercesAttr) const; 00207 00208 XalanNode* 00209 cloneNode( 00210 const XalanNode* theXalanNode, 00211 const DOM_NodeType& theXercesNode, 00212 bool deep) const; 00213 00214 XalanText* 00215 splitText( 00216 DOM_TextType& theXercesText, 00217 unsigned int offset) const; 00218 00219 /** 00220 * Get a pooled string. If the string is not in the pool, 00221 * add it. 00222 * 00223 * @param theString The string to pool. 00224 * @return A const reference to the pooled string. 00225 */ 00226 const XalanDOMString& 00227 getPooledString(const DOMStringType& theString) const; 00228 00229 private: 00230 00231 // Not implemented... 00232 bool 00233 operator==(const XercesBridgeNavigator& theRHS) const; 00234 00235 // Data members... 00236 XercesDocumentBridge* m_ownerDocument; 00237 00238 mutable XalanNode* m_parentNode; 00239 00240 mutable XalanNode* m_previousSibling; 00241 00242 mutable XalanNode* m_nextSibling; 00243 00244 mutable XalanNode* m_firstChild; 00245 00246 mutable XalanNode* m_lastChild; 00247 00248 IndexType m_index; 00249 }; 00250 00251 00252 00253 XALAN_CPP_NAMESPACE_END 00254 00255 00256 00257 #endif // !defined(XERCESBRIDGENAVIGATOR_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 |
|