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 extends org.inkscape.cmn.BaseObject
35 {
37 /**
38 * @see dobinding.cpp: DOMBase_construct().
39 *
40 * Overloaded from BaseObject so that we can do 'special' construction
41 */
42 protected native void construct();
44 /**
45 * @see dobinding.cpp: DOMBase_destruct()
46 *
47 * Overloaded from BaseObject so that we can do 'special' destruction
48 */
49 protected native void destruct();
53 /**
54 * Overload Object.finalize() so that we
55 * can perform proper cleanup.
56 */
57 protected void finalize()
58 {
59 destruct();
60 }
63 public DOMBase()
64 {
65 construct();
66 }
68 }
69 //########################################################################
70 //# E N D O F F I L E
71 //########################################################################