1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
package jalview.schemabinding.version2; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
import org.exolab.castor.xml.Marshaller; |
15 |
|
import org.exolab.castor.xml.Unmarshaller; |
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
@version |
21 |
|
|
|
|
| 12.5% |
Uncovered Elements: 14 (16) |
Complexity: 7 |
Complexity Density: 0.7 |
|
22 |
|
public class AnnotationColours extends AnnotationColourScheme implements |
23 |
|
java.io.Serializable |
24 |
|
{ |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
30 |
4 |
public AnnotationColours()... |
31 |
|
{ |
32 |
4 |
super(); |
33 |
|
} |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
@return |
43 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
44 |
0 |
public boolean isValid()... |
45 |
|
{ |
46 |
0 |
try |
47 |
|
{ |
48 |
0 |
validate(); |
49 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
50 |
|
{ |
51 |
0 |
return false; |
52 |
|
} |
53 |
0 |
return true; |
54 |
|
} |
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
@param |
60 |
|
@throws |
61 |
|
|
62 |
|
|
63 |
|
@throws |
64 |
|
|
65 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
0 |
public void marshal(final java.io.Writer out)... |
67 |
|
throws org.exolab.castor.xml.MarshalException, |
68 |
|
org.exolab.castor.xml.ValidationException |
69 |
|
{ |
70 |
0 |
Marshaller.marshal(this, out); |
71 |
|
} |
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
@param |
77 |
|
@throws |
78 |
|
|
79 |
|
@throws |
80 |
|
|
81 |
|
@throws |
82 |
|
|
83 |
|
|
84 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
86 |
|
throws java.io.IOException, |
87 |
|
org.exolab.castor.xml.MarshalException, |
88 |
|
org.exolab.castor.xml.ValidationException |
89 |
|
{ |
90 |
0 |
Marshaller.marshal(this, handler); |
91 |
|
} |
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
@param |
97 |
|
@throws |
98 |
|
|
99 |
|
|
100 |
|
@throws |
101 |
|
|
102 |
|
@return |
103 |
|
|
104 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
0 |
public static jalview.schemabinding.version2.AnnotationColourScheme unmarshal(... |
106 |
|
final java.io.Reader reader) |
107 |
|
throws org.exolab.castor.xml.MarshalException, |
108 |
|
org.exolab.castor.xml.ValidationException |
109 |
|
{ |
110 |
0 |
return (jalview.schemabinding.version2.AnnotationColourScheme) Unmarshaller |
111 |
|
.unmarshal( |
112 |
|
jalview.schemabinding.version2.AnnotationColours.class, |
113 |
|
reader); |
114 |
|
} |
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
@throws |
120 |
|
|
121 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
122 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
123 |
|
{ |
124 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
125 |
0 |
validator.validate(this); |
126 |
|
} |
127 |
|
|
128 |
|
} |