1 package jalview.ws.api;
3 import jalview.ws.params.ParamDatastoreI;
6 * Service UI Info { Action, Specific Name of Service, Brief Description }
11 private String ServiceType;
13 public UIinfo(String serviceType, String action, String name,
14 String description, String hosturl)
16 this.setServiceType(serviceType == null ? "" : serviceType);
17 this.Action = action == null ? "" : action;
18 this.description = description == null ? "" : description;
19 this.Name = name == null ? "" : name;
20 this.hostURL = hosturl;
24 * The type of analysis the service performs
26 public String getServiceType()
31 public void setServiceType(String serviceType)
33 ServiceType = serviceType;
37 * The action when the service performs the analysis
39 public String getAction()
44 public void setAction(String action)
54 public String getName()
59 public void setName(String name)
65 * Detailed description (may include references, URLs, html,etc)
69 public String getDescription()
74 public void setDescription(String description)
76 this.description = description;
80 public boolean equals(Object object)
82 if (object == null || !(object instanceof UIinfo))
86 UIinfo other = (UIinfo) object;
88 return (ServiceType == null && other.getServiceType() == null
89 || ServiceType != null && other.getServiceType() != null
90 && ServiceType.equals(other.getServiceType()))
91 && (hostURL == null && other.getHostURL() == null
92 || hostURL != null && other.getHostURL() != null
93 && hostURL.equals(other.getHostURL()))
94 && (Name == null && other.getName() == null
95 || Name != null && other.getName() != null
96 && Name.equals(other.getName()))
97 && (Action == null && other.getAction() == null
98 || Action != null && other.getAction() != null
99 && Action.equals(other.getAction()))
100 && (description == null && other.getDescription() == null
101 || description != null && other.getDescription() != null
102 && description.equals(other.getDescription()));
106 * @return short description of what the service will do
108 public String getActionText()
110 return getAction() + " with " + getName();
121 public String getHostURL()
126 public ParamDatastoreI getParamStore()
128 // TODO Auto-generated method stub
134 * @return true if the service has parameters (ie is instance of
135 * jalview.ws.api.ServiceWithParameters)
137 public boolean hasParameters()
139 // TODO Auto-generated method stub