01: /*
02: * JBoss, the OpenSource J2EE webOS
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07: package hero.interfaces;
08:
09: import java.io.Serializable;
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 implements Cloneable, Serializable {
18:
19: /**
20: * Returns a copy of itself. Is necessary because this
21: * method is protected within java.lang.Object.
22: *
23: * @return Copy of this instance
24: **/
25: public Object clone() {
26: try {
27: return super .clone();
28: } catch (CloneNotSupportedException cnse) {
29: // This never happens
30: return null;
31: }
32: }
33:
34: }
|