| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.util; |
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| |
|
| 80% |
Uncovered Elements: 1 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 26 |
|
public class UrlConstants |
| 27 |
|
{ |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
public static final String DB_ACCESSION = "DB_ACCESSION"; |
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
public static final String SEQUENCE_ID = "SEQUENCE_ID"; |
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
public static final String SEP = "|"; |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
public static final String DELIM = "$"; |
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
public static final String DEFAULT_LABEL = "EMBL-EBI Search"; |
| 53 |
|
|
| 54 |
|
|
| 55 |
|
|
| 56 |
|
|
| 57 |
|
public static final String DEFAULT_STRING = DEFAULT_LABEL |
| 58 |
|
+ "|https://www.ebi.ac.uk/ebisearch/search.ebi?db=allebi&query=$SEQUENCE_ID$"; |
| 59 |
|
|
| 60 |
|
private static final String COLON = ":"; |
| 61 |
|
|
| 62 |
|
|
| 63 |
|
|
| 64 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 65 |
0 |
private UrlConstants()... |
| 66 |
|
{ |
| 67 |
|
} |
| 68 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 69 |
11 |
public static boolean isDefaultString(String link)... |
| 70 |
|
{ |
| 71 |
11 |
String sublink = link.substring(link.indexOf(COLON) + 1); |
| 72 |
11 |
String subdefault = DEFAULT_STRING |
| 73 |
|
.substring(DEFAULT_STRING.indexOf(COLON) + 1); |
| 74 |
11 |
return sublink.equalsIgnoreCase(subdefault); |
| 75 |
|
} |
| 76 |
|
} |