root / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / cat / ServiceInformation.java @ 2988
History | View | Annotate | Download (7.48 KB)
1 |
package org.gvsig.remoteClient.cat; |
---|---|
2 |
|
3 |
/**
|
4 |
* Class for storing all the general information of this Service
|
5 |
* @author Laura Diaz
|
6 |
*/
|
7 |
public class ServiceInformation |
8 |
{ |
9 |
static private String m_name; |
10 |
static private String m_scope; |
11 |
static private String m_title; |
12 |
static private String m_abstract; |
13 |
static private String m_keywords; |
14 |
static private String m_fees; |
15 |
static private String m_operationsInfo; |
16 |
|
17 |
//all the contact person information
|
18 |
static String m_personname = new String(); |
19 |
static String m_organization = new String(); |
20 |
static String m_function = new String(); |
21 |
static String m_addresstype = new String(); |
22 |
static String m_address = new String(); |
23 |
static String m_place = new String(); |
24 |
static String m_province = new String(); |
25 |
static String m_postcode = new String(); |
26 |
static String m_country = new String(); |
27 |
static String m_phone = new String(); |
28 |
static String m_fax = new String(); |
29 |
static String m_email = new String(); |
30 |
|
31 |
|
32 |
// TODO: Add all the supported formats...
|
33 |
/**
|
34 |
* returns the name of this server
|
35 |
*/
|
36 |
public static String getName() |
37 |
{ |
38 |
if(m_name == null) |
39 |
{ |
40 |
return ""; |
41 |
} |
42 |
else
|
43 |
{ |
44 |
return m_name;
|
45 |
} |
46 |
} |
47 |
|
48 |
/**
|
49 |
* Sets the name of this service
|
50 |
*/
|
51 |
public static void setName(String name) |
52 |
{ |
53 |
m_name = name; |
54 |
} |
55 |
|
56 |
|
57 |
/**
|
58 |
* returns the scope of this service
|
59 |
*/
|
60 |
public static String getScope() |
61 |
{ |
62 |
if(m_scope == null) |
63 |
{ |
64 |
return ""; |
65 |
} |
66 |
else
|
67 |
{ |
68 |
return m_scope;
|
69 |
} |
70 |
} |
71 |
|
72 |
/**
|
73 |
* Sets the scope of this service
|
74 |
*/
|
75 |
public static void setScope(String scope) |
76 |
{ |
77 |
m_scope = scope; |
78 |
} |
79 |
|
80 |
/**
|
81 |
* returns the title of this service
|
82 |
*/
|
83 |
public static String getTitle() |
84 |
{ |
85 |
if(m_title == null) |
86 |
{ |
87 |
return ""; |
88 |
} |
89 |
else
|
90 |
{ |
91 |
return m_title;
|
92 |
} |
93 |
} |
94 |
|
95 |
/**
|
96 |
* Sets the title of this service
|
97 |
*/
|
98 |
public static void setTitle(String title) |
99 |
{ |
100 |
m_title = title; |
101 |
} |
102 |
|
103 |
/**
|
104 |
* returns the abstract of this service
|
105 |
*/
|
106 |
public static String getAbstract() |
107 |
{ |
108 |
if(m_abstract == null) |
109 |
{ |
110 |
return ""; |
111 |
} |
112 |
else
|
113 |
{ |
114 |
return m_abstract;
|
115 |
} |
116 |
} |
117 |
|
118 |
/**
|
119 |
* Sets the abstract of this service
|
120 |
*/
|
121 |
public static void setAbstract(String abstrac) |
122 |
{ |
123 |
m_abstract = abstrac; |
124 |
} |
125 |
|
126 |
/**
|
127 |
* returns the keywords of this service
|
128 |
*/
|
129 |
public static String getKeywords() |
130 |
{ |
131 |
if(m_keywords == null) |
132 |
{ |
133 |
return ""; |
134 |
} |
135 |
else
|
136 |
{ |
137 |
return m_keywords;
|
138 |
} |
139 |
} |
140 |
|
141 |
/**
|
142 |
* Sets the keywords of this service
|
143 |
*/
|
144 |
public static void setKeywords(String keywords) |
145 |
{ |
146 |
m_keywords = keywords; |
147 |
} |
148 |
|
149 |
/**
|
150 |
* returns the fees of this service
|
151 |
*/
|
152 |
public static String getFees() |
153 |
{ |
154 |
if(m_fees == null) |
155 |
{ |
156 |
return ""; |
157 |
} |
158 |
else
|
159 |
{ |
160 |
return m_fees;
|
161 |
} |
162 |
} |
163 |
|
164 |
/**
|
165 |
* Sets the fees of this service
|
166 |
*/
|
167 |
public static void setFees(String fees) |
168 |
{ |
169 |
m_fees = fees; |
170 |
} |
171 |
|
172 |
|
173 |
/**
|
174 |
* returns the operationsInfo of this service
|
175 |
*/
|
176 |
public static String getOperationsInfo() |
177 |
{ |
178 |
if(m_operationsInfo == null) |
179 |
{ |
180 |
return ""; |
181 |
} |
182 |
else
|
183 |
{ |
184 |
return m_operationsInfo;
|
185 |
} |
186 |
} |
187 |
|
188 |
/**
|
189 |
* Sets the operationsInfo of this service
|
190 |
*/
|
191 |
public static void setOperationsInfo(String operationsInfo) |
192 |
{ |
193 |
m_operationsInfo = operationsInfo; |
194 |
} |
195 |
|
196 |
//All the methods for the Service contact Information
|
197 |
|
198 |
/**
|
199 |
* Sets the Contact person in this service
|
200 |
*/
|
201 |
public static void setContactPerson (String name) |
202 |
{ |
203 |
m_personname = name; |
204 |
} |
205 |
/**
|
206 |
* Returns the Contact person in this service
|
207 |
*/
|
208 |
public static String getContactPerson () |
209 |
{ |
210 |
if(m_personname == null) |
211 |
{ |
212 |
return ""; |
213 |
} |
214 |
else
|
215 |
{ |
216 |
return m_personname;
|
217 |
} |
218 |
} |
219 |
/**
|
220 |
* Sets the Contact person function in this service
|
221 |
*/
|
222 |
public static void setContactPersonFunction(String function) |
223 |
{ |
224 |
m_function = function; |
225 |
} |
226 |
/**
|
227 |
* Returns the Contact person function in this service
|
228 |
*/
|
229 |
public static String getContactPersonFunction () |
230 |
{ |
231 |
if(m_function == null) |
232 |
{ |
233 |
return ""; |
234 |
} |
235 |
else
|
236 |
{ |
237 |
return m_function;
|
238 |
} |
239 |
} |
240 |
/**
|
241 |
* Sets the Contact person phone in this service
|
242 |
*/
|
243 |
public static void setContactPersonPhone(String phone) |
244 |
{ |
245 |
m_phone = phone; |
246 |
} |
247 |
/**
|
248 |
* Returns the Contact person phone in this service
|
249 |
*/
|
250 |
public static String getContactPersonPhone () |
251 |
{ |
252 |
if(m_phone == null) |
253 |
{ |
254 |
return ""; |
255 |
} |
256 |
else
|
257 |
{ |
258 |
return m_phone;
|
259 |
} |
260 |
} |
261 |
/**
|
262 |
* Sets the Contact person fax in this service
|
263 |
*/
|
264 |
public static void setContactPersonFax(String fax) |
265 |
{ |
266 |
m_fax = fax; |
267 |
} |
268 |
/**
|
269 |
* Returns the Contact person fax in this service
|
270 |
*/
|
271 |
public static String getContactPersonFax () |
272 |
{ |
273 |
if(m_fax == null) |
274 |
{ |
275 |
return ""; |
276 |
} |
277 |
else
|
278 |
{ |
279 |
return m_fax;
|
280 |
} |
281 |
} |
282 |
/**
|
283 |
* Sets the Contact person email in this service
|
284 |
*/
|
285 |
public static void setContactPersonEmail(String email) |
286 |
{ |
287 |
m_email = email; |
288 |
} |
289 |
/**
|
290 |
* Returns the Contact person email in this service
|
291 |
*/
|
292 |
public static String getContactPersonEmail () |
293 |
{ |
294 |
if(m_email == null) |
295 |
{ |
296 |
return ""; |
297 |
} |
298 |
else
|
299 |
{ |
300 |
return m_email;
|
301 |
} |
302 |
} |
303 |
/**
|
304 |
* Sets the Contact Organization in this service
|
305 |
*/
|
306 |
public static void setContactOrganization(String organization) |
307 |
{ |
308 |
m_organization = organization; |
309 |
} |
310 |
/**
|
311 |
* Returns the Contact Organization in this service
|
312 |
*/
|
313 |
public static String getContactOrganization () |
314 |
{ |
315 |
if(m_organization == null) |
316 |
{ |
317 |
return ""; |
318 |
} |
319 |
else
|
320 |
{ |
321 |
return m_organization;
|
322 |
} |
323 |
} |
324 |
/**
|
325 |
* Sets the Contact address type in this service
|
326 |
*/
|
327 |
public static void setContactAddressType(String type) |
328 |
{ |
329 |
m_addresstype = type; |
330 |
} |
331 |
/**
|
332 |
* Returns the Contact address type in this service
|
333 |
*/
|
334 |
public static String getContactAddressType() |
335 |
{ |
336 |
if(m_addresstype ==null) |
337 |
{ |
338 |
return ""; |
339 |
} |
340 |
else
|
341 |
{ |
342 |
return m_addresstype;
|
343 |
} |
344 |
} |
345 |
/**
|
346 |
* Sets the Contact address in this service
|
347 |
*/
|
348 |
public static void setContactAddress(String address) |
349 |
{ |
350 |
m_address = address; |
351 |
} |
352 |
/**
|
353 |
* Returns the Contact address in this service
|
354 |
*/
|
355 |
public static String getContactAddress() |
356 |
{ |
357 |
if(m_address == null) |
358 |
{ |
359 |
return ""; |
360 |
} |
361 |
else
|
362 |
{ |
363 |
return m_address;
|
364 |
} |
365 |
} |
366 |
/**
|
367 |
* Sets the Contact place in this service
|
368 |
*/
|
369 |
public static void setContactPlace(String place) |
370 |
{ |
371 |
m_place = place; |
372 |
} |
373 |
/**
|
374 |
* Returns the Contact place in this service
|
375 |
*/
|
376 |
public static String getContactPlace() |
377 |
{ |
378 |
if(m_place == null) |
379 |
{ |
380 |
return ""; |
381 |
} |
382 |
else
|
383 |
{ |
384 |
return m_place;
|
385 |
} |
386 |
} |
387 |
/**
|
388 |
* Sets the Contact province in this service
|
389 |
*/
|
390 |
public static void setContactProvince(String province) |
391 |
{ |
392 |
m_province = province; |
393 |
} |
394 |
/**
|
395 |
* Returns the Contact province in this service
|
396 |
*/
|
397 |
public static String getContactProvince() |
398 |
{ |
399 |
if(m_province == null) |
400 |
{ |
401 |
return ""; |
402 |
} |
403 |
else
|
404 |
{ |
405 |
return m_province;
|
406 |
} |
407 |
} |
408 |
/**
|
409 |
* Sets the Contact postCode in this service
|
410 |
*/
|
411 |
public static void setContactPostCode(String code) |
412 |
{ |
413 |
m_postcode = code; |
414 |
} |
415 |
/**
|
416 |
* Returns the Contact postcode in this service
|
417 |
*/
|
418 |
public static String getContactPostCode() |
419 |
{ |
420 |
if(m_postcode == null) |
421 |
{ |
422 |
return ""; |
423 |
} |
424 |
else
|
425 |
{ |
426 |
return m_postcode;
|
427 |
} |
428 |
} |
429 |
/**
|
430 |
* Sets the Contact country in this service
|
431 |
*/
|
432 |
public static void setContactCountry(String country) |
433 |
{ |
434 |
m_country = country; |
435 |
} |
436 |
/**
|
437 |
* returns the Contact country in this service
|
438 |
*/
|
439 |
public static String getContactCountry() |
440 |
{ |
441 |
if(m_country == null) |
442 |
{ |
443 |
return ""; |
444 |
} |
445 |
else
|
446 |
{ |
447 |
return m_country;
|
448 |
} |
449 |
} |
450 |
} |