public class UIinfo
{
- public UIinfo(String action, String name, String description)
+ private String ServiceType;
+
+ public UIinfo(String serviceType, String action, String name,
+ String description)
{
+ this.setServiceType(serviceType == null ? "" : serviceType);
this.Action = action == null ? "" : action;
this.description = description == null ? "" : description;
this.Name = name == null ? "" : name;
}
+ /**
+ * The type of analysis the service performs
+ */
+ public String getServiceType()
+ {
+ return ServiceType;
+ }
+
+ public void setServiceType(String serviceType)
+ {
+ ServiceType = serviceType;
+ }
+
+ /**
+ * The action when the service performs the analysis
+ */
public String getAction()
{
return Action;
Action = action;
}
+ /**
+ * name shown to user
+ *
+ * @return
+ */
public String getName()
{
return Name;
Name = name;
}
+ /**
+ * Detailed description (may include references, URLs, html,etc)
+ *
+ * @return
+ */
public String getDescription()
{
return description;
}
UIinfo other = (UIinfo) object;
- return (Name == null && other.getName() == null || Name != null
- && other.getName() != null && Name.equals(other.getName()))
+ return (ServiceType == null && other.getServiceType() == null
+ || ServiceType != null && other.getServiceType() != null
+ && ServiceType.equals(other.getServiceType()))
+ && (Name == null && other.getName() == null
+ || Name != null && other.getName() != null
+ && Name.equals(other.getName()))
&& (Action == null && other.getAction() == null
|| Action != null && other.getAction() != null
&& Action.equals(other.getAction()))