summaryrefslogtreecommitdiff
path: root/sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/OasisAddress.java
blob: 54b95e300234e8d4b0f3c0b012055d90fbdf89d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
package com.smartdevicelink.proxy.rpc;

import com.smartdevicelink.proxy.RPCStruct;

import java.util.Hashtable;

public class OasisAddress extends RPCStruct{
    public static final String KEY_COUNTRY_NAME = "countryName";
    public static final String KEY_COUNTRY_CODE = "countryCode";
    public static final String KEY_POSTAL_CODE = "postalCode";
    public static final String KEY_ADMINISTRATIVE_AREA = "administrativeArea";
    public static final String KEY_SUB_ADMINISTRATIVE_AREA = "subAdministrativeArea";
    public static final String KEY_LOCALITY = "locality";
    public static final String KEY_SUB_LOCALITY = "subLocality";
    public static final String KEY_THOROUGH_FARE = "thoroughfare";
    public static final String KEY_SUB_THOROUGH_FARE = "subThoroughfare";

	/** 
	* OASIS Address - A standard based address class that has been established by The Organization for the Advancement of Structured Information Standards (OASIS). 
	* Oasis is a global nonprofit consortium that works on the development, convergence, and adoption of standards for security,
	* Internet of Things, energy, content technologies, emergency management, and other areas. 
	*
	*/
    public OasisAddress() {
    }

    public OasisAddress(Hashtable<String, Object> hash) {
        super(hash);
    }

    /**
	* Gets the localized Name of the country associated with the OasisAddress class.
	* 
	* @return String - The localized Name of the country associated with the OasisAddress class.
	* 
    */
    public String getCountryName() {
        return getString(KEY_COUNTRY_NAME);
    }

	/**
 	* Sets the localized Name of the country associated with the OasisAddress class.
	* 
	* @param countryName
	* The localized Name of the country associated with the OasisAddress class.
	* 
	*/
    public void setCountryName(String countryName) {
        setValue(KEY_COUNTRY_NAME, countryName);
    }

    /**
	* Gets the country code in ISO 3166-2 format associated with the OasisAddress class.
	* 
	* @return String - The country code in ISO 3166-2 format associated with the OasisAddress class.
	* 
    */
    public String getCountryCode() {
        return getString(KEY_COUNTRY_CODE);
    }

	/**
 	* Sets the country code in ISO 3166-2 format associated with the OasisAddress class.
	* 
	* @param countryCode
	* The country code in ISO 3166-2 format associated with the OasisAddress class.
	* 
	*/ 
    public void setCountryCode(String countryCode) {
        setValue(KEY_COUNTRY_CODE, countryCode);
    }

    /**
	* Gets the Postal Code associated with the OasisAddress class.
	* 
	* @return String - The Postal Code associated with the OasisAddress class.
	* 
    */
    public String getPostalCode() {
        return getString(KEY_POSTAL_CODE);
    }

	/**
 	* Sets the Postal Code associated with the OasisAddress class.
	* 
	* @param postalCode
	* The Postal Code associated with the OasisAddress class.
	* 
	*/ 
    public void setPostalCode(String postalCode) {
        setValue(KEY_POSTAL_CODE, postalCode);
    }

    /**
	* Gets the Administrative Area associated with the OasisAddress class. A portion of the country - Administrative Area's can include details of the top-level area division in the country, such as state, district, province, island, region, etc.
	* 
	* @return String - The Administrative Area associated with the OasisAddress class.
	* 
    */
    public String getAdministrativeArea() {
        return getString(KEY_ADMINISTRATIVE_AREA);
    }

	/**
 	* Sets the Administrative Area associated with the OasisAddress class.   A portion of the country - Administrative Area can include details of the top-level area division in the country, such as state, district, province, island, region, etc.
	* 
	* @param administrativeArea
	* The Administrative Area associated with the OasisAddress class.
	* 
	*/ 
    public void setAdministrativeArea(String administrativeArea) {
        setValue(KEY_ADMINISTRATIVE_AREA, administrativeArea);
    }

    /**
	* Gets the SubAdministrative Area associated with the OasisAddress class. A portion of the administrativeArea - The next level down division of the area. E.g. state / county, province / reservation.
	* 
	* @return String - The SubAdministrative Area associated with the OasisAddress class.
	* 
    */
    public String getSubAdministrativeArea() {
        return getString(KEY_SUB_ADMINISTRATIVE_AREA);
    }

	/**
 	* Sets the SubAdministrative Area associated with the OasisAddress class.   A portion of the administrativeArea - The next level down division of the area. E.g. state / county, province / reservation.
	* 
	* @param subAdministrativeArea
	* The SubAdministrative Area associated with the OasisAddress class.
	* 
	*/ 
    public void setSubAdministrativeArea(String subAdministrativeArea) {
        setValue(KEY_SUB_ADMINISTRATIVE_AREA, subAdministrativeArea);
    }

    /**
	* Gets the Locality associated with the OasisAddress class. - A hypernym for city/village
	* 
	* @return String -  The Locality associated with the OasisAddress class.
	* 
    */
    public String getLocality() {
        return getString(KEY_LOCALITY);
    }

	/**
 	* Sets the Locality associated with the OasisAddress class. - A hypernym for city/village.
	* 
	* @param locality
	* The Locality associated with the OasisAddress class.
	* 
	*/
    public void setLocality(String locality) {
        setValue(KEY_LOCALITY, locality);
    }

    /**
	* Gets the Sub-Locality associated with the OasisAddress class. - Hypernym for district.
	* 
	* @return String -  The Sub-Locality associated with the OasisAddress class.
	* 
    */
    public String getSubLocality() {
        return getString(KEY_SUB_LOCALITY);
    }

	/**
 	* Sets the Sub-Locality associated with the OasisAddress class.   A hypernym for district.
	* 
	* @param subLocality
	* The Sub-Locality associated with the OasisAddress class.
	* 
	*/ 
    public void setSubLocality(String subLocality) {
        setValue(KEY_SUB_LOCALITY, subLocality);
    }

    /**
	* Gets the Thoroughfare associated with the OasisAddress class. - A hypernym for street, road etc.
	* 
	* @return String -  The Thoroughfare associated with the OasisAddress class.
	* 
    */
    public String getThoroughfare() {
        return getString(KEY_THOROUGH_FARE);
    }

	/**
 	* Sets the Thoroughfare associated with the OasisAddress class.   A hypernym for street, road etc.
	* 
	* @param thoroughFare
	* The Thoroughfare associated with the OasisAddress class.
	* 
	*/ 
    public void setThoroughfare(String thoroughFare) {
        setValue(KEY_THOROUGH_FARE, thoroughFare);
    }
    
    /**
	* Gets the Sub-Thoroughfare associated with the OasisAddress class. - A Portion of thoroughfare (e.g. house number).
	* 
	* @return String -  The Sub-Thoroughfare associated with the OasisAddress class.
    */
    public String getSubThoroughfare() {
        return getString(KEY_SUB_THOROUGH_FARE);
    }
    
	/**
 	* Sets the Sub-Thoroughfare associated with the OasisAddress class. - A Portion of thoroughfare (e.g. house number).
	* 
	* @param subThoroughfare
	* The Sub-Thoroughfare associated with the OasisAddress class.
	* 
	*/ 
    public void setSubThoroughfare(String subThoroughfare) {
        setValue(KEY_SUB_THOROUGH_FARE, subThoroughfare);
    }
}