1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.ws.rest.params; |
22 |
|
|
23 |
|
import jalview.util.MessageManager; |
24 |
|
import jalview.ws.params.OptionI; |
25 |
|
import jalview.ws.rest.InputType; |
26 |
|
import jalview.ws.rest.RestJob; |
27 |
|
|
28 |
|
import java.io.UnsupportedEncodingException; |
29 |
|
import java.util.ArrayList; |
30 |
|
import java.util.List; |
31 |
|
|
32 |
|
import org.apache.http.entity.mime.content.ContentBody; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
@author |
38 |
|
|
39 |
|
|
|
|
| 0% |
Uncovered Elements: 14 (14) |
Complexity: 6 |
Complexity Density: 0.75 |
|
40 |
|
public class Tree extends InputType |
41 |
|
{ |
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
42 |
0 |
public Tree()... |
43 |
|
{ |
44 |
0 |
super(new Class[] { jalview.analysis.NJTree.class }); |
45 |
|
} |
46 |
|
|
47 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
0 |
@Override... |
49 |
|
public ContentBody formatForInput(RestJob rj) |
50 |
|
throws UnsupportedEncodingException |
51 |
|
{ |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
0 |
throw new Error(MessageManager |
57 |
|
.getString("error.tree_inputtype_not_yet_implemented")); |
58 |
|
|
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0 |
public String getURLtokenPrefix()... |
62 |
|
{ |
63 |
0 |
return "NEWICK"; |
64 |
|
} |
65 |
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
66 |
0 |
@Override... |
67 |
|
public List<String> getURLEncodedParameter() |
68 |
|
{ |
69 |
0 |
ArrayList<String> prms = new ArrayList<String>(); |
70 |
0 |
super.addBaseParams(prms); |
71 |
0 |
return prms; |
72 |
|
} |
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0 |
@Override... |
75 |
|
public boolean configureProperty(String tok, String val, |
76 |
|
StringBuffer warnings) |
77 |
|
{ |
78 |
0 |
return true; |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0 |
@Override... |
82 |
|
public List<OptionI> getOptions() |
83 |
|
{ |
84 |
0 |
return getBaseOptions(); |
85 |
|
} |
86 |
|
|
87 |
|
} |