KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > xml > querying > impl > xtas > Address


1 package org.exoplatform.services.xml.querying.impl.xtas;
2
3 public class Address
4 {
5   private String JavaDoc street1;
6   private String JavaDoc street2;
7   private String JavaDoc city;
8   private String JavaDoc country;
9   private String JavaDoc zip;
10
11   public Address()
12   {
13   }
14
15   /**
16 * Access method for the street1 property.
17 *
18 * @return the current value of the street1 property
19    */

20   public String JavaDoc getStreet1() {
21     return street1;}
22
23   /**
24    * @return void
25 * Sets the value of the street1 property.
26 *
27 * @param aStreet1 the new value of the street1 property
28    */

29   public void setStreet1(String JavaDoc aStreet1) {
30     street1 = aStreet1;}
31
32   /**
33 * Access method for the street2 property.
34 *
35 * @return the current value of the street2 property
36    */

37   public String JavaDoc getStreet2() {
38     return street2;}
39
40   /**
41    * @return void
42 * Sets the value of the street2 property.
43 *
44 * @param aStreet2 the new value of the street2 property
45    */

46   public void setStreet2(String JavaDoc aStreet2) {
47     street2 = aStreet2;}
48
49   /**
50 * Access method for the city property.
51 *
52 * @return the current value of the city property
53    */

54   public String JavaDoc getCity() {
55     return city;}
56
57   /**
58    * @return void
59 * Sets the value of the city property.
60 *
61 * @param aCity the new value of the city property
62    */

63   public void setCity(String JavaDoc aCity) {
64     city = aCity;}
65
66   /**
67 * Access method for the country property.
68 *
69 * @return the current value of the country property
70    */

71   public String JavaDoc getCountry() {
72     return country;}
73
74   /**
75    * @return void
76 * Sets the value of the country property.
77 *
78 * @param aCountry the new value of the country property
79    */

80   public void setCountry(String JavaDoc aCountry) {
81     country = aCountry;}
82
83   public String JavaDoc getZip() {
84     return zip;}
85
86   public void setZip(String JavaDoc aZip) {
87     zip = aZip;}
88
89
90     public String JavaDoc toString()
91     {
92       return street1+" "+street2+","+city+","+country+","+zip;
93     }
94
95 }
96
Popular Tags