001: /*
002: * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
003: * Reserved.
004: *
005: * This source code file is distributed by Lutris Technologies, Inc. for
006: * use only by licensed users of product(s) that include this source
007: * file. Use of this source file or the software that uses it is covered
008: * by the terms and conditions of the Lutris Enhydra Development License
009: * Agreement included with this product.
010: *
011: * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
012: * ANY KIND, either express or implied. See the License for the specific terms
013: * governing rights and limitations under the License.
014: *
015: * Contributor(s):
016: *
017: * $Id: Address.java,v 1.1 2006-09-11 12:29:26 sinisa Exp $
018: */
019:
020: package com.lutris.airsent.spec.address;
021:
022: import com.lutris.airsent.spec.AirSentException;
023:
024: /**
025: * Interface declaration
026: *
027: *
028: * @author joseph shoop
029: * @version %I%, %G%
030: */
031: public interface Address {
032:
033: /**
034: *
035: */
036: public final static int MAX_NAME = 48;
037:
038: /**
039: *
040: */
041: public final static int MAX_ADDRESS = 48;
042:
043: /**
044: *
045: */
046: public final static int MAX_CITY = 64;
047:
048: /**
049: *
050: */
051: public final static int MAX_ZIP_CODE = 24;
052:
053: /**
054: *
055: */
056: public final static int MAX_PHONE = 21;
057:
058: /**
059: *
060: */
061: public final static int MAX_AREA_CODE = 21;
062:
063: /**
064: *
065: */
066: public final static int MAX_STATE = 32;
067:
068: /**
069: *
070: */
071: public final static int MAX_COUNTRY = 64;
072:
073: /**
074: *
075: */
076: public final static int MAX_DIRECTIONS = 1024;
077:
078: /**
079: * Gets the handle
080: *
081: *
082: * @return the handle
083: *
084: * @throws AirSentException
085: *
086: *
087: */
088: public String getHandle() throws AirSentException;
089:
090: /**
091: * Gets the name
092: *
093: *
094: * @return Name
095: *
096: * @throws AirSentException
097: *
098: *
099: */
100: public String getName() throws AirSentException;
101:
102: /**
103: * Sets the name
104: *
105: *
106: * @param name
107: *
108: * @throws AirSentException
109: *
110: *
111: */
112: public void setName(String name) throws AirSentException;
113:
114: /**
115: * Gets street1
116: *
117: *
118: * @return Street1
119: *
120: * @throws AirSentException
121: *
122: *
123: */
124: public String getStreet1() throws AirSentException;
125:
126: /**
127: * Sets street1
128: *
129: *
130: * @param street
131: *
132: * @throws AirSentException
133: *
134: *
135: */
136: public void setStreet1(String street) throws AirSentException;
137:
138: /**
139: * Gets street2
140: *
141: *
142: * @return Street2
143: *
144: * @throws AirSentException
145: *
146: *
147: */
148: public String getStreet2() throws AirSentException;
149:
150: /**
151: * Sets street2
152: *
153: *
154: * @param street
155: *
156: * @throws AirSentException
157: *
158: *
159: */
160: public void setStreet2(String street) throws AirSentException;
161:
162: /**
163: * Gets street3
164: *
165: *
166: * @return Street3
167: *
168: * @throws AirSentException
169: *
170: *
171: */
172: public String getStreet3() throws AirSentException;
173:
174: /**
175: * Sets street3
176: *
177: *
178: * @param street
179: *
180: * @throws AirSentException
181: *
182: *
183: */
184: public void setStreet3(String street) throws AirSentException;
185:
186: /**
187: * Gets the city.
188: *
189: *
190: * @return City
191: *
192: * @throws AirSentException
193: *
194: *
195: */
196: public String getCity() throws AirSentException;
197:
198: /**
199: * Sets the city.
200: *
201: *
202: * @param city
203: *
204: * @throws AirSentException
205: *
206: *
207: */
208: public void setCity(String city) throws AirSentException;
209:
210: /**
211: * Gets the postal code.
212: *
213: *
214: * @return Postal code
215: *
216: * @throws AirSentException
217: *
218: *
219: */
220: public String getPostalCode() throws AirSentException;
221:
222: /**
223: * Sets the postal code.
224: *
225: *
226: * @param code
227: *
228: * @throws AirSentException
229: *
230: *
231: */
232: public void setPostalCode(String code) throws AirSentException;
233:
234: /**
235: * Gets the local number.
236: *
237: *
238: * @return Local number
239: *
240: * @throws AirSentException
241: *
242: *
243: */
244: public String getLocalNumber() throws AirSentException;
245:
246: /**
247: * Sets the local number
248: *
249: *
250: * @param number
251: *
252: * @throws AirSentException
253: *
254: *
255: */
256: public void setLocalNumber(String number) throws AirSentException;
257:
258: /**
259: * Gets the area code.
260: *
261: *
262: * @return AreaCode
263: *
264: * @throws AirSentException
265: *
266: *
267: */
268: public String getAreaCode() throws AirSentException;
269:
270: /**
271: * Sets the area code.
272: *
273: *
274: * @param area
275: *
276: * @throws AirSentException
277: *
278: *
279: */
280: public void setAreaCode(String area) throws AirSentException;
281:
282: /**
283: * Gets the state.
284: *
285: *
286: * @return State
287: *
288: * @throws AirSentException
289: *
290: *
291: */
292: public String getState() throws AirSentException;
293:
294: /**
295: * Sets the state.
296: *
297: *
298: * @param state
299: *
300: * @throws AirSentException
301: *
302: *
303: */
304: public void setState(String state) throws AirSentException;
305:
306: /**
307: * Gets the country.
308: *
309: *
310: * @return Country
311: *
312: * @throws AirSentException
313: *
314: *
315: */
316: public String getCountry() throws AirSentException;
317:
318: /**
319: * Sets the country.
320: *
321: *
322: * @param country
323: *
324: * @throws AirSentException
325: *
326: *
327: */
328: public void setCountry(String country) throws AirSentException;
329:
330: /**
331: * Gets the directions.
332: *
333: *
334: * @return Directions
335: *
336: * @throws AirSentException
337: *
338: *
339: */
340: public String getDirections() throws AirSentException;
341:
342: /**
343: * Sets the directions.
344: *
345: *
346: * @param directions
347: *
348: * @throws AirSentException
349: *
350: *
351: */
352: public void setDirections(String directions)
353: throws AirSentException;
354:
355: /**
356: * Saves an address.
357: *
358: *
359: * @throws AirSentException
360: *
361: *
362: */
363: public void save() throws AirSentException;
364:
365: /**
366: * Deletes an address.
367: *
368: *
369: * @throws AirSentException
370: *
371: *
372: */
373: public void delete() throws AirSentException;
374: }
|