Xalan-C++ API Reference 1.12.0
XercesBridgeNavigator.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(XERCESBRIDGENAVIGATOR_HEADER_GUARD_1357924680)
19#define XERCESBRIDGENAVIGATOR_HEADER_GUARD_1357924680
20
21
22
24
25
26
27#include <cassert>
28
29
30
33
34
35
37
38
39
40namespace XALAN_CPP_NAMESPACE {
41
42
43
44class XercesDocumentBridge;
45class XalanAttr;
46class XalanElement;
47class XalanText;
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
60
61 explicit
64 bool mappingMode = true);
65
67
68 virtual
70
71
74 {
75 return m_ownerDocument;
76 }
77
78 void
83
86
89
92
95
97 getIndex() const
98 {
99 return m_index;
100 }
101
102 void
104 {
105 m_index = theIndex;
106 }
107
108 XalanNode*
110
111 XalanNode*
113 {
114 return m_parentNode;
115 }
116
117 void
119 {
120 m_parentNode = theParent;
121 }
122
123 XalanNode*
125
126 XalanNode*
128 {
129 return m_previousSibling;
130 }
131
132 void
137
138 XalanNode*
140
141 XalanNode*
143 {
144 return m_nextSibling;
145 }
146
147 void
149 {
150 m_nextSibling = theNextSibling;
151 }
152
153 XalanNode*
155
156 XalanNode*
158 {
159 return m_firstChild;
160 }
161
162 void
164 {
165 m_firstChild = theFirstChild;
166 }
167
168 XalanNode*
170
171 XalanNode*
173 {
174 return m_lastChild;
175 }
176
177 void
179 {
180 m_lastChild = theLastChild;
181 }
182
183 XalanNode*
187 XalanNode* refChild) const;
188
189 XalanNode*
193 XalanNode* oldChild) const;
194
195 XalanNode*
198 XalanNode* oldChild) const;
199
200 XalanNode*
203 XalanNode* newChild) const;
204
207
208 XalanNode*
210 const XalanNode* theXalanNode,
212 bool deep) const;
213
214 XalanText*
217 unsigned int offset) const;
218
219 /**
220 * Get a pooled string. If the string is not in the pool,
221 * add it.
222 *
223 * @param theString The string to pool.
224 * @return A const reference to the pooled string.
225 */
226 const XalanDOMString&
228
229private:
230
231 // Not implemented...
232 bool
234
235 // Data members...
236 XercesDocumentBridge* m_ownerDocument;
237
238 mutable XalanNode* m_parentNode;
239
240 mutable XalanNode* m_previousSibling;
241
242 mutable XalanNode* m_nextSibling;
243
244 mutable XalanNode* m_firstChild;
245
246 mutable XalanNode* m_lastChild;
247
248 IndexType m_index;
249};
250
251
252
253}
254
255
256
257#endif // !defined(XERCESBRIDGENAVIGATOR_HEADER_GUARD_1357924680)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
#define XALAN_XERCESPARSERLIAISON_EXPORT
unsigned long IndexType
Definition XalanNode.hpp:64
void setNextSibling(XalanNode *theNextSibling)
XalanNode * appendChild(DOM_NodeType &theXercesParent, XalanNode *newChild) const
XercesBridgeNavigator(const XercesBridgeNavigator &theSource)
XalanNode * getParentNode(const DOM_NodeType &theXercesNode) const
XalanAttr * mapNode(const DOM_AttrType &theXercesNode) const
void setOwnerDocument(XercesDocumentBridge *theDocument)
XalanNode * getFirstChild(const DOM_NodeType &theXercesNode) const
void setParentNode(XalanNode *theParent)
XalanText * splitText(DOM_TextType &theXercesText, unsigned int offset) const
void setFirstChild(XalanNode *theFirstChild)
DOM_NodeType mapNode(const XalanNode *theXalanNode) const
XalanNode * removeChild(DOM_NodeType &theXercesParent, XalanNode *oldChild) const
XalanNode * getLastChild(const DOM_NodeType &theXercesNode) const
XercesBridgeNavigator(XercesDocumentBridge *theOwnerDocument=0, bool mappingMode=true)
XalanElement * getOwnerElement(const DOM_AttrType &theXercesAttr) const
XalanNode * mapNode(const DOM_NodeType &theXercesNode) const
const XalanDOMString & getPooledString(const DOMStringType &theString) const
Get a pooled string.
XalanNode * insertBefore(DOM_NodeType &theXercesParent, XalanNode *newChild, XalanNode *refChild) const
XalanNode * cloneNode(const XalanNode *theXalanNode, const DOM_NodeType &theXercesNode, bool deep) const
DOM_AttrType mapNode(const XalanAttr *theXercesNode) const
void setPreviousSibling(XalanNode *thePreviousSibling)
XalanNode * getNextSibling(const DOM_NodeType &theXercesNode) const
XalanNode * replaceChild(DOM_NodeType &theXercesParent, XalanNode *newChild, XalanNode *oldChild) const
XalanNode * getPreviousSibling(const DOM_NodeType &theXercesNode) const
void setLastChild(XalanNode *theLastChild)
XercesDocumentBridge * getOwnerDocument() const
xercesc::DOMString DOMStringType
xercesc::DOM_Attr DOM_AttrType
xercesc::DOM_Text DOM_TextType
xercesc::DOM_Node DOM_NodeType
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)