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 |
|
import static jalview.util.UrlConstants.DB_ACCESSION; |
24 |
|
import static jalview.util.UrlConstants.DELIM; |
25 |
|
import static jalview.util.UrlConstants.SEP; |
26 |
|
import static jalview.util.UrlConstants.SEQUENCE_ID; |
27 |
|
|
28 |
|
import jalview.datamodel.DBRefEntry; |
29 |
|
import jalview.datamodel.SequenceI; |
30 |
|
|
31 |
|
import java.util.Arrays; |
32 |
|
import java.util.List; |
33 |
|
import java.util.Map; |
34 |
|
import java.util.Vector; |
35 |
|
|
|
|
| 85.5% |
Uncovered Elements: 36 (248) |
Complexity: 77 |
Complexity Density: 0.54 |
|
36 |
|
public class UrlLink |
37 |
|
{ |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
private static final String EQUALS = "="; |
49 |
|
|
50 |
|
private static final String SPACE = " "; |
51 |
|
|
52 |
|
private String urlSuffix; |
53 |
|
|
54 |
|
private String urlPrefix; |
55 |
|
|
56 |
|
private String target; |
57 |
|
|
58 |
|
private String label; |
59 |
|
|
60 |
|
private String dbname; |
61 |
|
|
62 |
|
private String regexReplace; |
63 |
|
|
64 |
|
private boolean dynamic = false; |
65 |
|
|
66 |
|
private boolean usesDBaccession = false; |
67 |
|
|
68 |
|
private String invalidMessage = null; |
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
@param |
76 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (31) |
Complexity: 4 |
Complexity Density: 0.16 |
|
77 |
8326 |
public UrlLink(String link)... |
78 |
|
{ |
79 |
8326 |
int sep = link.indexOf(SEP); |
80 |
8326 |
int psqid = link.indexOf(DELIM + DB_ACCESSION); |
81 |
8326 |
int nsqid = link.indexOf(DELIM + SEQUENCE_ID); |
82 |
8326 |
if (psqid > -1) |
83 |
|
{ |
84 |
8182 |
dynamic = true; |
85 |
8182 |
usesDBaccession = true; |
86 |
|
|
87 |
8182 |
sep = parseLabel(sep, psqid, link); |
88 |
|
|
89 |
8182 |
int endOfRegex = parseUrl(link, DB_ACCESSION, psqid, sep); |
90 |
8182 |
parseTarget(link, sep, endOfRegex); |
91 |
|
} |
92 |
144 |
else if (nsqid > -1) |
93 |
|
{ |
94 |
134 |
dynamic = true; |
95 |
134 |
sep = parseLabel(sep, nsqid, link); |
96 |
|
|
97 |
134 |
int endOfRegex = parseUrl(link, SEQUENCE_ID, nsqid, sep); |
98 |
|
|
99 |
134 |
parseTarget(link, sep, endOfRegex); |
100 |
|
} |
101 |
|
else |
102 |
|
{ |
103 |
10 |
label = link.substring(0, sep).trim(); |
104 |
|
|
105 |
|
|
106 |
|
|
107 |
10 |
int lastsep = link.lastIndexOf(SEP); |
108 |
10 |
if (lastsep != sep) |
109 |
|
{ |
110 |
8 |
urlPrefix = link.substring(sep + 1, lastsep).trim(); |
111 |
8 |
target = link.substring(lastsep + 1).trim(); |
112 |
|
} |
113 |
|
else |
114 |
|
{ |
115 |
2 |
urlPrefix = link.substring(sep + 1).trim(); |
116 |
2 |
target = label; |
117 |
|
} |
118 |
|
|
119 |
10 |
regexReplace = null; |
120 |
10 |
urlSuffix = null; |
121 |
|
} |
122 |
|
|
123 |
8326 |
label = label.trim(); |
124 |
8326 |
target = target.trim(); |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
@param |
131 |
|
|
132 |
|
@param |
133 |
|
|
134 |
|
@param |
135 |
|
|
136 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
137 |
8262 |
public UrlLink(String name, String url, String desc)... |
138 |
|
{ |
139 |
8262 |
this(name + SEP + url + SEP + desc); |
140 |
|
} |
141 |
|
|
142 |
|
|
143 |
|
@return |
144 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
145 |
5 |
public String getUrlSuffix()... |
146 |
|
{ |
147 |
5 |
return urlSuffix; |
148 |
|
} |
149 |
|
|
150 |
|
|
151 |
|
@return |
152 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
12 |
public String getUrlPrefix()... |
154 |
|
{ |
155 |
12 |
return urlPrefix; |
156 |
|
} |
157 |
|
|
158 |
|
|
159 |
|
@return |
160 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
161 |
32 |
public String getTarget()... |
162 |
|
{ |
163 |
32 |
return target; |
164 |
|
} |
165 |
|
|
166 |
|
|
167 |
|
@return |
168 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
169 |
135 |
public String getLabel()... |
170 |
|
{ |
171 |
135 |
return label; |
172 |
|
} |
173 |
|
|
|
|
| 90% |
Uncovered Elements: 1 (10) |
Complexity: 5 |
Complexity Density: 2.5 |
|
174 |
169 |
public String getUrlWithToken()... |
175 |
|
{ |
176 |
169 |
String var = (usesDBaccession ? DB_ACCESSION : SEQUENCE_ID); |
177 |
|
|
178 |
169 |
return urlPrefix |
179 |
169 |
+ (dynamic |
180 |
|
? (DELIM + var |
181 |
158 |
+ ((regexReplace != null) |
182 |
|
? EQUALS + regexReplace + EQUALS + DELIM |
183 |
|
: DELIM)) |
184 |
|
: "") |
185 |
169 |
+ ((urlSuffix == null) ? "" : urlSuffix); |
186 |
|
} |
187 |
|
|
188 |
|
|
189 |
|
@return |
190 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
191 |
11 |
public String getRegexReplace()... |
192 |
|
{ |
193 |
11 |
return regexReplace; |
194 |
|
} |
195 |
|
|
196 |
|
|
197 |
|
@return |
198 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
199 |
13 |
public String getInvalidMessage()... |
200 |
|
{ |
201 |
13 |
return invalidMessage; |
202 |
|
} |
203 |
|
|
204 |
|
|
205 |
|
|
206 |
|
|
207 |
|
@return |
208 |
|
|
209 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
210 |
33 |
public boolean isValid()... |
211 |
|
{ |
212 |
33 |
return invalidMessage == null; |
213 |
|
} |
214 |
|
|
215 |
|
|
216 |
|
|
217 |
|
@return |
218 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
219 |
6 |
public boolean isDynamic()... |
220 |
|
{ |
221 |
6 |
return dynamic; |
222 |
|
} |
223 |
|
|
224 |
|
|
225 |
|
|
226 |
|
@return |
227 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
228 |
51 |
public boolean usesDBAccession()... |
229 |
|
{ |
230 |
51 |
return usesDBaccession; |
231 |
|
} |
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
@param |
237 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
238 |
32 |
public void setLabel(String newlabel)... |
239 |
|
{ |
240 |
32 |
this.label = newlabel; |
241 |
|
} |
242 |
|
|
243 |
|
|
244 |
|
|
245 |
|
|
246 |
|
@param |
247 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
248 |
6 |
public void setTarget(String desc)... |
249 |
|
{ |
250 |
6 |
target = desc; |
251 |
|
} |
252 |
|
|
253 |
|
|
254 |
|
|
255 |
|
|
256 |
|
@param |
257 |
|
@param |
258 |
|
|
259 |
|
|
260 |
|
@return |
261 |
|
|
262 |
|
|
|
|
| 65.2% |
Uncovered Elements: 23 (66) |
Complexity: 19 |
Complexity Density: 0.5 |
|
263 |
38 |
public String[] makeUrls(String idstring, boolean onlyIfMatches)... |
264 |
|
{ |
265 |
38 |
if (dynamic) |
266 |
|
{ |
267 |
38 |
if (regexReplace != null) |
268 |
|
{ |
269 |
8 |
com.stevesoft.pat.Regex rg = com.stevesoft.pat.Regex |
270 |
|
.perlCode("/" + regexReplace + "/"); |
271 |
8 |
if (rg.search(idstring)) |
272 |
|
{ |
273 |
6 |
int ns = rg.numSubs(); |
274 |
6 |
if (ns == 0) |
275 |
|
{ |
276 |
|
|
277 |
0 |
return new String[] { rg.stringMatched(), |
278 |
|
urlPrefix + rg.stringMatched() + urlSuffix }; |
279 |
|
} |
280 |
|
|
281 |
|
|
282 |
|
|
283 |
|
|
284 |
|
else |
285 |
|
{ |
286 |
|
|
287 |
24 |
for (int s = 0; s <= rg.numSubs(); s++) |
288 |
|
{ |
289 |
18 |
System.err.println("Sub " + s + " : " + rg.matchedFrom(s) |
290 |
|
+ " : " + rg.matchedTo(s) + " : '" |
291 |
|
+ rg.stringMatched(s) + "'"); |
292 |
|
} |
293 |
|
|
294 |
6 |
Vector<String> subs = new Vector<String>(); |
295 |
|
|
296 |
|
|
297 |
6 |
int s = 0; |
298 |
24 |
while (s <= ns) |
299 |
|
{ |
300 |
18 |
if (s + 1 <= ns && rg.matchedTo(s) > -1 |
301 |
|
&& rg.matchedTo(s + 1) > -1 |
302 |
|
&& rg.matchedTo(s + 1) < rg.matchedTo(s)) |
303 |
|
{ |
304 |
|
|
305 |
|
|
306 |
0 |
int r = s + 1; |
307 |
0 |
String mtch = ""; |
308 |
0 |
while (r <= ns && rg.matchedTo(r) <= rg.matchedTo(s)) |
309 |
|
{ |
310 |
0 |
if (rg.matchedFrom(r) > -1) |
311 |
|
{ |
312 |
0 |
mtch += rg.stringMatched(r); |
313 |
|
} |
314 |
0 |
r++; |
315 |
|
} |
316 |
0 |
if (mtch.length() > 0) |
317 |
|
{ |
318 |
0 |
subs.addElement(mtch); |
319 |
0 |
subs.addElement(urlPrefix + mtch + urlSuffix); |
320 |
|
} |
321 |
0 |
s = r; |
322 |
|
} |
323 |
|
else |
324 |
|
{ |
325 |
18 |
if (rg.matchedFrom(s) > -1) |
326 |
|
{ |
327 |
6 |
subs.addElement(rg.stringMatched(s)); |
328 |
6 |
subs.addElement( |
329 |
|
urlPrefix + rg.stringMatched(s) + urlSuffix); |
330 |
|
} |
331 |
18 |
s++; |
332 |
|
} |
333 |
|
} |
334 |
|
|
335 |
6 |
String[] res = new String[subs.size()]; |
336 |
18 |
for (int r = 0, rs = subs.size(); r < rs; r++) |
337 |
|
{ |
338 |
12 |
res[r] = subs.elementAt(r); |
339 |
|
} |
340 |
6 |
subs.removeAllElements(); |
341 |
6 |
return res; |
342 |
|
} |
343 |
|
} |
344 |
2 |
if (onlyIfMatches) |
345 |
|
{ |
346 |
1 |
return null; |
347 |
|
} |
348 |
|
} |
349 |
|
|
350 |
31 |
if (idstring.indexOf(SEP) > -1) |
351 |
|
{ |
352 |
0 |
idstring = idstring.substring(idstring.lastIndexOf(SEP) + 1); |
353 |
|
} |
354 |
|
|
355 |
|
|
356 |
31 |
return new String[] { idstring, urlPrefix + idstring + urlSuffix }; |
357 |
|
} |
358 |
|
else |
359 |
|
{ |
360 |
0 |
return new String[] { "", urlPrefix }; |
361 |
|
} |
362 |
|
} |
363 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
364 |
83 |
@Override... |
365 |
|
public String toString() |
366 |
|
{ |
367 |
83 |
return label + SEP + getUrlWithToken(); |
368 |
|
} |
369 |
|
|
370 |
|
|
371 |
|
@return |
372 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
373 |
17 |
public String toStringWithTarget()... |
374 |
|
{ |
375 |
17 |
return label + SEP + getUrlWithToken() + SEP + target; |
376 |
|
} |
377 |
|
|
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
@param |
382 |
|
|
383 |
|
@param |
384 |
|
|
385 |
|
@param |
386 |
|
|
387 |
|
@return |
388 |
|
|
|
|
| 88.9% |
Uncovered Elements: 1 (9) |
Complexity: 3 |
Complexity Density: 0.43 |
|
389 |
8316 |
protected int parseLabel(int firstSep, int psqid, String link)... |
390 |
|
{ |
391 |
8316 |
int p = firstSep; |
392 |
8316 |
int sep = firstSep; |
393 |
8316 |
do |
394 |
|
{ |
395 |
8316 |
sep = p; |
396 |
8316 |
p = link.indexOf(SEP, sep + 1); |
397 |
8316 |
} while (p > sep && p < psqid); |
398 |
|
|
399 |
|
|
400 |
8316 |
label = link.substring(0, sep); |
401 |
|
|
402 |
8316 |
return sep; |
403 |
|
} |
404 |
|
|
405 |
|
|
406 |
|
|
407 |
|
|
408 |
|
@param |
409 |
|
|
410 |
|
@param |
411 |
|
|
412 |
|
@param |
413 |
|
|
414 |
|
|
|
|
| 85.7% |
Uncovered Elements: 2 (14) |
Complexity: 5 |
Complexity Density: 0.62 |
|
415 |
8316 |
protected void parseTarget(String link, int sep, int endOfRegex)... |
416 |
|
{ |
417 |
8316 |
int lastsep = link.lastIndexOf(SEP); |
418 |
|
|
419 |
8316 |
if ((lastsep != sep) && (lastsep > endOfRegex)) |
420 |
|
{ |
421 |
|
|
422 |
8255 |
target = link.substring(lastsep + 1).trim(); |
423 |
|
} |
424 |
|
else |
425 |
|
{ |
426 |
61 |
target = label; |
427 |
|
} |
428 |
|
|
429 |
8316 |
if (target.indexOf(SEP) > -1) |
430 |
|
{ |
431 |
|
|
432 |
0 |
target = target.substring(0, target.indexOf(SEP)); |
433 |
|
} |
434 |
8316 |
else if (target.indexOf(SPACE) > 2) |
435 |
|
{ |
436 |
|
|
437 |
56 |
target = target.substring(0, target.indexOf(SPACE)); |
438 |
|
} |
439 |
|
} |
440 |
|
|
441 |
|
|
442 |
|
|
443 |
|
|
444 |
|
@param |
445 |
|
|
446 |
|
@param |
447 |
|
|
448 |
|
@param |
449 |
|
|
450 |
|
@param |
451 |
|
|
452 |
|
@return |
453 |
|
|
|
|
| 96.7% |
Uncovered Elements: 1 (30) |
Complexity: 7 |
Complexity Density: 0.32 |
|
454 |
8316 |
protected int parseUrl(String link, String varName, int sqidPos, int sep)... |
455 |
|
{ |
456 |
8316 |
urlPrefix = link.substring(sep + 1, sqidPos).trim(); |
457 |
|
|
458 |
|
|
459 |
8316 |
String startDelimiter = DELIM + varName + "=/"; |
460 |
|
|
461 |
|
|
462 |
8316 |
String endDelimiter = "/=" + DELIM; |
463 |
|
|
464 |
8316 |
int startLength = startDelimiter.length(); |
465 |
|
|
466 |
|
|
467 |
8316 |
int p = link.indexOf(endDelimiter, sqidPos + startLength); |
468 |
|
|
469 |
8316 |
if (link.indexOf(startDelimiter) == sqidPos |
470 |
|
&& (p > sqidPos + startLength)) |
471 |
|
{ |
472 |
|
|
473 |
4 |
urlSuffix = link.substring(p + endDelimiter.length()); |
474 |
4 |
regexReplace = link.substring(sqidPos + startLength, p); |
475 |
4 |
try |
476 |
|
{ |
477 |
4 |
com.stevesoft.pat.Regex rg = com.stevesoft.pat.Regex |
478 |
|
.perlCode("/" + regexReplace + "/"); |
479 |
4 |
if (rg == null) |
480 |
|
{ |
481 |
1 |
invalidMessage = "Invalid Regular Expression : '" + regexReplace |
482 |
|
+ "'\n"; |
483 |
|
} |
484 |
|
} catch (Exception e) |
485 |
|
{ |
486 |
0 |
invalidMessage = "Invalid Regular Expression : '" + regexReplace |
487 |
|
+ "'\n"; |
488 |
|
} |
489 |
|
} |
490 |
|
else |
491 |
|
{ |
492 |
|
|
493 |
8312 |
regexReplace = null; |
494 |
|
|
495 |
8312 |
if (link.indexOf(DELIM + varName + DELIM) == sqidPos) |
496 |
|
{ |
497 |
8309 |
int lastsep = link.lastIndexOf(SEP); |
498 |
8309 |
if (lastsep < sqidPos + startLength - 1) |
499 |
|
{ |
500 |
|
|
501 |
57 |
lastsep = link.length(); |
502 |
|
} |
503 |
8309 |
urlSuffix = link.substring(sqidPos + startLength - 1, lastsep) |
504 |
|
.trim(); |
505 |
8309 |
regexReplace = null; |
506 |
|
} |
507 |
|
else |
508 |
|
{ |
509 |
3 |
invalidMessage = "Warning: invalid regex structure for URL link : " |
510 |
|
+ link; |
511 |
|
} |
512 |
|
} |
513 |
|
|
514 |
8316 |
return p; |
515 |
|
} |
516 |
|
|
517 |
|
|
518 |
|
|
519 |
|
|
520 |
|
@param |
521 |
|
|
522 |
|
@param |
523 |
|
|
524 |
|
|
525 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 3 |
Complexity Density: 1 |
|
526 |
26 |
public void createLinksFromSeq(final SequenceI seq,... |
527 |
|
Map<String, List<String>> linkset) |
528 |
|
{ |
529 |
26 |
if (seq != null && dynamic) |
530 |
|
{ |
531 |
24 |
createDynamicLinks(seq, linkset); |
532 |
|
} |
533 |
|
else |
534 |
|
{ |
535 |
2 |
createStaticLink(linkset); |
536 |
|
} |
537 |
|
} |
538 |
|
|
539 |
|
|
540 |
|
|
541 |
|
|
542 |
|
@param |
543 |
|
|
544 |
|
|
545 |
|
|
|
|
| 75% |
Uncovered Elements: 1 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
546 |
2 |
protected void createStaticLink(Map<String, List<String>> linkset)... |
547 |
|
{ |
548 |
2 |
if (!linkset.containsKey(label + SEP + getUrlPrefix())) |
549 |
|
{ |
550 |
|
|
551 |
2 |
linkset.put(label + SEP + getUrlPrefix(), |
552 |
|
Arrays.asList(target, label, null, getUrlPrefix())); |
553 |
|
} |
554 |
|
} |
555 |
|
|
556 |
|
|
557 |
|
|
558 |
|
|
559 |
|
@param |
560 |
|
|
561 |
|
@param |
562 |
|
|
563 |
|
|
564 |
|
|
|
|
| 80% |
Uncovered Elements: 5 (25) |
Complexity: 10 |
Complexity Density: 0.77 |
|
565 |
24 |
protected void createDynamicLinks(final SequenceI seq,... |
566 |
|
Map<String, List<String>> linkset) |
567 |
|
{ |
568 |
|
|
569 |
24 |
String id = seq.getName(); |
570 |
24 |
String descr = seq.getDescription(); |
571 |
24 |
if (descr != null && descr.length() < 1) |
572 |
|
{ |
573 |
0 |
descr = null; |
574 |
|
} |
575 |
|
|
576 |
24 |
if (usesDBAccession()) |
577 |
|
{ |
578 |
|
|
579 |
15 |
DBRefEntry[] dbr = DBRefUtils.selectRefs(seq.getDBRefs(), |
580 |
|
new String[] |
581 |
|
{ target }); |
582 |
|
|
583 |
|
|
584 |
15 |
if (dbr != null) |
585 |
|
{ |
586 |
12 |
for (int r = 0; r < dbr.length; r++) |
587 |
|
{ |
588 |
|
|
589 |
8 |
createBareURLLink(dbr[r].getAccessionId(), true, linkset); |
590 |
|
} |
591 |
|
} |
592 |
|
} |
593 |
9 |
else if (!usesDBAccession() && id != null) |
594 |
|
{ |
595 |
|
|
596 |
9 |
createBareURLLink(id, false, linkset); |
597 |
|
} |
598 |
|
|
599 |
|
|
600 |
|
|
601 |
24 |
if (descr != null && getRegexReplace() != null) |
602 |
|
{ |
603 |
|
|
604 |
0 |
createBareURLLink(descr, false, linkset); |
605 |
|
} |
606 |
|
} |
607 |
|
|
608 |
|
|
609 |
|
|
610 |
|
|
611 |
|
|
|
|
| 87.5% |
Uncovered Elements: 2 (16) |
Complexity: 5 |
Complexity Density: 0.62 |
|
612 |
17 |
protected void createBareURLLink(String id, Boolean combineLabel,... |
613 |
|
Map<String, List<String>> linkset) |
614 |
|
{ |
615 |
17 |
String[] urls = makeUrls(id, true); |
616 |
17 |
if (urls != null) |
617 |
|
{ |
618 |
34 |
for (int u = 0; u < urls.length; u += 2) |
619 |
|
{ |
620 |
17 |
if (!linkset.containsKey(urls[u] + SEP + urls[u + 1])) |
621 |
|
{ |
622 |
17 |
String thisLabel = label; |
623 |
17 |
if (combineLabel) |
624 |
|
{ |
625 |
|
|
626 |
8 |
thisLabel = label + SEP + urls[u]; |
627 |
|
} |
628 |
|
|
629 |
17 |
linkset.put(urls[u] + SEP + urls[u + 1], |
630 |
|
Arrays.asList(target, thisLabel, urls[u], urls[u + 1])); |
631 |
|
} |
632 |
|
} |
633 |
|
} |
634 |
|
} |
635 |
|
} |