KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > webapp > tiles > invoice > Address


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

18
19 package org.apache.struts.webapp.tiles.invoice;
20
21 /**
22  * An address.
23  */

24 public class Address
25 {
26
27   /**
28    * Street part 1
29    */

30   private String JavaDoc street1;
31
32   /**
33    * Street part 2
34    */

35   private String JavaDoc street2;
36
37   /**
38    * City
39    */

40   private String JavaDoc city;
41
42   /**
43    * Country
44    */

45   private String JavaDoc country;
46
47   /**
48    * Zip Code
49    */

50   private String JavaDoc zipCode;
51
52   public Address()
53   {
54   }
55
56   /**
57 * Access method for the street1 property.
58 *
59 * @return the current value of the street1 property
60    */

61   public String JavaDoc getStreet1() {
62     return street1;}
63
64   /**
65    * @return void
66 * Sets the value of the street1 property.
67 *
68 * @param aStreet1 the new value of the street1 property
69    */

70   public void setStreet1(String JavaDoc aStreet1) {
71     street1 = aStreet1;}
72
73   /**
74 * Access method for the street2 property.
75 *
76 * @return the current value of the street2 property
77    */

78   public String JavaDoc getStreet2() {
79     return street2;}
80
81   /**
82    * @return void
83 * Sets the value of the street2 property.
84 *
85 * @param aStreet2 the new value of the street2 property
86    */

87   public void setStreet2(String JavaDoc aStreet2) {
88     street2 = aStreet2;}
89
90   /**
91 * Access method for the city property.
92 *
93 * @return the current value of the city property
94    */

95   public String JavaDoc getCity() {
96     return city;}
97
98   /**
99    * @return void
100 * Sets the value of the city property.
101 *
102 * @param aCity the new value of the city property
103    */

104   public void setCity(String JavaDoc aCity) {
105     city = aCity;}
106
107   /**
108 * Access method for the country property.
109 *
110 * @return the current value of the country property
111    */

112   public String JavaDoc getCountry() {
113     return country;}
114
115   /**
116    * @return void
117 * Sets the value of the country property.
118 *
119 * @param aCountry the new value of the country property
120    */

121   public void setCountry(String JavaDoc aCountry) {
122     country = aCountry;}
123
124   /**
125 * Access method for the zipCode property.
126 *
127 * @return the current value of the zipCode property
128    */

129   public String JavaDoc getZipCode() {
130     return zipCode;}
131
132   /**
133    * @return void
134 * Sets the value of the zipCode property.
135 *
136 * @param aZipCode the new value of the zipCode property
137    */

138   public void setZipCode(String JavaDoc aZipCode) {
139     zipCode = aZipCode;}
140 }
141
Popular Tags