KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > DxLib > DxObject


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: DxObject.java,v 1.9 2001/01/23 15:19:35 daniela Exp $
8

9 package org.ozoneDB.DxLib;
10
11
12 public class DxObject implements DxCompatible {
13     
14     final static long serialVersionUID = 1L;
15     
16     
17     /**
18      * Constructor
19      */

20     public DxObject() {
21     }
22     
23     
24     /**
25      * liefert eine kopie des objektes;
26      * sollte von subclasses ueberschrieben werden;
27      */

28     public Object JavaDoc clone() {
29         try {
30             return super.clone();
31         } catch (Exception JavaDoc e) {
32             throw new RuntimeException JavaDoc( e.toString() );
33         }
34     }
35     
36     
37     /**
38      * true, wenn receiver echt kleiner als obj
39      */

40     public boolean isLess( DxCompatible obj ) {
41         throw new RuntimeException JavaDoc( "isLess(): subclass responsibility" );
42     }
43     
44 }
45
Popular Tags