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 DOMLocatorImpl
32 extends DOMBase
33 implements org.w3c.dom.DOMLocator
34 {
37 /**
38 * The byte offset into the input source this locator is pointing to
39 * or -1 if there is no byte offset available.
40 */
41 public int getByteOffset()
42 {
43 return 0;
44 }
47 /**
48 * The column number this locator is pointing to,
49 * or -1 if there is no column number available.
50 */
51 public int getColumnNumber()
52 {
53 return 0;
54 }
57 /**
58 * The line number this locator is pointing to, or -1 if
59 * there is no column number available.
60 */
61 public int getLineNumber()
62 {
63 return 0;
64 }
67 /**
68 * The node this locator is pointing to, or null if no node is available.
69 */
70 public Node getRelatedNode()
71 {
72 return null;
73 }
76 /**
77 * The URI this locator is pointing to, or null if no URI is available.
78 */
79 public String getUri()
80 {
81 return "";
82 }
85 /**
86 * The UTF-16, as defined in [Unicode] and
87 * Amendment 1 of [ISO/IEC 10646], offset into the input source
88 * this locator is pointing to or -1 if there is no UTF-16
89 * offset available.
90 */
91 public int getUtf16Offset()
92 {
93 return 0;
94 }
98 public DOMLocatorImpl()
99 {
100 super();
101 }
103 }