KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > interfaces > AbstractData


1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */

7 package hero.interfaces;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * Base Data Container for all other Value Objects
13  *
14  * @author Andreas Schaefer
15  * @version $Revision: 1.1 $
16  **/

17 public abstract class AbstractData
18    implements Cloneable JavaDoc, Serializable JavaDoc
19 {
20
21    /**
22     * Returns a copy of itself. Is necessary because this
23     * method is protected within java.lang.Object.
24     *
25     * @return Copy of this instance
26     **/

27    public Object JavaDoc clone()
28    {
29       try
30       {
31          return super.clone();
32       }
33       catch( CloneNotSupportedException JavaDoc cnse )
34       {
35          // This never happens
36
return null;
37       }
38    }
39
40 }
41
Popular Tags