1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.urls.applet; |
22 |
|
|
23 |
|
import jalview.urls.CustomUrlProvider; |
24 |
|
import jalview.urls.UrlProvider; |
25 |
|
import jalview.urls.api.UrlProviderFactoryI; |
26 |
|
import jalview.urls.api.UrlProviderI; |
27 |
|
|
28 |
|
import java.util.ArrayList; |
29 |
|
import java.util.List; |
30 |
|
import java.util.Map; |
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
@author |
36 |
|
@version |
37 |
|
|
38 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 2 |
Complexity Density: 0.29 |
|
39 |
|
public class AppletUrlProviderFactory implements UrlProviderFactoryI |
40 |
|
{ |
41 |
|
private String provDefaultUrl; |
42 |
|
|
43 |
|
private Map<String, String> provUrlList; |
44 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
45 |
0 |
public AppletUrlProviderFactory(String defaultUrlString,... |
46 |
|
Map<String, String> urlList) |
47 |
|
{ |
48 |
0 |
provDefaultUrl = defaultUrlString; |
49 |
0 |
provUrlList = urlList; |
50 |
|
} |
51 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
52 |
0 |
@Override... |
53 |
|
public UrlProviderI createUrlProvider() |
54 |
|
{ |
55 |
|
|
56 |
0 |
List<UrlProviderI> providers = new ArrayList<UrlProviderI>(); |
57 |
0 |
UrlProviderI customProvider = new CustomUrlProvider(provUrlList, null); |
58 |
0 |
providers.add(customProvider); |
59 |
|
|
60 |
0 |
UrlProviderI prov = new UrlProvider(provDefaultUrl, providers); |
61 |
0 |
return prov; |
62 |
|
} |
63 |
|
|
64 |
|
} |