This project has retired. For details please refer to its Attic page.
PostalAddressImpl xref
View Javadoc
1   /*
2    * Copyright 2001-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  package org.apache.ws.scout.registry.infomodel;
18  
19  import javax.xml.registry.infomodel.ClassificationScheme;
20  import javax.xml.registry.infomodel.PostalAddress;
21  
22  /**
23   * Implements PostalAddress Interface
24   * Implements JAXR Interface.
25   * For futher details, look into the JAXR API Javadoc.
26   *
27   * @author Anil Saldhana  <anil@apache.org>
28   */
29  public class PostalAddressImpl extends ExtensibleObjectImpl implements PostalAddress
30  {
31      private static final String EMPTY_STRING = "";
32      private String street = EMPTY_STRING;
33      private String streetNumber = EMPTY_STRING;
34      private String city = EMPTY_STRING;
35      private String stateOrProvince = EMPTY_STRING;
36      private String postalCode = EMPTY_STRING;
37      private String country = EMPTY_STRING;
38      private String type = EMPTY_STRING;
39      private ClassificationScheme postalScheme;
40  
41      /**
42       * Creates a new instance of PostalAddressImpl
43       */
44      public PostalAddressImpl(ClassificationScheme postalScheme)
45      {
46          this.postalScheme = postalScheme;
47      }
48  
49      public PostalAddressImpl()
50      {
51      }
52  
53      public String getCity()
54      {
55          return city;
56      }
57  
58      public void setCity(String city)
59      {
60          this.city = city;
61      }
62  
63      public String getCountry()
64      {
65          return country;
66      }
67  
68      public void setCountry(String country)
69      {
70          this.country = country;
71      }
72  
73      public String getPostalCode()
74      {
75          return postalCode;
76      }
77  
78      public void setPostalCode(String postalCode)
79      {
80          this.postalCode = postalCode;
81      }
82  
83      public ClassificationScheme getPostalScheme()
84      {
85          return postalScheme;
86      }
87  
88      public void setPostalScheme(ClassificationScheme postalScheme)
89      {
90          this.postalScheme = postalScheme;
91      }
92  
93      public String getStateOrProvince()
94      {
95          return stateOrProvince;
96      }
97  
98      public void setStateOrProvince(String stateOrProvince)
99      {
100         this.stateOrProvince = stateOrProvince;
101     }
102 
103     public String getStreet()
104     {
105         return street;
106     }
107 
108     public void setStreet(String street)
109     {
110         this.street = street;
111     }
112 
113     public String getStreetNumber()
114     {
115         return streetNumber;
116     }
117 
118     public void setStreetNumber(String streetNumber)
119     {
120         this.streetNumber = streetNumber;
121     }
122 
123     public String getType()
124     {
125         return type;
126     }
127 
128     public void setType(String type)
129     {
130         this.type = type;
131     }
132 }