KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > opensymphony > webwork > sandbox > Person


1 package com.opensymphony.webwork.sandbox;
2
3 /**
4  * User: plightbo
5  * Date: Aug 10, 2005
6  * Time: 7:56:59 PM
7  */

8 public class Person {
9     String JavaDoc id;
10     String JavaDoc name;
11
12     public Person() {
13     }
14
15     public Person(String JavaDoc id, String JavaDoc name) {
16         this.id = id;
17         this.name = name;
18     }
19
20     public String JavaDoc getId() {
21         return id;
22     }
23
24     public void setId(String JavaDoc id) {
25         this.id = id;
26     }
27
28     public String JavaDoc getName() {
29         return name;
30     }
31
32     public void setName(String JavaDoc name) {
33         this.name = name;
34     }
35 }
36
Popular Tags