1 module org.eclipse.swt.internal.mozilla.nsIDOMElement;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 
8 import org.eclipse.swt.internal.mozilla.nsIDOMNode;
9 import org.eclipse.swt.internal.mozilla.nsIDOMNodeList;
10 import org.eclipse.swt.internal.mozilla.nsIDOMAttr;
11 import org.eclipse.swt.internal.mozilla.nsStringAPI;
12 
13 const char[] NS_IDOMELEMENT_IID_STR = "a6cf9078-15b3-11d2-932e-00805f8add32";
14 
15 const nsIID NS_IDOMELEMENT_IID= 
16   {0xa6cf9078, 0x15b3, 0x11d2, 
17     [ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]};
18 
19 interface nsIDOMElement : nsIDOMNode {
20 
21   static const char[] IID_STR = NS_IDOMELEMENT_IID_STR;
22   static const nsIID IID = NS_IDOMELEMENT_IID;
23 
24 extern(System):
25   nsresult GetTagName(nsAString * aTagName);
26   nsresult GetAttribute(nsAString * name, nsAString * _retval);
27   nsresult SetAttribute(nsAString * name, nsAString * value);
28   nsresult RemoveAttribute(nsAString * name);
29   nsresult GetAttributeNode(nsAString * name, nsIDOMAttr *_retval);
30   nsresult SetAttributeNode(nsIDOMAttr newAttr, nsIDOMAttr *_retval);
31   nsresult RemoveAttributeNode(nsIDOMAttr oldAttr, nsIDOMAttr *_retval);
32   nsresult GetElementsByTagName(nsAString * name, nsIDOMNodeList *_retval);
33   nsresult GetAttributeNS(nsAString * namespaceURI, nsAString * localName, nsAString * _retval);
34   nsresult SetAttributeNS(nsAString * namespaceURI, nsAString * qualifiedName, nsAString * value);
35   nsresult RemoveAttributeNS(nsAString * namespaceURI, nsAString * localName);
36   nsresult GetAttributeNodeNS(nsAString * namespaceURI, nsAString * localName, nsIDOMAttr *_retval);
37   nsresult SetAttributeNodeNS(nsIDOMAttr newAttr, nsIDOMAttr *_retval);
38   nsresult GetElementsByTagNameNS(nsAString * namespaceURI, nsAString * localName, nsIDOMNodeList *_retval);
39   nsresult HasAttribute(nsAString * name, PRBool *_retval);
40   nsresult HasAttributeNS(nsAString * namespaceURI, nsAString * localName, PRBool *_retval);
41 
42 }
43