KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > javaee > blueprints > autocomplete > SessionBean


1 /* Copyright 2005 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html
2  */

3 package com.sun.javaee.blueprints.autocomplete;
4
5
6 /**
7  * This bean carries session state, such as the address entered by the user
8  *
9  * @author Tor Norbye
10  * @author Mark Basler
11  */

12 public class SessionBean {
13     private String JavaDoc name;
14     private String JavaDoc street;
15     private String JavaDoc city;
16     private String JavaDoc state;
17     private String JavaDoc zip;
18     private final boolean bDebug=false;
19     
20     public SessionBean() {
21     }
22
23     public void setName(String JavaDoc name) {
24         if(bDebug) System.out.println("Setting name - " + name);
25         this.name = name;
26     }
27
28     public String JavaDoc getName() {
29         return name;
30     }
31
32     public void setStreet(String JavaDoc street) {
33         if(bDebug) System.out.println("Setting street - " + street);
34         this.street = street;
35     }
36
37     public String JavaDoc getStreet() {
38         return street;
39     }
40
41     public void setCity(String JavaDoc city) {
42         if(bDebug) System.out.println("Setting City - " + city);
43         this.city = city;
44     }
45
46     public String JavaDoc getCity() {
47         return city;
48     }
49
50     public void setState(String JavaDoc state) {
51         if(bDebug) System.out.println("Setting state - " + state);
52         this.state = state;
53     }
54
55     public String JavaDoc getState() {
56         return state;
57     }
58
59     public void setZip(String JavaDoc zip) {
60         if(bDebug) System.out.println("Setting zip - " + zip);
61         this.zip = zip;
62     }
63
64     public String JavaDoc getZip() {
65         return zip;
66     }
67 }
68
Popular Tags