svn-gvsig-desktop / branches / v2_0_0_prep / extensions / org.gvsig.image.extension / src / main / java / org / gvsig / arcims / image / gui / panels / utils / ServiceNamesObject.java @ 32321
History | View | Annotate | Download (2.53 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2010 Prodevelop S.L. main development
|
26 |
* http://www.prodevelop.es
|
27 |
*/
|
28 |
|
29 |
package org.gvsig.arcims.image.gui.panels.utils; |
30 |
|
31 |
import org.gvsig.andami.PluginServices; |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
/**
|
37 |
* This class simply stores the name, type and status of one services that is
|
38 |
* available in an ArcIMS server. It is used to model the services list in the
|
39 |
* wizard's services JTable.
|
40 |
|
41 |
* @author jldominguez
|
42 |
*/
|
43 |
public class ServiceNamesObject { |
44 |
private String serviceName = ""; |
45 |
private String serviceType = ""; |
46 |
private String serviceStatus = ""; |
47 |
|
48 |
public ServiceNamesObject(String name, String type, String status) { |
49 |
serviceName = name; |
50 |
serviceType = type; |
51 |
serviceStatus = status; |
52 |
} |
53 |
|
54 |
/**
|
55 |
* Gets the service name
|
56 |
*/
|
57 |
public String getServiceName() { |
58 |
return serviceName;
|
59 |
} |
60 |
|
61 |
/**
|
62 |
* Gets the service type (ImageService or FeatureService)
|
63 |
*/
|
64 |
public String getServiceType() { |
65 |
return serviceType;
|
66 |
} |
67 |
|
68 |
/**
|
69 |
* Gets the service's status (should be ENABLED)
|
70 |
*/
|
71 |
public String getServiceStatus() { |
72 |
return serviceStatus;
|
73 |
} |
74 |
|
75 |
public String toString() { |
76 |
String r = " " + PluginServices.getText(this, "service") + ": " + |
77 |
serviceName + " ";
|
78 |
|
79 |
return r;
|
80 |
} |
81 |
|
82 |
public String toolTipText() { |
83 |
String r = " " + PluginServices.getText(this, "service") + ": " + |
84 |
serviceName + " \n";
|
85 |
r = r + " " + PluginServices.getText(this, "service_type") + ": " + |
86 |
serviceType + " \n";
|
87 |
r = r + " " + PluginServices.getText(this, "status") + ": " + |
88 |
serviceStatus + " ";
|
89 |
|
90 |
return r;
|
91 |
} |
92 |
} |