Back to index

lightning-sunbird  0.9+nobinonly
nsXPathNamespace.cpp
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is TransforMiiX XSLT processor code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2001
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Peter Van der Beken <peterv@propagandism.org>
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #include "nsXPathNamespace.h"
00040 #include "nsIDOMClassInfo.h"
00041 
00042 NS_IMPL_ADDREF(nsXPathNamespace)
00043 NS_IMPL_RELEASE(nsXPathNamespace)
00044 NS_INTERFACE_MAP_BEGIN(nsXPathNamespace)
00045   NS_INTERFACE_MAP_ENTRY(nsIDOMXPathNamespace)
00046   NS_INTERFACE_MAP_ENTRY(nsIDOMNode)
00047   NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMXPathNamespace)
00048   NS_INTERFACE_MAP_ENTRY_EXTERNAL_DOM_CLASSINFO(XPathNamespace)
00049 NS_INTERFACE_MAP_END
00050 
00051 nsXPathNamespace::nsXPathNamespace()
00052 {
00053 }
00054 
00055 nsXPathNamespace::~nsXPathNamespace()
00056 {
00057 }
00058 
00059 /* readonly attribute DOMString nodeName; */
00060 NS_IMETHODIMP nsXPathNamespace::GetNodeName(nsAString & aNodeName)
00061 {
00062     return NS_ERROR_NOT_IMPLEMENTED;
00063 }
00064 
00065 /* attribute DOMString nodeValue; */
00066 NS_IMETHODIMP nsXPathNamespace::GetNodeValue(nsAString & aNodeValue)
00067 {
00068     return NS_ERROR_NOT_IMPLEMENTED;
00069 }
00070 NS_IMETHODIMP nsXPathNamespace::SetNodeValue(const nsAString & aNodeValue)
00071 {
00072     return NS_ERROR_NOT_IMPLEMENTED;
00073 }
00074 
00075 /* readonly attribute unsigned short nodeType; */
00076 NS_IMETHODIMP nsXPathNamespace::GetNodeType(PRUint16 *aNodeType)
00077 {
00078     *aNodeType = XPATH_NAMESPACE_NODE;
00079     return NS_OK;
00080 }
00081 
00082 /* readonly attribute nsIDOMNode parentNode; */
00083 NS_IMETHODIMP nsXPathNamespace::GetParentNode(nsIDOMNode * *aParentNode)
00084 {
00085     return NS_ERROR_NOT_IMPLEMENTED;
00086 }
00087 
00088 /* readonly attribute nsIDOMNodeList childNodes; */
00089 NS_IMETHODIMP nsXPathNamespace::GetChildNodes(nsIDOMNodeList * *aChildNodes)
00090 {
00091     return NS_ERROR_NOT_IMPLEMENTED;
00092 }
00093 
00094 /* readonly attribute nsIDOMNode firstChild; */
00095 NS_IMETHODIMP nsXPathNamespace::GetFirstChild(nsIDOMNode * *aFirstChild)
00096 {
00097     return NS_ERROR_NOT_IMPLEMENTED;
00098 }
00099 
00100 /* readonly attribute nsIDOMNode lastChild; */
00101 NS_IMETHODIMP nsXPathNamespace::GetLastChild(nsIDOMNode * *aLastChild)
00102 {
00103     return NS_ERROR_NOT_IMPLEMENTED;
00104 }
00105 
00106 /* readonly attribute nsIDOMNode previousSibling; */
00107 NS_IMETHODIMP nsXPathNamespace::GetPreviousSibling(nsIDOMNode * *aPreviousSibling)
00108 {
00109     return NS_ERROR_NOT_IMPLEMENTED;
00110 }
00111 
00112 /* readonly attribute nsIDOMNode nextSibling; */
00113 NS_IMETHODIMP nsXPathNamespace::GetNextSibling(nsIDOMNode * *aNextSibling)
00114 {
00115     return NS_ERROR_NOT_IMPLEMENTED;
00116 }
00117 
00118 /* readonly attribute nsIDOMNamedNodeMap attributes; */
00119 NS_IMETHODIMP nsXPathNamespace::GetAttributes(nsIDOMNamedNodeMap * *aAttributes)
00120 {
00121     return NS_ERROR_NOT_IMPLEMENTED;
00122 }
00123 
00124 /* readonly attribute nsIDOMDocument ownerDocument; */
00125 NS_IMETHODIMP nsXPathNamespace::GetOwnerDocument(nsIDOMDocument * *aOwnerDocument)
00126 {
00127     return NS_ERROR_NOT_IMPLEMENTED;
00128 }
00129 
00130 /* nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild)  raises (DOMException); */
00131 NS_IMETHODIMP nsXPathNamespace::InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **aResult)
00132 {
00133     return NS_ERROR_NOT_IMPLEMENTED;
00134 }
00135 
00136 /* nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild)  raises (DOMException); */
00137 NS_IMETHODIMP nsXPathNamespace::ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **aResult)
00138 {
00139     return NS_ERROR_NOT_IMPLEMENTED;
00140 }
00141 
00142 /* nsIDOMNode removeChild (in nsIDOMNode oldChild)  raises (DOMException); */
00143 NS_IMETHODIMP nsXPathNamespace::RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **aResult)
00144 {
00145     return NS_ERROR_NOT_IMPLEMENTED;
00146 }
00147 
00148 /* nsIDOMNode appendChild (in nsIDOMNode newChild)  raises (DOMException); */
00149 NS_IMETHODIMP nsXPathNamespace::AppendChild(nsIDOMNode *newChild, nsIDOMNode **aResult)
00150 {
00151     return NS_ERROR_NOT_IMPLEMENTED;
00152 }
00153 
00154 /* boolean hasChildNodes (); */
00155 NS_IMETHODIMP nsXPathNamespace::HasChildNodes(PRBool *aResult)
00156 {
00157     return NS_ERROR_NOT_IMPLEMENTED;
00158 }
00159 
00160 /* nsIDOMNode cloneNode (in boolean deep); */
00161 NS_IMETHODIMP nsXPathNamespace::CloneNode(PRBool deep, nsIDOMNode **aResult)
00162 {
00163     return NS_ERROR_NOT_IMPLEMENTED;
00164 }
00165 
00166 /* void normalize (); */
00167 NS_IMETHODIMP nsXPathNamespace::Normalize()
00168 {
00169     return NS_ERROR_NOT_IMPLEMENTED;
00170 }
00171 
00172 /* boolean isSupported (in DOMString feature, in DOMString version); */
00173 NS_IMETHODIMP nsXPathNamespace::IsSupported(const nsAString & feature, const nsAString & version, PRBool *aResult)
00174 {
00175     return NS_ERROR_NOT_IMPLEMENTED;
00176 }
00177 
00178 /* readonly attribute DOMString namespaceURI; */
00179 NS_IMETHODIMP nsXPathNamespace::GetNamespaceURI(nsAString & aNamespaceURI)
00180 {
00181     return NS_ERROR_NOT_IMPLEMENTED;
00182 }
00183 
00184 /* attribute DOMString prefix; */
00185 NS_IMETHODIMP nsXPathNamespace::GetPrefix(nsAString & aPrefix)
00186 {
00187     return NS_ERROR_NOT_IMPLEMENTED;
00188 }
00189 NS_IMETHODIMP nsXPathNamespace::SetPrefix(const nsAString & aPrefix)
00190 {
00191     return NS_ERROR_NOT_IMPLEMENTED;
00192 }
00193 
00194 /* readonly attribute DOMString localName; */
00195 NS_IMETHODIMP nsXPathNamespace::GetLocalName(nsAString & aLocalName)
00196 {
00197     return NS_ERROR_NOT_IMPLEMENTED;
00198 }
00199 
00200 /* boolean hasAttributes (); */
00201 NS_IMETHODIMP nsXPathNamespace::HasAttributes(PRBool *aResult)
00202 {
00203     return NS_ERROR_NOT_IMPLEMENTED;
00204 }
00205 
00206 /* readonly attribute nsIDOMElement ownerElement; */
00207 NS_IMETHODIMP nsXPathNamespace::GetOwnerElement(nsIDOMElement * *aOwnerElement)
00208 {
00209     return NS_ERROR_NOT_IMPLEMENTED;
00210 }