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 |
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 7 |
Complexity Density: 0.7 |
|
22 |
|
public class UserColourScheme extends JalviewUserColours implements |
23 |
|
java.io.Serializable |
24 |
|
{ |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
30 |
0 |
public UserColourScheme()... |
31 |
|
{ |
32 |
0 |
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 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0 |
public static jalview.schemabinding.version2.JalviewUserColours unmarshal(... |
105 |
|
final java.io.Reader reader) |
106 |
|
throws org.exolab.castor.xml.MarshalException, |
107 |
|
org.exolab.castor.xml.ValidationException |
108 |
|
{ |
109 |
0 |
return (jalview.schemabinding.version2.JalviewUserColours) Unmarshaller |
110 |
|
.unmarshal( |
111 |
|
jalview.schemabinding.version2.UserColourScheme.class, |
112 |
|
reader); |
113 |
|
} |
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
@throws |
119 |
|
|
120 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
121 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
122 |
|
{ |
123 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
124 |
0 |
validator.validate(this); |
125 |
|
} |
126 |
|
|
127 |
|
} |