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,
14 this.setServiceType(serviceType == null ? "" : serviceType);
15 this.Action = action == null ? "" : action;
16 this.description = description == null ? "" : description;
17 this.Name = name == null ? "" : name;
21 * The type of analysis the service performs
23 public String getServiceType()
28 public void setServiceType(String serviceType)
30 ServiceType = serviceType;
34 * The action when the service performs the analysis
36 public String getAction()
41 public void setAction(String action)
51 public String getName()
56 public void setName(String name)
62 * Detailed description (may include references, URLs, html,etc)
66 public String getDescription()
71 public void setDescription(String description)
73 this.description = description;
77 public boolean equals(Object object)
79 if (object == null || !(object instanceof UIinfo))
83 UIinfo other = (UIinfo) object;
85 return (ServiceType == null && other.getServiceType() == null
86 || ServiceType != null && other.getServiceType() != null
87 && ServiceType.equals(other.getServiceType()))
88 && (Name == null && other.getName() == null
89 || Name != null && other.getName() != null
90 && Name.equals(other.getName()))
91 && (Action == null && other.getAction() == null
92 || Action != null && other.getAction() != null
93 && Action.equals(other.getAction()))
94 && (description == null && other.getDescription() == null
95 || description != null && other.getDescription() != null
96 && description.equals(other.getDescription()));