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