Code

updated spanish.nsh and inkscape.nsi to reflect latest file-changes
[inkscape.git] / trunk / src / bind / java / org / inkscape / dom / ElementImpl.java
1 /**
2  * This is a simple mechanism to bind Inkscape to Java, and thence
3  * to all of the nice things that can be layered upon that.
4  *
5  * Authors:
6  *   Bob Jamison
7  *
8  * Copyright (c) 2007-2008 Inkscape.org
9  *
10  *  This library is free software; you can redistribute it and/or
11  *  modify it under the terms of the GNU Lesser General Public
12  *  License as published by the Free Software Foundation; either
13  *  version 3 of the License, or (at your option) any later version.
14  *
15  *  This library is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  *  Lesser General Public License for more details.
19  *
20  *  You should have received a copy of the GNU Lesser General Public
21  *  License along with this library; if not, write to the Free Software
22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23  *
24  *  Note that these DOM files are implementations of the Java
25  *  interface package found here:
26  *      http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding.html
27  */
29 package org.inkscape.dom;
31 import org.w3c.dom.DOMException;
32 import org.w3c.dom.Attr;
33 import org.w3c.dom.NodeList;
34 import org.w3c.dom.TypeInfo;
39 public class ElementImpl
40        extends NodeImpl
41        implements org.w3c.dom.Element
43 {
45 public native String getTagName();
47 public native String getAttribute(String name);
49 public native void setAttribute(String name,
50                          String value)
51                          throws DOMException;
53 public native void removeAttribute(String name)
54                             throws DOMException;
56 public native Attr getAttributeNode(String name);
58 public native Attr setAttributeNode(Attr newAttr)
59                              throws DOMException;
61 public native Attr removeAttributeNode(Attr oldAttr)
62                                 throws DOMException;
64 public native NodeList getElementsByTagName(String name);
66 public native String getAttributeNS(String namespaceURI,
67                              String localName)
68                              throws DOMException;
70 public native void setAttributeNS(String namespaceURI,
71                            String qualifiedName,
72                            String value)
73                            throws DOMException;
75 public native void removeAttributeNS(String namespaceURI,
76                               String localName)
77                               throws DOMException;
79 public native Attr getAttributeNodeNS(String namespaceURI,
80                                String localName)
81                                throws DOMException;
83 public native Attr setAttributeNodeNS(Attr newAttr)
84                                throws DOMException;
86 public native NodeList getElementsByTagNameNS(String namespaceURI,
87                                        String localName)
88                                        throws DOMException;
90 public native boolean hasAttribute(String name);
92 public native boolean hasAttributeNS(String namespaceURI,
93                               String localName)
94                               throws DOMException;
96 public native TypeInfo getSchemaTypeInfo();
98 public native void setIdAttribute(String name,
99                            boolean isId)
100                            throws DOMException;
102 public native void setIdAttributeNS(String namespaceURI,
103                              String localName,
104                              boolean isId)
105                              throws DOMException;
107 public native void setIdAttributeNode(Attr idAttr,
108                                boolean isId)
109                                throws DOMException;