KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > FooObject1


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest;
5
6 import java.io.Serializable JavaDoc;
7
8 /**
9  * @author steve To change the template for this generated type comment go to Window>Preferences>Java>Code
10  * Generation>Code and Comments
11  */

12 public class FooObject1 implements Serializable JavaDoc {
13   private long value = 0;
14   private String JavaDoc name = "Default name";
15   private FooObject1 foo;
16
17   public FooObject1 getFooObject1() {
18     return foo;
19   }
20
21   public void setFooObject1(FooObject1 foo) {
22     this.foo = foo;
23   }
24
25   /**
26    * @return
27    */

28   public String JavaDoc getName() {
29     return name;
30   }
31
32   /**
33    * @return
34    */

35   public long getValue() {
36     return value;
37   }
38
39   /**
40    * @param string
41    */

42   public void setName(String JavaDoc string) {
43     name = string;
44   }
45
46   /**
47    * @param l
48    */

49   public void setValue(long l) {
50     value = l;
51   }
52
53   public String JavaDoc toString() {
54     return "FooObject name:" + name + " value:" + value;
55   }
56 }
57
58
Popular Tags