nsIDOMNode.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/core/nsIDOMNode.idl
  3. */
  4. #ifndef __gen_nsIDOMNode_h__
  5. #define __gen_nsIDOMNode_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIDOMNode */
  14. #define NS_IDOMNODE_IID_STR "a6cf907c-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMNODE_IID \
  16. {0xa6cf907c, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMNode : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNODE_IID)
  21. /**
  22. * The nsIDOMNode interface is the primary datatype for the entire
  23. * Document Object Model.
  24. * It represents a single node in the document tree.
  25. *
  26. * For more information on this interface please see
  27. * http://www.w3.org/TR/DOM-Level-2-Core/
  28. *
  29. * @status FROZEN
  30. */
  31. enum { ELEMENT_NODE = 1U };
  32. enum { ATTRIBUTE_NODE = 2U };
  33. enum { TEXT_NODE = 3U };
  34. enum { CDATA_SECTION_NODE = 4U };
  35. enum { ENTITY_REFERENCE_NODE = 5U };
  36. enum { ENTITY_NODE = 6U };
  37. enum { PROCESSING_INSTRUCTION_NODE = 7U };
  38. enum { COMMENT_NODE = 8U };
  39. enum { DOCUMENT_NODE = 9U };
  40. enum { DOCUMENT_TYPE_NODE = 10U };
  41. enum { DOCUMENT_FRAGMENT_NODE = 11U };
  42. enum { NOTATION_NODE = 12U };
  43. /* readonly attribute DOMString nodeName; */
  44. NS_IMETHOD GetNodeName(nsAString & aNodeName) = 0;
  45. /* attribute DOMString nodeValue; */
  46. NS_IMETHOD GetNodeValue(nsAString & aNodeValue) = 0;
  47. NS_IMETHOD SetNodeValue(const nsAString & aNodeValue) = 0;
  48. /* readonly attribute unsigned short nodeType; */
  49. NS_IMETHOD GetNodeType(PRUint16 *aNodeType) = 0;
  50. /* readonly attribute nsIDOMNode parentNode; */
  51. NS_IMETHOD GetParentNode(nsIDOMNode * *aParentNode) = 0;
  52. /* readonly attribute nsIDOMNodeList childNodes; */
  53. NS_IMETHOD GetChildNodes(nsIDOMNodeList * *aChildNodes) = 0;
  54. /* readonly attribute nsIDOMNode firstChild; */
  55. NS_IMETHOD GetFirstChild(nsIDOMNode * *aFirstChild) = 0;
  56. /* readonly attribute nsIDOMNode lastChild; */
  57. NS_IMETHOD GetLastChild(nsIDOMNode * *aLastChild) = 0;
  58. /* readonly attribute nsIDOMNode previousSibling; */
  59. NS_IMETHOD GetPreviousSibling(nsIDOMNode * *aPreviousSibling) = 0;
  60. /* readonly attribute nsIDOMNode nextSibling; */
  61. NS_IMETHOD GetNextSibling(nsIDOMNode * *aNextSibling) = 0;
  62. /* readonly attribute nsIDOMNamedNodeMap attributes; */
  63. NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap * *aAttributes) = 0;
  64. /* readonly attribute nsIDOMDocument ownerDocument; */
  65. NS_IMETHOD GetOwnerDocument(nsIDOMDocument * *aOwnerDocument) = 0;
  66. /* nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild) raises (DOMException); */
  67. NS_IMETHOD InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval) = 0;
  68. /* nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild) raises (DOMException); */
  69. NS_IMETHOD ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval) = 0;
  70. /* nsIDOMNode removeChild (in nsIDOMNode oldChild) raises (DOMException); */
  71. NS_IMETHOD RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval) = 0;
  72. /* nsIDOMNode appendChild (in nsIDOMNode newChild) raises (DOMException); */
  73. NS_IMETHOD AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval) = 0;
  74. /* boolean hasChildNodes (); */
  75. NS_IMETHOD HasChildNodes(PRBool *_retval) = 0;
  76. /* nsIDOMNode cloneNode (in boolean deep); */
  77. NS_IMETHOD CloneNode(PRBool deep, nsIDOMNode **_retval) = 0;
  78. /* void normalize (); */
  79. NS_IMETHOD Normalize(void) = 0;
  80. /* boolean isSupported (in DOMString feature, in DOMString version); */
  81. NS_IMETHOD IsSupported(const nsAString & feature, const nsAString & version, PRBool *_retval) = 0;
  82. /* readonly attribute DOMString namespaceURI; */
  83. NS_IMETHOD GetNamespaceURI(nsAString & aNamespaceURI) = 0;
  84. /* attribute DOMString prefix; */
  85. NS_IMETHOD GetPrefix(nsAString & aPrefix) = 0;
  86. NS_IMETHOD SetPrefix(const nsAString & aPrefix) = 0;
  87. /* readonly attribute DOMString localName; */
  88. NS_IMETHOD GetLocalName(nsAString & aLocalName) = 0;
  89. /* boolean hasAttributes (); */
  90. NS_IMETHOD HasAttributes(PRBool *_retval) = 0;
  91. };
  92. /* Use this macro when declaring classes that implement this interface. */
  93. #define NS_DECL_NSIDOMNODE \
  94. NS_IMETHOD GetNodeName(nsAString & aNodeName); \
  95. NS_IMETHOD GetNodeValue(nsAString & aNodeValue); \
  96. NS_IMETHOD SetNodeValue(const nsAString & aNodeValue); \
  97. NS_IMETHOD GetNodeType(PRUint16 *aNodeType); \
  98. NS_IMETHOD GetParentNode(nsIDOMNode * *aParentNode); \
  99. NS_IMETHOD GetChildNodes(nsIDOMNodeList * *aChildNodes); \
  100. NS_IMETHOD GetFirstChild(nsIDOMNode * *aFirstChild); \
  101. NS_IMETHOD GetLastChild(nsIDOMNode * *aLastChild); \
  102. NS_IMETHOD GetPreviousSibling(nsIDOMNode * *aPreviousSibling); \
  103. NS_IMETHOD GetNextSibling(nsIDOMNode * *aNextSibling); \
  104. NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap * *aAttributes); \
  105. NS_IMETHOD GetOwnerDocument(nsIDOMDocument * *aOwnerDocument); \
  106. NS_IMETHOD InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval); \
  107. NS_IMETHOD ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval); \
  108. NS_IMETHOD RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval); \
  109. NS_IMETHOD AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval); \
  110. NS_IMETHOD HasChildNodes(PRBool *_retval); \
  111. NS_IMETHOD CloneNode(PRBool deep, nsIDOMNode **_retval); \
  112. NS_IMETHOD Normalize(void); \
  113. NS_IMETHOD IsSupported(const nsAString & feature, const nsAString & version, PRBool *_retval); \
  114. NS_IMETHOD GetNamespaceURI(nsAString & aNamespaceURI); \
  115. NS_IMETHOD GetPrefix(nsAString & aPrefix); \
  116. NS_IMETHOD SetPrefix(const nsAString & aPrefix); \
  117. NS_IMETHOD GetLocalName(nsAString & aLocalName); \
  118. NS_IMETHOD HasAttributes(PRBool *_retval);
  119. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  120. #define NS_FORWARD_NSIDOMNODE(_to) \
  121. NS_IMETHOD GetNodeName(nsAString & aNodeName) { return _to GetNodeName(aNodeName); } \
  122. NS_IMETHOD GetNodeValue(nsAString & aNodeValue) { return _to GetNodeValue(aNodeValue); } \
  123. NS_IMETHOD SetNodeValue(const nsAString & aNodeValue) { return _to SetNodeValue(aNodeValue); } \
  124. NS_IMETHOD GetNodeType(PRUint16 *aNodeType) { return _to GetNodeType(aNodeType); } \
  125. NS_IMETHOD GetParentNode(nsIDOMNode * *aParentNode) { return _to GetParentNode(aParentNode); } \
  126. NS_IMETHOD GetChildNodes(nsIDOMNodeList * *aChildNodes) { return _to GetChildNodes(aChildNodes); } \
  127. NS_IMETHOD GetFirstChild(nsIDOMNode * *aFirstChild) { return _to GetFirstChild(aFirstChild); } \
  128. NS_IMETHOD GetLastChild(nsIDOMNode * *aLastChild) { return _to GetLastChild(aLastChild); } \
  129. NS_IMETHOD GetPreviousSibling(nsIDOMNode * *aPreviousSibling) { return _to GetPreviousSibling(aPreviousSibling); } \
  130. NS_IMETHOD GetNextSibling(nsIDOMNode * *aNextSibling) { return _to GetNextSibling(aNextSibling); } \
  131. NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap * *aAttributes) { return _to GetAttributes(aAttributes); } \
  132. NS_IMETHOD GetOwnerDocument(nsIDOMDocument * *aOwnerDocument) { return _to GetOwnerDocument(aOwnerDocument); } \
  133. NS_IMETHOD InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval) { return _to InsertBefore(newChild, refChild, _retval); } \
  134. NS_IMETHOD ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval) { return _to ReplaceChild(newChild, oldChild, _retval); } \
  135. NS_IMETHOD RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval) { return _to RemoveChild(oldChild, _retval); } \
  136. NS_IMETHOD AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval) { return _to AppendChild(newChild, _retval); } \
  137. NS_IMETHOD HasChildNodes(PRBool *_retval) { return _to HasChildNodes(_retval); } \
  138. NS_IMETHOD CloneNode(PRBool deep, nsIDOMNode **_retval) { return _to CloneNode(deep, _retval); } \
  139. NS_IMETHOD Normalize(void) { return _to Normalize(); } \
  140. NS_IMETHOD IsSupported(const nsAString & feature, const nsAString & version, PRBool *_retval) { return _to IsSupported(feature, version, _retval); } \
  141. NS_IMETHOD GetNamespaceURI(nsAString & aNamespaceURI) { return _to GetNamespaceURI(aNamespaceURI); } \
  142. NS_IMETHOD GetPrefix(nsAString & aPrefix) { return _to GetPrefix(aPrefix); } \
  143. NS_IMETHOD SetPrefix(const nsAString & aPrefix) { return _to SetPrefix(aPrefix); } \
  144. NS_IMETHOD GetLocalName(nsAString & aLocalName) { return _to GetLocalName(aLocalName); } \
  145. NS_IMETHOD HasAttributes(PRBool *_retval) { return _to HasAttributes(_retval); }
  146. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  147. #define NS_FORWARD_SAFE_NSIDOMNODE(_to) \
  148. NS_IMETHOD GetNodeName(nsAString & aNodeName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeName(aNodeName); } \
  149. NS_IMETHOD GetNodeValue(nsAString & aNodeValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeValue(aNodeValue); } \
  150. NS_IMETHOD SetNodeValue(const nsAString & aNodeValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNodeValue(aNodeValue); } \
  151. NS_IMETHOD GetNodeType(PRUint16 *aNodeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeType(aNodeType); } \
  152. NS_IMETHOD GetParentNode(nsIDOMNode * *aParentNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentNode(aParentNode); } \
  153. NS_IMETHOD GetChildNodes(nsIDOMNodeList * *aChildNodes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildNodes(aChildNodes); } \
  154. NS_IMETHOD GetFirstChild(nsIDOMNode * *aFirstChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstChild(aFirstChild); } \
  155. NS_IMETHOD GetLastChild(nsIDOMNode * *aLastChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChild(aLastChild); } \
  156. NS_IMETHOD GetPreviousSibling(nsIDOMNode * *aPreviousSibling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousSibling(aPreviousSibling); } \
  157. NS_IMETHOD GetNextSibling(nsIDOMNode * *aNextSibling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextSibling(aNextSibling); } \
  158. NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap * *aAttributes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributes(aAttributes); } \
  159. NS_IMETHOD GetOwnerDocument(nsIDOMDocument * *aOwnerDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerDocument(aOwnerDocument); } \
  160. NS_IMETHOD InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertBefore(newChild, refChild, _retval); } \
  161. NS_IMETHOD ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceChild(newChild, oldChild, _retval); } \
  162. NS_IMETHOD RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveChild(oldChild, _retval); } \
  163. NS_IMETHOD AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendChild(newChild, _retval); } \
  164. NS_IMETHOD HasChildNodes(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasChildNodes(_retval); } \
  165. NS_IMETHOD CloneNode(PRBool deep, nsIDOMNode **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneNode(deep, _retval); } \
  166. NS_IMETHOD Normalize(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Normalize(); } \
  167. NS_IMETHOD IsSupported(const nsAString & feature, const nsAString & version, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSupported(feature, version, _retval); } \
  168. NS_IMETHOD GetNamespaceURI(nsAString & aNamespaceURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamespaceURI(aNamespaceURI); } \
  169. NS_IMETHOD GetPrefix(nsAString & aPrefix) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrefix(aPrefix); } \
  170. NS_IMETHOD SetPrefix(const nsAString & aPrefix) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPrefix(aPrefix); } \
  171. NS_IMETHOD GetLocalName(nsAString & aLocalName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalName(aLocalName); } \
  172. NS_IMETHOD HasAttributes(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasAttributes(_retval); }
  173. #if 0
  174. /* Use the code below as a template for the implementation class for this interface. */
  175. /* Header file */
  176. class nsDOMNode : public nsIDOMNode
  177. {
  178. public:
  179. NS_DECL_ISUPPORTS
  180. NS_DECL_NSIDOMNODE
  181. nsDOMNode();
  182. private:
  183. ~nsDOMNode();
  184. protected:
  185. /* additional members */
  186. };
  187. /* Implementation file */
  188. NS_IMPL_ISUPPORTS1(nsDOMNode, nsIDOMNode)
  189. nsDOMNode::nsDOMNode()
  190. {
  191. /* member initializers and constructor code */
  192. }
  193. nsDOMNode::~nsDOMNode()
  194. {
  195. /* destructor code */
  196. }
  197. /* readonly attribute DOMString nodeName; */
  198. NS_IMETHODIMP nsDOMNode::GetNodeName(nsAString & aNodeName)
  199. {
  200. return NS_ERROR_NOT_IMPLEMENTED;
  201. }
  202. /* attribute DOMString nodeValue; */
  203. NS_IMETHODIMP nsDOMNode::GetNodeValue(nsAString & aNodeValue)
  204. {
  205. return NS_ERROR_NOT_IMPLEMENTED;
  206. }
  207. NS_IMETHODIMP nsDOMNode::SetNodeValue(const nsAString & aNodeValue)
  208. {
  209. return NS_ERROR_NOT_IMPLEMENTED;
  210. }
  211. /* readonly attribute unsigned short nodeType; */
  212. NS_IMETHODIMP nsDOMNode::GetNodeType(PRUint16 *aNodeType)
  213. {
  214. return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216. /* readonly attribute nsIDOMNode parentNode; */
  217. NS_IMETHODIMP nsDOMNode::GetParentNode(nsIDOMNode * *aParentNode)
  218. {
  219. return NS_ERROR_NOT_IMPLEMENTED;
  220. }
  221. /* readonly attribute nsIDOMNodeList childNodes; */
  222. NS_IMETHODIMP nsDOMNode::GetChildNodes(nsIDOMNodeList * *aChildNodes)
  223. {
  224. return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226. /* readonly attribute nsIDOMNode firstChild; */
  227. NS_IMETHODIMP nsDOMNode::GetFirstChild(nsIDOMNode * *aFirstChild)
  228. {
  229. return NS_ERROR_NOT_IMPLEMENTED;
  230. }
  231. /* readonly attribute nsIDOMNode lastChild; */
  232. NS_IMETHODIMP nsDOMNode::GetLastChild(nsIDOMNode * *aLastChild)
  233. {
  234. return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236. /* readonly attribute nsIDOMNode previousSibling; */
  237. NS_IMETHODIMP nsDOMNode::GetPreviousSibling(nsIDOMNode * *aPreviousSibling)
  238. {
  239. return NS_ERROR_NOT_IMPLEMENTED;
  240. }
  241. /* readonly attribute nsIDOMNode nextSibling; */
  242. NS_IMETHODIMP nsDOMNode::GetNextSibling(nsIDOMNode * *aNextSibling)
  243. {
  244. return NS_ERROR_NOT_IMPLEMENTED;
  245. }
  246. /* readonly attribute nsIDOMNamedNodeMap attributes; */
  247. NS_IMETHODIMP nsDOMNode::GetAttributes(nsIDOMNamedNodeMap * *aAttributes)
  248. {
  249. return NS_ERROR_NOT_IMPLEMENTED;
  250. }
  251. /* readonly attribute nsIDOMDocument ownerDocument; */
  252. NS_IMETHODIMP nsDOMNode::GetOwnerDocument(nsIDOMDocument * *aOwnerDocument)
  253. {
  254. return NS_ERROR_NOT_IMPLEMENTED;
  255. }
  256. /* nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild) raises (DOMException); */
  257. NS_IMETHODIMP nsDOMNode::InsertBefore(nsIDOMNode *newChild, nsIDOMNode *refChild, nsIDOMNode **_retval)
  258. {
  259. return NS_ERROR_NOT_IMPLEMENTED;
  260. }
  261. /* nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild) raises (DOMException); */
  262. NS_IMETHODIMP nsDOMNode::ReplaceChild(nsIDOMNode *newChild, nsIDOMNode *oldChild, nsIDOMNode **_retval)
  263. {
  264. return NS_ERROR_NOT_IMPLEMENTED;
  265. }
  266. /* nsIDOMNode removeChild (in nsIDOMNode oldChild) raises (DOMException); */
  267. NS_IMETHODIMP nsDOMNode::RemoveChild(nsIDOMNode *oldChild, nsIDOMNode **_retval)
  268. {
  269. return NS_ERROR_NOT_IMPLEMENTED;
  270. }
  271. /* nsIDOMNode appendChild (in nsIDOMNode newChild) raises (DOMException); */
  272. NS_IMETHODIMP nsDOMNode::AppendChild(nsIDOMNode *newChild, nsIDOMNode **_retval)
  273. {
  274. return NS_ERROR_NOT_IMPLEMENTED;
  275. }
  276. /* boolean hasChildNodes (); */
  277. NS_IMETHODIMP nsDOMNode::HasChildNodes(PRBool *_retval)
  278. {
  279. return NS_ERROR_NOT_IMPLEMENTED;
  280. }
  281. /* nsIDOMNode cloneNode (in boolean deep); */
  282. NS_IMETHODIMP nsDOMNode::CloneNode(PRBool deep, nsIDOMNode **_retval)
  283. {
  284. return NS_ERROR_NOT_IMPLEMENTED;
  285. }
  286. /* void normalize (); */
  287. NS_IMETHODIMP nsDOMNode::Normalize()
  288. {
  289. return NS_ERROR_NOT_IMPLEMENTED;
  290. }
  291. /* boolean isSupported (in DOMString feature, in DOMString version); */
  292. NS_IMETHODIMP nsDOMNode::IsSupported(const nsAString & feature, const nsAString & version, PRBool *_retval)
  293. {
  294. return NS_ERROR_NOT_IMPLEMENTED;
  295. }
  296. /* readonly attribute DOMString namespaceURI; */
  297. NS_IMETHODIMP nsDOMNode::GetNamespaceURI(nsAString & aNamespaceURI)
  298. {
  299. return NS_ERROR_NOT_IMPLEMENTED;
  300. }
  301. /* attribute DOMString prefix; */
  302. NS_IMETHODIMP nsDOMNode::GetPrefix(nsAString & aPrefix)
  303. {
  304. return NS_ERROR_NOT_IMPLEMENTED;
  305. }
  306. NS_IMETHODIMP nsDOMNode::SetPrefix(const nsAString & aPrefix)
  307. {
  308. return NS_ERROR_NOT_IMPLEMENTED;
  309. }
  310. /* readonly attribute DOMString localName; */
  311. NS_IMETHODIMP nsDOMNode::GetLocalName(nsAString & aLocalName)
  312. {
  313. return NS_ERROR_NOT_IMPLEMENTED;
  314. }
  315. /* boolean hasAttributes (); */
  316. NS_IMETHODIMP nsDOMNode::HasAttributes(PRBool *_retval)
  317. {
  318. return NS_ERROR_NOT_IMPLEMENTED;
  319. }
  320. /* End of implementation class template. */
  321. #endif
  322. #endif /* __gen_nsIDOMNode_h__ */