KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > betwixt > schema > CustomerBean


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17
18 package org.apache.commons.betwixt.schema;
19
20 /**
21  * @author <a HREF='http://jakarta.apache.org/'>Jakarta Commons Team</a>
22  * @version $Revision: 1.2 $
23  */

24 public class CustomerBean {
25     
26     private String JavaDoc code;
27     private String JavaDoc name;
28     private String JavaDoc street;
29     private String JavaDoc town;
30     private String JavaDoc country;
31     private String JavaDoc postcode;
32     
33     public CustomerBean () {}
34     
35     public CustomerBean(String JavaDoc code, String JavaDoc name, String JavaDoc street,
36                         String JavaDoc town, String JavaDoc country, String JavaDoc postcode) {
37         setCode(code);
38         setName(name);
39         setStreet(street);
40         setTown(town);
41         setPostcode(postcode);
42         setCountry(country);
43     }
44
45     public String JavaDoc getCode() {
46         return code;
47     }
48
49
50     public String JavaDoc getCountry() {
51         return country;
52     }
53
54
55     public String JavaDoc getName() {
56         return name;
57     }
58
59     public String JavaDoc getPostcode() {
60         return postcode;
61     }
62
63     public String JavaDoc getStreet() {
64         return street;
65     }
66
67     public String JavaDoc getTown() {
68         return town;
69     }
70
71     public void setCode(String JavaDoc string) {
72         code = string;
73     }
74
75     public void setCountry(String JavaDoc string) {
76         country = string;
77     }
78
79     public void setName(String JavaDoc string) {
80         name = string;
81     }
82
83     public void setPostcode(String JavaDoc string) {
84         postcode = string;
85     }
86
87     public void setStreet(String JavaDoc string) {
88         street = string;
89     }
90
91     public void setTown(String JavaDoc string) {
92         town = string;
93     }
94
95 }
96
Popular Tags