1 /**
2 * Phoebe DOM Implementation.
3 *
4 * This is a C++ approximation of the W3C DOM model, which follows
5 * fairly closely the specifications in the various .idl files, copies of
6 * which are provided for reference. Most important is this one:
7 *
8 * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
9 *
10 * Authors:
11 * Bob Jamison
12 *
13 * Copyright (C) 2005-2008 Bob Jamison
14 *
15 * This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with this library; if not, write to the Free Software
27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 */
31 #include "xpathimpl.h"
34 namespace org
35 {
36 namespace w3c
37 {
38 namespace dom
39 {
40 namespace xpath
41 {
44 /*#########################################################################
45 ## XPathEvaluatorImpl
46 #########################################################################*/
48 /**
49 *
50 */
51 XPathExpression *XPathEvaluatorImpl::createExpression(
52 const DOMString &/*expression*/,
53 const XPathNSResolver */*resolver*/)
54 throw (XPathException, dom::DOMException)
55 {
56 return NULL;
57 }
60 /**
61 *
62 */
63 XPathNSResolver *XPathEvaluatorImpl::createNSResolver(const Node */*nodeResolver*/)
64 {
65 return NULL;
66 }
69 /**
70 *
71 */
72 XPathResult *XPathEvaluatorImpl::evaluate(
73 const DOMString &/*expression*/,
74 const Node */*contextNode*/,
75 const XPathNSResolver */*resolver*/,
76 const unsigned short /*type*/,
77 const XPathResult */*result*/)
78 throw (XPathException, dom::DOMException)
79 {
80 return NULL;
81 }
84 //###################
85 //# Non-API methods
86 //###################
90 /*#########################################################################
91 ## XPathExpressionImpl
92 #########################################################################*/
96 /**
97 *
98 */
99 XPathResult *XPathExpressionImpl::evaluate(
100 const Node */*contextNode*/,
101 unsigned short /*type*/,
102 const XPathResult */*result*/)
103 throw (XPathException, dom::DOMException)
104 {
105 return NULL;
106 }
110 /*#########################################################################
111 ## XPathNSResolverImpl
112 #########################################################################*/
115 /**
116 *
117 */
118 DOMString XPathNSResolverImpl::lookupNamespaceURI(const DOMString &/*prefix*/)
119 {
120 return "";
121 }
126 /*#########################################################################
127 ## XPathResultImpl
128 #########################################################################*/
132 /**
133 *
134 */
135 unsigned short XPathResultImpl::getResultType() throw (XPathException)
136 {
137 return 0;
138 }
140 /**
141 *
142 */
143 double XPathResultImpl::getNumberValue() throw (XPathException)
144 {
145 return 0.0;
146 }
149 /**
150 *
151 */
152 DOMString XPathResultImpl::getStringValue() throw (XPathException)
153 {
154 return "";
155 }
157 /**
158 *
159 */
160 bool XPathResultImpl::getBooleanValue() throw (XPathException)
161 {
162 return false;
163 }
165 /**
166 *
167 */
168 Node *XPathResultImpl::getSingleNodeValue() throw (XPathException)
169 {
170 return NULL;
171 }
173 /**
174 *
175 */
176 bool XPathResultImpl::getInvalidIteratorState() throw (XPathException)
177 {
178 return false;
179 }
181 /**
182 *
183 */
184 unsigned long XPathResultImpl::getSnapshotLength() throw (XPathException)
185 {
186 return 0L;
187 }
189 /**
190 *
191 */
192 Node *XPathResultImpl::iterateNext() throw (XPathException, dom::DOMException)
193 {
194 return NULL;
195 }
197 /**
198 *
199 */
200 Node *XPathResultImpl::snapshotItem(unsigned long /*index*/) throw (XPathException)
201 {
202 return NULL;
203 }
207 /*#########################################################################
208 ## XPathNamespaceImpl
209 #########################################################################*/
212 /**
213 *
214 */
215 Element *XPathNamespaceImpl::getOwnerElement()
216 {
217 return NULL;
218 }
223 } //namespace xpath
224 } //namespace dom
225 } //namespace w3c
226 } //namespace org
231 /*#########################################################################
232 ## E N D O F F I L E
233 #########################################################################*/