KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > airsent > spec > address > Address


1 /*
2  * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
3  * Reserved.
4  *
5  * This source code file is distributed by Lutris Technologies, Inc. for
6  * use only by licensed users of product(s) that include this source
7  * file. Use of this source file or the software that uses it is covered
8  * by the terms and conditions of the Lutris Enhydra Development License
9  * Agreement included with this product.
10  *
11  * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12  * ANY KIND, either express or implied. See the License for the specific terms
13  * governing rights and limitations under the License.
14  *
15  * Contributor(s):
16  *
17  * $Id: Address.java,v 1.1 2004/08/16 09:33:18 slobodan Exp $
18  */

19
20 package com.lutris.airsent.spec.address;
21
22 import com.lutris.airsent.spec.AirSentException;
23
24 /**
25  * Interface declaration
26  *
27  *
28  * @author joseph shoop
29  * @version %I%, %G%
30  */

31 public interface Address {
32
33     /**
34      *
35      */

36     public final static int MAX_NAME = 48;
37
38     /**
39      *
40      */

41     public final static int MAX_ADDRESS = 48;
42
43     /**
44      *
45      */

46     public final static int MAX_CITY = 64;
47
48     /**
49      *
50      */

51     public final static int MAX_ZIP_CODE = 24;
52
53     /**
54      *
55      */

56     public final static int MAX_PHONE = 21;
57
58     /**
59      *
60      */

61     public final static int MAX_AREA_CODE = 21;
62
63     /**
64      *
65      */

66     public final static int MAX_STATE = 32;
67
68     /**
69      *
70      */

71     public final static int MAX_COUNTRY = 64;
72
73     /**
74      *
75      */

76     public final static int MAX_DIRECTIONS = 1024;
77
78
79
80
81     /**
82      * Gets the handle
83      *
84      *
85      * @return the handle
86      *
87      * @throws AirSentException
88      *
89      *
90      */

91     public String JavaDoc getHandle() throws AirSentException;
92
93
94
95
96
97
98     /**
99      * Gets the name
100      *
101      *
102      * @return Name
103      *
104      * @throws AirSentException
105      *
106      *
107      */

108     public String JavaDoc getName() throws AirSentException;
109
110     /**
111      * Sets the name
112      *
113      *
114      * @param name
115      *
116      * @throws AirSentException
117      *
118      *
119      */

120     public void setName(String JavaDoc name) throws AirSentException;
121
122     /**
123      * Gets street1
124      *
125      *
126      * @return Street1
127      *
128      * @throws AirSentException
129      *
130      *
131      */

132     public String JavaDoc getStreet1() throws AirSentException;
133
134     /**
135      * Sets street1
136      *
137      *
138      * @param street
139      *
140      * @throws AirSentException
141      *
142      *
143      */

144     public void setStreet1(String JavaDoc street) throws AirSentException;
145
146     /**
147      * Gets street2
148      *
149      *
150      * @return Street2
151      *
152      * @throws AirSentException
153      *
154      *
155      */

156     public String JavaDoc getStreet2() throws AirSentException;
157
158     /**
159      * Sets street2
160      *
161      *
162      * @param street
163      *
164      * @throws AirSentException
165      *
166      *
167      */

168     public void setStreet2(String JavaDoc street) throws AirSentException;
169
170     /**
171      * Gets street3
172      *
173      *
174      * @return Street3
175      *
176      * @throws AirSentException
177      *
178      *
179      */

180     public String JavaDoc getStreet3() throws AirSentException;
181
182     /**
183      * Sets street3
184      *
185      *
186      * @param street
187      *
188      * @throws AirSentException
189      *
190      *
191      */

192     public void setStreet3(String JavaDoc street) throws AirSentException;
193
194     /**
195      * Gets the city.
196      *
197      *
198      * @return City
199      *
200      * @throws AirSentException
201      *
202      *
203      */

204     public String JavaDoc getCity() throws AirSentException;
205
206     /**
207      * Sets the city.
208      *
209      *
210      * @param city
211      *
212      * @throws AirSentException
213      *
214      *
215      */

216     public void setCity(String JavaDoc city) throws AirSentException;
217
218     /**
219      * Gets the postal code.
220      *
221      *
222      * @return Postal code
223      *
224      * @throws AirSentException
225      *
226      *
227      */

228     public String JavaDoc getPostalCode() throws AirSentException;
229
230     /**
231      * Sets the postal code.
232      *
233      *
234      * @param code
235      *
236      * @throws AirSentException
237      *
238      *
239      */

240     public void setPostalCode(String JavaDoc code) throws AirSentException;
241
242     /**
243      * Gets the local number.
244      *
245      *
246      * @return Local number
247      *
248      * @throws AirSentException
249      *
250      *
251      */

252     public String JavaDoc getLocalNumber() throws AirSentException;
253
254     /**
255      * Sets the local number
256      *
257      *
258      * @param number
259      *
260      * @throws AirSentException
261      *
262      *
263      */

264     public void setLocalNumber(String JavaDoc number) throws AirSentException;
265
266     /**
267      * Gets the area code.
268      *
269      *
270      * @return AreaCode
271      *
272      * @throws AirSentException
273      *
274      *
275      */

276     public String JavaDoc getAreaCode() throws AirSentException;
277
278     /**
279      * Sets the area code.
280      *
281      *
282      * @param area
283      *
284      * @throws AirSentException
285      *
286      *
287      */

288     public void setAreaCode(String JavaDoc area) throws AirSentException;
289
290     /**
291      * Gets the state.
292      *
293      *
294      * @return State
295      *
296      * @throws AirSentException
297      *
298      *
299      */

300     public String JavaDoc getState() throws AirSentException;
301
302     /**
303      * Sets the state.
304      *
305      *
306      * @param state
307      *
308      * @throws AirSentException
309      *
310      *
311      */

312     public void setState(String JavaDoc state) throws AirSentException;
313
314     /**
315      * Gets the country.
316      *
317      *
318      * @return Country
319      *
320      * @throws AirSentException
321      *
322      *
323      */

324     public String JavaDoc getCountry() throws AirSentException;
325
326     /**
327      * Sets the country.
328      *
329      *
330      * @param country
331      *
332      * @throws AirSentException
333      *
334      *
335      */

336     public void setCountry(String JavaDoc country) throws AirSentException;
337
338     /**
339      * Gets the directions.
340      *
341      *
342      * @return Directions
343      *
344      * @throws AirSentException
345      *
346      *
347      */

348     public String JavaDoc getDirections() throws AirSentException;
349
350     /**
351      * Sets the directions.
352      *
353      *
354      * @param directions
355      *
356      * @throws AirSentException
357      *
358      *
359      */

360     public void setDirections(String JavaDoc directions)
361         throws AirSentException;
362
363     /**
364      * Saves an address.
365      *
366      *
367      * @throws AirSentException
368      *
369      *
370      */

371     public void save() throws AirSentException;
372
373     /**
374      * Deletes an address.
375      *
376      *
377      * @throws AirSentException
378      *
379      *
380      */

381     public void delete() throws AirSentException;
382 }
383
384
Popular Tags