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;
29 /**
30 * This is the base Java class upon which
31 * all of the DOM classes are rooted
32 */
33 public class DOMBase
34 {
36 protected long _pointer;
38 /**
39 * @see dobinding.cpp: DOMBase_construct()
40 */
41 protected native void construct();
43 /**
44 * @see dobinding.cpp: DOMBase_destruct()
45 */
46 protected native void destruct();
50 /**
51 * Overload Object.finalize() so that we
52 * can perform proper cleanup.
53 */
54 protected void finalize()
55 {
56 destruct();
57 }
60 public DOMBase()
61 {
62 construct();
63 _pointer = 0;
64 }
66 }
67 //########################################################################
68 //# E N D O F F I L E
69 //########################################################################