1 package jalview.ws.api;
4 * Service UI Info { Action, Specific Name of Service, Brief Description }
9 private String ServiceType;
11 public UIinfo(String serviceType, String action, String name,
12 String description, String hosturl)
14 this.setServiceType(serviceType == null ? "" : serviceType);
15 this.Action = action == null ? "" : action;
16 this.description = description == null ? "" : description;
17 this.Name = name == null ? "" : name;
18 this.hostURL = hosturl;
22 * The type of analysis the service performs
24 public String getServiceType()
29 public void setServiceType(String serviceType)
31 ServiceType = serviceType;
35 * The action when the service performs the analysis
37 public String getAction()
42 public void setAction(String action)
52 public String getName()
57 public void setName(String name)
63 * Detailed description (may include references, URLs, html,etc)
67 public String getDescription()
72 public void setDescription(String description)
74 this.description = description;
78 public boolean equals(Object object)
80 if (object == null || !(object instanceof UIinfo))
84 UIinfo other = (UIinfo) object;
86 return (ServiceType == null && other.getServiceType() == null
87 || ServiceType != null && other.getServiceType() != null
88 && ServiceType.equals(other.getServiceType()))
89 && (hostURL == null && other.getHostURL() == null
90 || hostURL != null && other.getHostURL() != null
91 && hostURL.equals(other.getHostURL()))
92 && (Name == null && other.getName() == null
93 || Name != null && other.getName() != null
94 && Name.equals(other.getName()))
95 && (Action == null && other.getAction() == null
96 || Action != null && other.getAction() != null
97 && Action.equals(other.getAction()))
98 && (description == null && other.getDescription() == null
99 || description != null && other.getDescription() != null
100 && description.equals(other.getDescription()));
104 * @return short description of what the service will do
106 public String getActionText()
108 return getAction() + " with " + getName();
119 public String getHostURL()