1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.datamodel; |
22 |
|
|
23 |
|
import java.util.Collections; |
24 |
|
import java.util.Enumeration; |
25 |
|
import java.util.Hashtable; |
26 |
|
|
27 |
|
import jalview.io.StructureFile; |
28 |
|
import jalview.util.CaseInsensitiveString; |
29 |
|
|
|
|
| 83.5% |
Uncovered Elements: 38 (230) |
Complexity: 96 |
Complexity Density: 0.81 |
|
30 |
|
public class PDBEntry |
31 |
|
{ |
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
private static final String CHAIN_ID = "chain_code"; |
37 |
|
|
38 |
|
private Hashtable<String, Object> properties; |
39 |
|
|
40 |
|
private static final int PDB_ID_LENGTH = 4; |
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
private static final String FAKED_ID = "faked_pdbid"; |
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
private static final String AUTHORITATIVE_ID = "authoritative_pdbid"; |
53 |
|
|
54 |
|
private String file; |
55 |
|
|
56 |
|
private String type; |
57 |
|
|
58 |
|
private String id; |
59 |
|
|
60 |
|
private StructureFile sf = null; |
61 |
|
|
|
|
| 75% |
Uncovered Elements: 4 (16) |
Complexity: 6 |
Complexity Density: 0.67 |
|
62 |
|
public enum Type |
63 |
|
{ |
64 |
|
|
65 |
|
|
66 |
|
PDB("pdb", "pdb"), MMCIF("mmcif", "cif"), BCIF("bcif", "bcif"), |
67 |
|
FILE("?", "?"); |
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
@see |
73 |
|
|
74 |
|
String ext; |
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
@see |
79 |
|
|
80 |
|
String format; |
81 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
82 |
220 |
private Type(String fmt, String ex)... |
83 |
|
{ |
84 |
220 |
format = fmt; |
85 |
220 |
ext = ex; |
86 |
|
} |
87 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
0 |
public String getFormat()... |
89 |
|
{ |
90 |
0 |
return format; |
91 |
|
} |
92 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
0 |
public String getExtension()... |
94 |
|
{ |
95 |
0 |
return ext; |
96 |
|
} |
97 |
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
|
@param |
102 |
|
@return |
103 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
104 |
96 |
public static Type getType(String value)... |
105 |
|
{ |
106 |
96 |
for (Type t : Type.values()) |
107 |
|
{ |
108 |
108 |
if (t.toString().equalsIgnoreCase(value)) |
109 |
|
{ |
110 |
95 |
return t; |
111 |
|
} |
112 |
|
} |
113 |
1 |
return null; |
114 |
|
} |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
@param |
120 |
|
@return |
121 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
122 |
4 |
public boolean matches(String t)... |
123 |
|
{ |
124 |
4 |
return (this.toString().equalsIgnoreCase(t)); |
125 |
|
} |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (17) |
Complexity: 7 |
Complexity Density: 0.64 |
|
132 |
17540 |
@Override... |
133 |
|
public boolean equals(Object obj) |
134 |
|
{ |
135 |
17540 |
if (obj == null || !(obj instanceof PDBEntry)) |
136 |
|
{ |
137 |
2 |
return false; |
138 |
|
} |
139 |
17538 |
if (obj == this) |
140 |
|
{ |
141 |
11 |
return true; |
142 |
|
} |
143 |
17527 |
PDBEntry o = (PDBEntry) obj; |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
17527 |
boolean idMatches = id == o.id |
151 |
|
|| (id != null && id.equalsIgnoreCase(o.id)); |
152 |
17527 |
boolean fileMatches = file == o.file |
153 |
|
|| (file != null && file.equals(o.file)); |
154 |
17527 |
boolean typeMatches = type == o.type |
155 |
|
|| (type != null && type.equals(o.type)); |
156 |
17527 |
if (idMatches && fileMatches && typeMatches) |
157 |
|
{ |
158 |
377 |
return properties == o.properties |
159 |
|
|| (properties != null && properties.equals(o.properties)); |
160 |
|
} |
161 |
17150 |
return false; |
162 |
|
} |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
167 |
737 |
public PDBEntry()... |
168 |
|
{ |
169 |
|
} |
170 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
90 |
public PDBEntry(String pdbId, String chain, PDBEntry.Type type,... |
172 |
|
String filePath) |
173 |
|
{ |
174 |
90 |
init(pdbId, chain, type, filePath); |
175 |
|
} |
176 |
|
|
177 |
|
|
178 |
|
@param |
179 |
|
@param |
180 |
|
@param |
181 |
|
@param |
182 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
183 |
302 |
void init(String pdbId, String chain, PDBEntry.Type entryType,... |
184 |
|
String filePath) |
185 |
|
{ |
186 |
302 |
this.id = pdbId; |
187 |
302 |
this.type = entryType == null ? null : entryType.toString(); |
188 |
302 |
this.file = filePath; |
189 |
302 |
setChainCode(chain); |
190 |
|
} |
191 |
|
|
192 |
|
|
193 |
|
|
194 |
|
|
195 |
|
@param |
196 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
197 |
146 |
public PDBEntry(PDBEntry entry)... |
198 |
|
{ |
199 |
146 |
file = entry.file; |
200 |
146 |
type = entry.type; |
201 |
146 |
id = entry.id; |
202 |
146 |
if (entry.properties != null) |
203 |
|
{ |
204 |
6 |
properties = (Hashtable<String, Object>) entry.properties.clone(); |
205 |
|
} |
206 |
|
} |
207 |
|
|
208 |
|
|
209 |
|
|
210 |
|
|
211 |
|
|
212 |
|
|
213 |
|
@param |
214 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (16) |
Complexity: 7 |
Complexity Density: 0.7 |
|
215 |
213 |
public PDBEntry(DBRefEntry dbr)... |
216 |
|
{ |
217 |
213 |
if (!DBRefSource.PDB.equals(dbr.getSource())) |
218 |
|
{ |
219 |
1 |
throw new IllegalArgumentException( |
220 |
|
"Invalid source: " + dbr.getSource()); |
221 |
|
} |
222 |
|
|
223 |
212 |
String pdbId = dbr.getAccessionId(); |
224 |
212 |
String chainCode = null; |
225 |
212 |
if (pdbId.length() == PDB_ID_LENGTH + 1) |
226 |
|
{ |
227 |
17 |
char chain = pdbId.charAt(PDB_ID_LENGTH); |
228 |
17 |
if (('a' <= chain && chain <= 'z') || ('A' <= chain && chain <= 'Z')) |
229 |
|
{ |
230 |
15 |
pdbId = pdbId.substring(0, PDB_ID_LENGTH); |
231 |
15 |
chainCode = String.valueOf(chain); |
232 |
|
} |
233 |
|
} |
234 |
212 |
init(pdbId, chainCode, null, null); |
235 |
|
} |
236 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
237 |
474 |
public void setFile(String f)... |
238 |
|
{ |
239 |
474 |
this.file = f; |
240 |
|
} |
241 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
242 |
19501 |
public String getFile()... |
243 |
|
{ |
244 |
19501 |
return file; |
245 |
|
} |
246 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
247 |
312 |
public void setType(String t)... |
248 |
|
{ |
249 |
312 |
this.type = t; |
250 |
|
} |
251 |
|
|
|
|
| 66.7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
252 |
120 |
public void setType(PDBEntry.Type type)... |
253 |
|
{ |
254 |
120 |
this.type = type == null ? null : type.toString(); |
255 |
|
} |
256 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
257 |
361 |
public String getType()... |
258 |
|
{ |
259 |
361 |
return type; |
260 |
|
} |
261 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
262 |
737 |
public void setId(String id)... |
263 |
|
{ |
264 |
737 |
this.id = id; |
265 |
|
} |
266 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
267 |
96793 |
public String getId()... |
268 |
|
{ |
269 |
96793 |
return id; |
270 |
|
} |
271 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
272 |
636 |
public void setProperty(String key, Object value)... |
273 |
|
{ |
274 |
636 |
if (this.properties == null) |
275 |
|
{ |
276 |
495 |
this.properties = new Hashtable<String, Object>(); |
277 |
|
} |
278 |
636 |
properties.put(key, value); |
279 |
|
} |
280 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
281 |
45263 |
public Object getProperty(String key)... |
282 |
|
{ |
283 |
45263 |
return properties == null ? null : properties.get(key); |
284 |
|
} |
285 |
|
|
286 |
|
|
287 |
|
|
288 |
|
|
289 |
|
|
290 |
|
@return |
291 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
292 |
203 |
public Enumeration<String> getProperties()... |
293 |
|
{ |
294 |
203 |
if (properties == null) |
295 |
|
{ |
296 |
114 |
return Collections.emptyEnumeration(); |
297 |
|
} |
298 |
89 |
return properties.keys(); |
299 |
|
} |
300 |
|
|
301 |
|
|
302 |
|
|
303 |
|
@return |
304 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 3 |
Complexity Density: 3 |
|
305 |
386 |
public String getChainCode()... |
306 |
|
{ |
307 |
386 |
return (properties == null || properties.get(CHAIN_ID) == null) ? null |
308 |
|
: properties.get(CHAIN_ID).toString(); |
309 |
|
} |
310 |
|
|
311 |
|
|
312 |
|
|
313 |
|
|
314 |
|
|
315 |
|
|
316 |
|
@param |
317 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
318 |
651 |
public void setChainCode(String chainCode)... |
319 |
|
{ |
320 |
651 |
if (chainCode == null) |
321 |
|
{ |
322 |
227 |
deleteProperty(CHAIN_ID); |
323 |
|
} |
324 |
|
else |
325 |
|
{ |
326 |
424 |
setProperty(CHAIN_ID, new CaseInsensitiveString(chainCode)); |
327 |
|
} |
328 |
|
} |
329 |
|
|
330 |
|
|
331 |
|
|
332 |
|
|
333 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
334 |
227 |
Object deleteProperty(String key)... |
335 |
|
{ |
336 |
227 |
Object result = null; |
337 |
227 |
if (properties != null) |
338 |
|
{ |
339 |
1 |
result = properties.remove(key); |
340 |
|
} |
341 |
227 |
return result; |
342 |
|
} |
343 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
344 |
26 |
@Override... |
345 |
|
public String toString() |
346 |
|
{ |
347 |
26 |
return id; |
348 |
|
} |
349 |
|
|
350 |
|
|
351 |
|
|
352 |
|
|
353 |
|
|
354 |
|
@deprecated |
355 |
|
@see |
356 |
|
@see |
357 |
|
@see |
358 |
|
@return |
359 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
360 |
0 |
@Deprecated... |
361 |
|
public Hashtable<String, Object> getProps() |
362 |
|
{ |
363 |
0 |
return properties; |
364 |
|
} |
365 |
|
|
366 |
|
|
367 |
|
|
368 |
|
|
369 |
|
|
370 |
|
@deprecated |
371 |
|
@return |
372 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
373 |
0 |
@Deprecated... |
374 |
|
public void setProps(Hashtable<String, Object> props) |
375 |
|
{ |
376 |
0 |
properties = props; |
377 |
|
} |
378 |
|
|
379 |
|
|
380 |
|
|
381 |
|
|
382 |
|
|
383 |
|
|
384 |
|
|
385 |
|
|
386 |
|
|
387 |
|
@param |
388 |
|
@return |
389 |
|
|
|
|
| 93.7% |
Uncovered Elements: 4 (63) |
Complexity: 27 |
Complexity Density: 0.77 |
|
390 |
17498 |
public boolean updateFrom(PDBEntry newEntry)... |
391 |
|
{ |
392 |
17498 |
if (this.equals(newEntry)) |
393 |
|
{ |
394 |
327 |
return true; |
395 |
|
} |
396 |
|
|
397 |
17171 |
String newId = newEntry.getId(); |
398 |
17171 |
if (newId == null || getId() == null) |
399 |
|
{ |
400 |
0 |
return false; |
401 |
|
} |
402 |
|
|
403 |
17171 |
boolean idMatches = getId().equalsIgnoreCase(newId); |
404 |
|
|
405 |
|
|
406 |
|
|
407 |
|
|
408 |
17171 |
String newFile = newEntry.getFile(); |
409 |
17171 |
if (newFile != null && getFile() != null) |
410 |
|
{ |
411 |
179 |
if (!newFile.equals(getFile())) |
412 |
|
{ |
413 |
103 |
return false; |
414 |
|
} |
415 |
|
else |
416 |
|
{ |
417 |
|
|
418 |
76 |
if (!idMatches) |
419 |
|
{ |
420 |
|
|
421 |
|
|
422 |
|
|
423 |
2 |
if (!newEntry.fakedPDBId() && !isAuthoritative()) |
424 |
|
{ |
425 |
0 |
return false; |
426 |
|
} |
427 |
|
} |
428 |
|
} |
429 |
|
} |
430 |
|
else |
431 |
|
{ |
432 |
|
|
433 |
16992 |
if (!idMatches) |
434 |
|
{ |
435 |
16919 |
return false; |
436 |
|
} |
437 |
|
} |
438 |
|
|
439 |
|
|
440 |
|
|
441 |
|
|
442 |
149 |
String newChain = newEntry.getChainCode(); |
443 |
149 |
if (newChain != null && newChain.length() > 0 && getChainCode() != null |
444 |
|
&& getChainCode().length() > 0 |
445 |
|
&& !getChainCode().equalsIgnoreCase(newChain)) |
446 |
|
{ |
447 |
8 |
return false; |
448 |
|
} |
449 |
|
|
450 |
|
|
451 |
|
|
452 |
|
|
453 |
141 |
String newType = newEntry.getType(); |
454 |
141 |
if (getFile() == null && newFile != null) |
455 |
|
{ |
456 |
3 |
setFile(newFile); |
457 |
3 |
setType(newType); |
458 |
|
} |
459 |
|
|
460 |
|
|
461 |
|
|
462 |
|
|
463 |
|
|
464 |
141 |
if (getType() == null && newType != null) |
465 |
|
{ |
466 |
7 |
setType(newType); |
467 |
|
} |
468 |
|
|
469 |
|
|
470 |
|
|
471 |
|
|
472 |
|
|
473 |
141 |
if (newChain != null && newChain.length() > 0 |
474 |
|
&& !newChain.equalsIgnoreCase(getChainCode())) |
475 |
|
{ |
476 |
18 |
setChainCode(newChain); |
477 |
|
} |
478 |
|
|
479 |
|
|
480 |
|
|
481 |
|
|
482 |
141 |
Enumeration<String> newProps = newEntry.getProperties(); |
483 |
186 |
while (newProps.hasMoreElements()) |
484 |
|
{ |
485 |
|
|
486 |
|
|
487 |
|
|
488 |
|
|
489 |
45 |
String key = newProps.nextElement(); |
490 |
45 |
Object value = newEntry.getProperty(key); |
491 |
45 |
if (FAKED_ID.equals(key) || AUTHORITATIVE_ID.equals(key)) |
492 |
|
{ |
493 |
|
|
494 |
1 |
continue; |
495 |
|
} |
496 |
44 |
if (!value.equals(getProperty(key))) |
497 |
|
{ |
498 |
11 |
setProperty(key, value); |
499 |
|
} |
500 |
|
} |
501 |
141 |
return true; |
502 |
|
} |
503 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
504 |
1 |
public void setAuthoritative(boolean isAuthoritative)... |
505 |
|
{ |
506 |
1 |
setProperty(AUTHORITATIVE_ID, Boolean.valueOf(isAuthoritative)); |
507 |
|
} |
508 |
|
|
509 |
|
|
510 |
|
|
511 |
|
@return |
512 |
|
|
513 |
|
|
|
|
| 87.5% |
Uncovered Elements: 1 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
514 |
3 |
public boolean isAuthoritative()... |
515 |
|
{ |
516 |
3 |
if (_hasProperty(AUTHORITATIVE_ID)) |
517 |
|
{ |
518 |
2 |
Object authId = getProperty(AUTHORITATIVE_ID); |
519 |
2 |
return (authId instanceof Boolean) ? (Boolean) authId |
520 |
|
: Boolean.valueOf(authId.toString()); |
521 |
|
} |
522 |
1 |
return false; |
523 |
|
} |
524 |
|
|
525 |
|
|
526 |
|
|
527 |
|
|
528 |
|
@return |
529 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
530 |
4 |
public boolean fakedPDBId()... |
531 |
|
{ |
532 |
4 |
if (_hasProperty(FAKED_ID)) |
533 |
|
{ |
534 |
2 |
return true; |
535 |
|
} |
536 |
2 |
return false; |
537 |
|
} |
538 |
|
|
|
|
| 75% |
Uncovered Elements: 2 (8) |
Complexity: 3 |
Complexity Density: 0.75 |
|
539 |
303 |
public void setFakedPDBId(boolean faked)... |
540 |
|
{ |
541 |
303 |
if (faked) |
542 |
|
{ |
543 |
96 |
setProperty(FAKED_ID, Boolean.TRUE); |
544 |
|
} |
545 |
|
else |
546 |
|
{ |
547 |
207 |
if (properties != null) |
548 |
|
{ |
549 |
0 |
properties.remove(FAKED_ID); |
550 |
|
} |
551 |
|
} |
552 |
|
} |
553 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
554 |
7 |
private boolean _hasProperty(final String key)... |
555 |
|
{ |
556 |
7 |
return (properties != null && properties.containsKey(key)); |
557 |
|
} |
558 |
|
|
559 |
|
private static final String RETRIEVE_FROM = "RETRIEVE_FROM"; |
560 |
|
|
561 |
|
private static final String PROVIDER = "PROVIDER"; |
562 |
|
|
563 |
|
private static final String MODELPAGE = "PROVIDERPAGE"; |
564 |
|
|
565 |
|
private static final String PROVIDERCATEGORY = "PROVIDERCATEGORY"; |
566 |
|
|
567 |
|
|
568 |
|
|
569 |
|
|
570 |
|
@param |
571 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
572 |
0 |
public void setRetrievalUrl(String urlStr)... |
573 |
|
{ |
574 |
0 |
setProperty(RETRIEVE_FROM, urlStr); |
575 |
|
} |
576 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
577 |
0 |
public boolean hasRetrievalUrl()... |
578 |
|
{ |
579 |
0 |
return _hasProperty(RETRIEVE_FROM); |
580 |
|
} |
581 |
|
|
582 |
|
|
583 |
|
|
584 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
585 |
0 |
public String getRetrievalUrl()... |
586 |
|
{ |
587 |
0 |
return (String) getProperty(RETRIEVE_FROM); |
588 |
|
} |
589 |
|
|
590 |
|
|
591 |
|
|
592 |
|
|
593 |
|
@param |
594 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
595 |
0 |
public void setProvider(String provider)... |
596 |
|
{ |
597 |
0 |
setProperty(PROVIDER, provider); |
598 |
|
} |
599 |
|
|
600 |
|
|
601 |
|
|
602 |
|
|
603 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
604 |
44934 |
public String getProvider()... |
605 |
|
{ |
606 |
44934 |
return (String) getProperty(PROVIDER); |
607 |
|
} |
608 |
|
|
609 |
|
|
610 |
|
|
611 |
|
|
612 |
|
@param |
613 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
614 |
0 |
public void setProviderPage(String urlStr)... |
615 |
|
{ |
616 |
0 |
setProperty(MODELPAGE, urlStr); |
617 |
|
} |
618 |
|
|
619 |
|
|
620 |
|
|
621 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
622 |
0 |
public String getProviderPage()... |
623 |
|
{ |
624 |
0 |
return (String) getProperty(MODELPAGE); |
625 |
|
} |
626 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
627 |
0 |
public boolean hasProviderPage()... |
628 |
|
{ |
629 |
0 |
return _hasProperty(MODELPAGE); |
630 |
|
} |
631 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
632 |
0 |
public boolean hasProvider()... |
633 |
|
{ |
634 |
0 |
return _hasProperty(PROVIDER); |
635 |
|
} |
636 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
637 |
0 |
public StructureFile getStructureFile()... |
638 |
|
{ |
639 |
0 |
return sf; |
640 |
|
} |
641 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
642 |
55 |
public void setStructureFile(StructureFile f)... |
643 |
|
{ |
644 |
55 |
sf = f; |
645 |
|
} |
646 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
647 |
0 |
public boolean hasStructureFile()... |
648 |
|
{ |
649 |
0 |
return sf != null && sf.inFile != null && sf.inFile.exists(); |
650 |
|
} |
651 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
652 |
0 |
public void setProviderCategory(String providerCategory)... |
653 |
|
{ |
654 |
0 |
setProperty(PROVIDERCATEGORY, providerCategory); |
655 |
|
} |
656 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
657 |
0 |
public String getProviderCategory()... |
658 |
|
{ |
659 |
0 |
return (String) getProperty(PROVIDERCATEGORY); |
660 |
|
} |
661 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
662 |
0 |
public boolean hasProviderCategory()... |
663 |
|
{ |
664 |
0 |
return _hasProperty(PROVIDERCATEGORY); |
665 |
|
} |
666 |
|
|
667 |
|
} |