| 1 |
|
package jalview.ws.api; |
| 2 |
|
|
| 3 |
|
import jalview.ws.params.ParamDatastoreI; |
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| |
|
| 0% |
Uncovered Elements: 51 (51) |
Complexity: 23 |
Complexity Density: 0.96 |
|
| 9 |
|
public class UIinfo |
| 10 |
|
{ |
| 11 |
|
private String ServiceType; |
| 12 |
|
|
| |
|
| 0% |
Uncovered Elements: 13 (13) |
Complexity: 5 |
Complexity Density: 1 |
|
| 13 |
0 |
public UIinfo(String serviceType, String action, String name,... |
| 14 |
|
String description, String hosturl) |
| 15 |
|
{ |
| 16 |
0 |
this.setServiceType(serviceType == null ? "" : serviceType); |
| 17 |
0 |
this.Action = action == null ? "" : action; |
| 18 |
0 |
this.description = description == null ? "" : description; |
| 19 |
0 |
this.Name = name == null ? "" : name; |
| 20 |
0 |
this.hostURL = hosturl; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 26 |
0 |
public String getServiceType()... |
| 27 |
|
{ |
| 28 |
0 |
return ServiceType; |
| 29 |
|
} |
| 30 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 31 |
0 |
public void setServiceType(String serviceType)... |
| 32 |
|
{ |
| 33 |
0 |
ServiceType = serviceType; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
0 |
public String getAction()... |
| 40 |
|
{ |
| 41 |
0 |
return Action; |
| 42 |
|
} |
| 43 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
0 |
public void setAction(String action)... |
| 45 |
|
{ |
| 46 |
0 |
Action = action; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
@return |
| 53 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
0 |
public String getName()... |
| 55 |
|
{ |
| 56 |
0 |
return Name; |
| 57 |
|
} |
| 58 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 59 |
0 |
public void setName(String name)... |
| 60 |
|
{ |
| 61 |
0 |
Name = name; |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
@return |
| 68 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 69 |
0 |
public String getDescription()... |
| 70 |
|
{ |
| 71 |
0 |
return description; |
| 72 |
|
} |
| 73 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 74 |
0 |
public void setDescription(String description)... |
| 75 |
|
{ |
| 76 |
0 |
this.description = description; |
| 77 |
|
} |
| 78 |
|
|
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 79 |
0 |
@Override... |
| 80 |
|
public boolean equals(Object object) |
| 81 |
|
{ |
| 82 |
0 |
if (object == null || !(object instanceof UIinfo)) |
| 83 |
|
{ |
| 84 |
0 |
return false; |
| 85 |
|
} |
| 86 |
0 |
UIinfo other = (UIinfo) object; |
| 87 |
|
|
| 88 |
0 |
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())); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
|
| 106 |
|
@return |
| 107 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 108 |
0 |
public String getActionText()... |
| 109 |
|
{ |
| 110 |
0 |
return getAction() + " with " + getName(); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
String Action; |
| 114 |
|
|
| 115 |
|
String Name; |
| 116 |
|
|
| 117 |
|
String description; |
| 118 |
|
|
| 119 |
|
String hostURL; |
| 120 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 121 |
0 |
public String getHostURL()... |
| 122 |
|
{ |
| 123 |
0 |
return hostURL; |
| 124 |
|
} |
| 125 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 126 |
0 |
public ParamDatastoreI getParamStore()... |
| 127 |
|
{ |
| 128 |
|
|
| 129 |
0 |
return null; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
@return |
| 135 |
|
|
| 136 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 137 |
0 |
public boolean hasParameters()... |
| 138 |
|
{ |
| 139 |
|
|
| 140 |
0 |
return false; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
private String docUrl = null; |
| 144 |
|
|
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
@param |
| 149 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 150 |
0 |
public void setDocumentationUrl(String url)... |
| 151 |
|
{ |
| 152 |
0 |
docUrl = url; |
| 153 |
|
} |
| 154 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 155 |
0 |
public boolean hasDocumentationUrl()... |
| 156 |
|
{ |
| 157 |
0 |
return docUrl != null && docUrl.length() > 7; |
| 158 |
|
} |
| 159 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 160 |
0 |
public String getDocumentationUrl()... |
| 161 |
|
{ |
| 162 |
0 |
return docUrl; |
| 163 |
|
} |
| 164 |
|
} |