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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (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 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
45 |
1 |
public AppletUrlProviderFactory(String defaultUrlString,... |
46 |
|
Map<String, String> urlList) |
47 |
|
{ |
48 |
1 |
provDefaultUrl = defaultUrlString; |
49 |
1 |
provUrlList = urlList; |
50 |
|
} |
51 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 1 |
Complexity Density: 0.2 |
|
52 |
1 |
@Override... |
53 |
|
public UrlProviderI createUrlProvider() |
54 |
|
{ |
55 |
|
|
56 |
1 |
List<UrlProviderI> providers = new ArrayList<UrlProviderI>(); |
57 |
1 |
UrlProviderI customProvider = new CustomUrlProvider(provUrlList, null); |
58 |
1 |
providers.add(customProvider); |
59 |
|
|
60 |
1 |
UrlProviderI prov = new UrlProvider(provDefaultUrl, providers); |
61 |
1 |
return prov; |
62 |
|
} |
63 |
|
|
64 |
|
} |