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 Bob Jamison
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 2.1 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 */
25 package org.inkscape.dom;
27 import org.w3c.dom.*;
31 public class ElementImpl extends NodeImpl
32 implements org.w3c.dom.Element
33 {
36 /**
37 * Retrieves an attribute value by name.
38 */
39 public String getAttribute(String name)
40 {
41 return "";
42 }
44 /**
45 * Retrieves an attribute node by name.
46 */
47 public Attr getAttributeNode(String name)
48 {
49 return null;
50 }
52 /**
53 * Retrieves an Attr node by local name and namespace URI.
54 */
55 public Attr getAttributeNodeNS(String namespaceURI, String localName)
56 {
57 return null;
58 }
60 /**
61 * Retrieves an attribute value by local name and namespace URI.
62 */
63 public String getAttributeNS(String namespaceURI, String localName)
64 {
65 return "";
66 }
68 /**
69 * Returns a NodeList of all descendant Elements with a given
70 * tag name, in document order.
71 */
72 public NodeList getElementsByTagName(String name)
73 {
74 return null;
75 }
77 /**
78 * Returns a NodeList of all the descendant Elements with a given
79 * local name and namespace URI in document order.
80 */
81 public NodeList getElementsByTagNameNS(String namespaceURI,
82 String localName)
83 {
84 return null;
85 }
87 /**
88 * The type information associated with this element.
89 */
90 public TypeInfo getSchemaTypeInfo()
91 {
92 return null;
93 }
95 /**
96 * The name of the element.
97 */
98 public String getTagName()
99 {
100 return "";
101 }
103 /**
104 * Returns true when an attribute with a given name is
105 * specified on this element or has a default value, false otherwise.
106 */
107 public boolean hasAttribute(String name)
108 {
109 return false;
110 }
112 /**
113 * Returns true when an attribute with a given local name and
114 * namespace URI is specified on this element or has a default value,
115 * false otherwise.
116 */
117 public boolean hasAttributeNS(String namespaceURI, String localName)
118 {
119 return false;
120 }
122 /**
123 * Removes an attribute by name.
124 */
125 public void removeAttribute(String name)
126 {
127 }
129 /**
130 * Removes the specified attribute node.
131 */
132 public Attr removeAttributeNode(Attr oldAttr)
133 {
134 return null;
135 }
137 /**
138 * Removes an attribute by local name and namespace URI.
139 */
140 public void removeAttributeNS(String namespaceURI, String localName)
141 {
142 }
144 /**
145 * Adds a new attribute.
146 */
147 public void setAttribute(String name, String value)
148 {
149 }
151 /**
152 * Adds a new attribute node.
153 */
154 public Attr setAttributeNode(Attr newAttr)
155 {
156 return null;
157 }
159 /**
160 * Adds a new attribute.
161 */
162 public Attr setAttributeNodeNS(Attr newAttr)
163 {
164 return null;
165 }
167 /**
168 * Adds a new attribute.
169 */
170 public void setAttributeNS(String namespaceURI,
171 String qualifiedName, String value)
172 {
173 }
175 /**
176 * If the parameter isId is true, this method declares the
177 * specified attribute to be a user-determined ID attribute .
178 */
179 public void setIdAttribute(String name, boolean isId)
180 {
181 }
183 /**
184 * If the parameter isId is true, this method declares the
185 * specified attribute to be a user-determined ID attribute .
186 */
187 public void setIdAttributeNode(Attr idAttr, boolean isId)
188 {
189 }
191 /**
192 * If the parameter isId is true, this method declares the specified
193 * attribute to be a user-determined ID attribute .
194 */
195 public void setIdAttributeNS(String namespaceURI,
196 String localName, boolean isId)
197 {
198 }
202 public ElementImpl()
203 {
204 super();
205 }
209 }