~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/bind/java/org/inkscape/dom/NodeImpl.java

  • Committer: ishmal
  • Date: 2008-03-08 22:50:44 UTC
  • Revision ID: ishmal@users.sourceforge.net-20080308225044-8uoavse4zlq2lu7w
First commit for java binding

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
24
 
 
25
package org.inkscape.dom;
 
26
 
 
27
import org.w3c.dom.*;
 
28
 
 
29
 
 
30
 
 
31
public class NodeImpl extends DOMBase
 
32
                      implements org.w3c.dom.Node
 
33
{
 
34
 
 
35
/**
 
36
 * Adds the node newChild to the end of the list of children of this node.
 
37
 */
 
38
public Node appendChild(Node newChild)
 
39
{
 
40
    return null;
 
41
}
 
42
 
 
43
 
 
44
/**
 
45
 * Returns a duplicate of this node, i.e., serves as a generic copy
 
46
 *  constructor for nodes.
 
47
 */
 
48
public Node cloneNode(boolean deep)
 
49
{
 
50
    return null;
 
51
}
 
52
 
 
53
/**
 
54
 * Compares the reference node, i.e.
 
55
 */
 
56
public short compareDocumentPosition(Node other)
 
57
{
 
58
    return 0;
 
59
}
 
60
 
 
61
/**
 
62
 * A NamedNodeMap containing the attributes of this node (if it is
 
63
 *  an Element) or null otherwise.
 
64
 */
 
65
public NamedNodeMap getAttributes()
 
66
{
 
67
    return null;
 
68
}
 
69
 
 
70
/**
 
71
 * The absolute base URI of this node or null if the
 
72
 *  implementation wasn't able to obtain an absolute URI.
 
73
 */
 
74
public String getBaseURI()
 
75
{
 
76
    return "";
 
77
}
 
78
 
 
79
/**
 
80
 * A NodeList that contains all children of this node.
 
81
 */
 
82
public NodeList getChildNodes()
 
83
{
 
84
    return null;
 
85
}
 
86
 
 
87
/**
 
88
 * This method returns a specialized object which implements the
 
89
 * specialized APIs of the specified feature and version, as specified in .
 
90
 */
 
91
public Object getFeature(String feature, String version)
 
92
{
 
93
    return null;
 
94
}
 
95
 
 
96
/**
 
97
 * The first child of this node.
 
98
 */
 
99
public Node getFirstChild()
 
100
{
 
101
    return null;
 
102
}
 
103
 
 
104
/**
 
105
 * The last child of this node.
 
106
 */
 
107
public Node getLastChild()
 
108
{
 
109
    return null;
 
110
}
 
111
 
 
112
/**
 
113
 * Returns the local part of the qualified name of this node.
 
114
 */
 
115
public String getLocalName()
 
116
{
 
117
    return "";
 
118
}
 
119
 
 
120
/**
 
121
 * The namespace URI of this node, or null if it is unspecified (see ).
 
122
 */
 
123
public String getNamespaceURI()
 
124
{
 
125
    return "";
 
126
}
 
127
 
 
128
/**
 
129
 * The node immediately following this node.
 
130
 */
 
131
public Node getNextSibling()
 
132
{
 
133
    return null;
 
134
}
 
135
 
 
136
/**
 
137
 * The name of this node, depending on its type; see the table above.
 
138
 */
 
139
public String getNodeName()
 
140
{
 
141
    return "";
 
142
}
 
143
 
 
144
/**
 
145
 * A code representing the type of the underlying object,
 
146
 *  as defined above.
 
147
 */
 
148
public short getNodeType()
 
149
{
 
150
    return 0;
 
151
}
 
152
 
 
153
/**
 
154
 * The value of this node, depending on its type; see the table above.
 
155
 */
 
156
public String getNodeValue()
 
157
{
 
158
    return "";
 
159
}
 
160
 
 
161
/**
 
162
 * The Document object associated with this node.
 
163
 */
 
164
public Document getOwnerDocument()
 
165
{
 
166
    return null;
 
167
}
 
168
 
 
169
/**
 
170
 * The parent of this node.
 
171
 */
 
172
public Node getParentNode()
 
173
{
 
174
    return null;
 
175
}
 
176
 
 
177
/**
 
178
 * The namespace prefix of this node, or null if it is unspecified.
 
179
 */
 
180
public String getPrefix()
 
181
{
 
182
    return "";
 
183
}
 
184
 
 
185
/**
 
186
 * The node immediately preceding this node.
 
187
 */
 
188
public Node getPreviousSibling()
 
189
{
 
190
    return null;
 
191
}
 
192
 
 
193
/**
 
194
 * This attribute returns the text content of this node
 
195
 *  and its descendants.
 
196
 */
 
197
public String getTextContent()
 
198
{
 
199
    return "";
 
200
}
 
201
 
 
202
/**
 
203
 * Retrieves the object associated to a key on a this node.
 
204
 */
 
205
public Object getUserData(String key)
 
206
{
 
207
    return null;
 
208
}
 
209
 
 
210
/**
 
211
 * Returns whether this node (if it is an element) has any attributes.
 
212
 */
 
213
public boolean hasAttributes()
 
214
{
 
215
    return false;
 
216
}
 
217
 
 
218
/**
 
219
 * Returns whether this node has any children.
 
220
 */
 
221
public boolean hasChildNodes()
 
222
{
 
223
    return false;
 
224
}
 
225
 
 
226
/**
 
227
 * Inserts the node newChild before the existing child node refChild.
 
228
 */
 
229
public Node insertBefore(Node newChild, Node refChild)
 
230
{
 
231
    return null;
 
232
}
 
233
 
 
234
/**
 
235
 * This method checks if the specified namespaceURI is the
 
236
 *  default namespace or not.
 
237
 */
 
238
public boolean isDefaultNamespace(String namespaceURI)
 
239
{
 
240
    return false;
 
241
}
 
242
 
 
243
/**
 
244
 * Tests whether two nodes are equal.
 
245
 */
 
246
public boolean isEqualNode(Node arg)
 
247
{
 
248
    return false;
 
249
}
 
250
 
 
251
/**
 
252
 * Returns whether this node is the same node as the given one.
 
253
 */
 
254
public boolean isSameNode(Node other)
 
255
{
 
256
    return false;
 
257
}
 
258
 
 
259
/**
 
260
 * Tests whether the DOM implementation implements a specific feature
 
261
 *  and that feature is supported by this node, as specified in .
 
262
 */
 
263
public boolean isSupported(String feature, String version)
 
264
{
 
265
    return false;
 
266
}
 
267
 
 
268
/**
 
269
 * Look up the namespace URI associated to the given prefix,
 
270
 *  starting from this node.
 
271
 */
 
272
public String lookupNamespaceURI(String prefix)
 
273
{
 
274
    return "";
 
275
}
 
276
 
 
277
/**
 
278
 * Look up the prefix associated to the given namespace URI, starting
 
279
 *  from this node.
 
280
 */
 
281
public String lookupPrefix(String namespaceURI)
 
282
{
 
283
    return "";
 
284
}
 
285
 
 
286
/**
 
287
 * Puts all Text nodes in the full depth of the sub-tree underneath
 
288
 *  this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.
 
289
 */
 
290
public void normalize()
 
291
{
 
292
}
 
293
 
 
294
/**
 
295
 * Removes the child node indicated by oldChild from the list of
 
296
 *  children, and returns it.
 
297
 */
 
298
public Node removeChild(Node oldChild)
 
299
{
 
300
    return null;
 
301
}
 
302
 
 
303
/**
 
304
 * Replaces the child node oldChild with newChild in the list of
 
305
 *  children, and returns the oldChild node.
 
306
 */
 
307
public Node replaceChild(Node newChild, Node oldChild)
 
308
{
 
309
    return null;
 
310
}
 
311
 
 
312
/**
 
313
 * The value of this node, depending on its type; see the table above.
 
314
 */
 
315
public void setNodeValue(String nodeValue)
 
316
{
 
317
}
 
318
 
 
319
/**
 
320
 * The namespace prefix of this node, or null if it is unspecified.
 
321
 */
 
322
public void setPrefix(String prefix)
 
323
{
 
324
}
 
325
 
 
326
/**
 
327
 * This attribute returns the text content of this node and
 
328
 *  its descendants.
 
329
 */
 
330
public void setTextContent(String textContent)
 
331
{
 
332
}
 
333
 
 
334
/**
 
335
 * Associate an object to a key on this node.
 
336
 */
 
337
public Object setUserData(String key, Object data, UserDataHandler handler)
 
338
{
 
339
    return null;
 
340
}
 
341
 
 
342
 
 
343
public NodeImpl()
 
344
{
 
345
    super();
 
346
}
 
347
 
 
348
 
 
349
 
 
350
}