KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > MyJavaBean


1 /* ****************************************************************************
2  * MyJavaBean.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9 package examples;
10
11 /**
12  * Class used in ReturnJavaBeanExample.java.
13  */

14 public class MyJavaBean {
15     String JavaDoc name;
16     String JavaDoc city;
17     String JavaDoc state;
18     String JavaDoc secret;
19
20     public MyJavaBean(String JavaDoc name, String JavaDoc city, String JavaDoc state, String JavaDoc secret) {
21         this.name = name;
22         this.city = city;
23         this.state = state;
24         this.secret = secret;
25     }
26
27     public String JavaDoc getName() { return name; }
28     public String JavaDoc getCity() { return city; }
29     public String JavaDoc getState() { return state; }
30 }
31
Popular Tags