Statistics
| Revision:

root / trunk / extensions / extArcims / src / es / prodevelop / cit / gvsig / arcims / gui / panels / utils / ServiceNamesObject.java @ 8110

History | View | Annotate | Download (1.36 KB)

1
package es.prodevelop.cit.gvsig.arcims.gui.panels.utils;
2

    
3
import com.iver.andami.PluginServices;
4

    
5
/**
6
* This class simply stores the name, type and status of one services that is
7
* available in an ArcIMS server. It is used to model the services list in the
8
* wizard's services JTable.
9

10
* @author jldominguez
11
*/
12
public class ServiceNamesObject {
13
        private String serviceName = "";
14
        private String serviceType = "";
15
        private String serviceStatus = "";
16

    
17
        public ServiceNamesObject(String name, String type, String status) {
18
                serviceName = name;
19
                serviceType = type;
20
                serviceStatus = status;
21
        }
22

    
23
        /**
24
         * Gets the service name
25
        */
26
        public String getServiceName() {
27
                return serviceName;
28
        }
29

    
30
        /**
31
         * Gets the service type (ImageService or FeatureService)
32
        */
33
        public String getServiceType() {
34
                return serviceType;
35
        }
36

    
37
        /**
38
         * Gets the service's status (should be ENABLED)
39
        */
40
        public String getServiceStatus() {
41
                return serviceStatus;
42
        }
43
        
44
        public String toString() {
45
                String r = " " + PluginServices.getText(this, "service") + ": " + serviceName + " ";
46
                return r; 
47
        }
48
        
49
        public String toolTipText() {
50
                String r = " " + PluginServices.getText(this, "service") + ": " + serviceName +  " \n";
51
                r = r + " " + PluginServices.getText(this, "service_type") + ": " + serviceType + " \n";
52
                r = r + " " + PluginServices.getText(this, "status") + ": " + serviceStatus + " ";
53
                return r; 
54
        }
55
}