Xalan-C++ API Reference 1.12.0
XercesWrapperNavigator.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(XERCESWRAPPERNAVIGATOR_HEADER_GUARD_1357924680)
19#define XERCESWRAPPERNAVIGATOR_HEADER_GUARD_1357924680
20
21
22
24
25
26
27#include <cassert>
28
29
30
31#include <xercesc/util/XercesDefs.hpp>
32
33
34
37
38
39
41
42
43
44namespace XALAN_CPP_NAMESPACE {
45
46
47
48class XercesDocumentWrapper;
49class XalanAttr;
50class XalanElement;
51class XalanText;
52
53
54
56{
57public:
58
60
61 explicit
63
65
66 virtual
68
69
72 {
73 return m_ownerDocument;
74 }
75
76 void
81
84
87
88 const DOMNodeType*
90
92 getIndex() const
93 {
94 return m_index;
95 }
96
97 void
99 {
100 m_index = theIndex;
101 }
102
103 XalanNode*
105
106 XalanNode*
108 {
109 return m_parentNode;
110 }
111
112 void
114 {
115 m_parentNode = theParent;
116 }
117
118 XalanNode*
120
121 XalanNode*
123 {
124 return m_previousSibling;
125 }
126
127 void
132
133 XalanNode*
135
136 XalanNode*
138 {
139 return m_nextSibling;
140 }
141
142 void
144 {
145 m_nextSibling = theNextSibling;
146 }
147
148 XalanNode*
150
151 XalanNode*
153 {
154 return m_firstChild;
155 }
156
157 void
159 {
160 m_firstChild = theFirstChild;
161 }
162
163 XalanNode*
165
166 XalanNode*
168 {
169 return m_lastChild;
170 }
171
172 void
174 {
175 m_lastChild = theLastChild;
176 }
177
180
181 /**
182 * Get a pooled string. If the string is not in the pool,
183 * add it.
184 *
185 * @param theString The string to pool.
186 * @return A const reference to the pooled string.
187 */
188 const XalanDOMString&
190
191private:
192
193 // Not implemented...
194 bool
196
197 // Data members...
198 XercesDocumentWrapper* m_ownerDocument;
199
200 XalanNode* m_parentNode;
201
202 XalanNode* m_previousSibling;
203
204 XalanNode* m_nextSibling;
205
206 XalanNode* m_firstChild;
207
208 XalanNode* m_lastChild;
209
210 IndexType m_index;
211
212 static const XalanDOMString s_emptyString;
213};
214
215
216
217}
218
219
220
221#endif // !defined(XERCESWRAPPERNAVIGATOR_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
const DOMNodeType * mapNode(XalanNode *theXalanNode) const
XalanElement * getOwnerElement(const DOMAttrType *theXercesAttr) const
XalanNode * getParentNode(const DOMNodeType *theXercesNode) const
void setPreviousSibling(XalanNode *thePreviousSibling)
void setLastChild(XalanNode *theLastChild)
void setNextSibling(XalanNode *theNextSibling)
XalanNode * getLastChild(const DOMNodeType *theXercesNode) const
void setFirstChild(XalanNode *theFirstChild)
XalanNode * mapNode(const DOMNodeType *theXercesNode) const
XalanAttr * mapNode(const DOMAttrType *theXercesNode) const
XalanNode * getNextSibling(const DOMNodeType *theXercesNode) const
XercesDocumentWrapper * getOwnerDocument() const
XalanNode * getPreviousSibling(const DOMNodeType *theXercesNode) const
void setOwnerDocument(XercesDocumentWrapper *theDocument)
void setParentNode(XalanNode *theParent)
XercesWrapperNavigator(XercesDocumentWrapper *theOwnerDocument=0)
const XalanDOMString & getPooledString(const XMLCh *theString) const
Get a pooled string.
XercesWrapperNavigator(const XercesWrapperNavigator &theSource)
XalanNode * getFirstChild(const DOMNodeType *theXercesNode) const
xercesc::DOMAttr DOMAttrType
xercesc::DOMNode DOMNodeType
bool operator==(const XalanVector< Type > &theLHS, const XalanVector< Type > &theRHS)