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 |
|
|
|
|
| 41.9% |
Uncovered Elements: 18 (31) |
Complexity: 14 |
Complexity Density: 0.78 |
|
22 |
|
public class Group implements java.io.Serializable |
23 |
|
{ |
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private java.lang.String _name; |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private boolean _display; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
private boolean _has_display; |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
48 |
216 |
public Group()... |
49 |
|
{ |
50 |
216 |
super(); |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public void deleteDisplay()... |
60 |
|
{ |
61 |
0 |
this._has_display = false; |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
@return |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
249 |
public boolean getDisplay()... |
70 |
|
{ |
71 |
249 |
return this._display; |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
@return |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
249 |
public java.lang.String getName()... |
80 |
|
{ |
81 |
249 |
return this._name; |
82 |
|
} |
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
|
@return |
88 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
66 |
public boolean hasDisplay()... |
90 |
|
{ |
91 |
66 |
return this._has_display; |
92 |
|
} |
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
@return |
98 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
0 |
public boolean isDisplay()... |
100 |
|
{ |
101 |
0 |
return this._display; |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
107 |
|
@return |
108 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
109 |
0 |
public boolean isValid()... |
110 |
|
{ |
111 |
0 |
try |
112 |
|
{ |
113 |
0 |
validate(); |
114 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
115 |
|
{ |
116 |
0 |
return false; |
117 |
|
} |
118 |
0 |
return true; |
119 |
|
} |
120 |
|
|
121 |
|
|
122 |
|
|
123 |
|
|
124 |
|
@param |
125 |
|
@throws |
126 |
|
|
127 |
|
|
128 |
|
@throws |
129 |
|
|
130 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
0 |
public void marshal(final java.io.Writer out)... |
132 |
|
throws org.exolab.castor.xml.MarshalException, |
133 |
|
org.exolab.castor.xml.ValidationException |
134 |
|
{ |
135 |
0 |
Marshaller.marshal(this, out); |
136 |
|
} |
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
@param |
142 |
|
@throws |
143 |
|
|
144 |
|
@throws |
145 |
|
|
146 |
|
@throws |
147 |
|
|
148 |
|
|
149 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
150 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
151 |
|
throws java.io.IOException, |
152 |
|
org.exolab.castor.xml.MarshalException, |
153 |
|
org.exolab.castor.xml.ValidationException |
154 |
|
{ |
155 |
0 |
Marshaller.marshal(this, handler); |
156 |
|
} |
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
|
@param |
162 |
|
|
163 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
164 |
216 |
public void setDisplay(final boolean display)... |
165 |
|
{ |
166 |
216 |
this._display = display; |
167 |
216 |
this._has_display = true; |
168 |
|
} |
169 |
|
|
170 |
|
|
171 |
|
|
172 |
|
|
173 |
|
@param |
174 |
|
|
175 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
176 |
216 |
public void setName(final java.lang.String name)... |
177 |
|
{ |
178 |
216 |
this._name = name; |
179 |
|
} |
180 |
|
|
181 |
|
|
182 |
|
|
183 |
|
|
184 |
|
@param |
185 |
|
@throws |
186 |
|
|
187 |
|
|
188 |
|
@throws |
189 |
|
|
190 |
|
@return |
191 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
192 |
0 |
public static jalview.schemabinding.version2.Group unmarshal(... |
193 |
|
final java.io.Reader reader) |
194 |
|
throws org.exolab.castor.xml.MarshalException, |
195 |
|
org.exolab.castor.xml.ValidationException |
196 |
|
{ |
197 |
0 |
return (jalview.schemabinding.version2.Group) Unmarshaller.unmarshal( |
198 |
|
jalview.schemabinding.version2.Group.class, reader); |
199 |
|
} |
200 |
|
|
201 |
|
|
202 |
|
|
203 |
|
|
204 |
|
@throws |
205 |
|
|
206 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
207 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
208 |
|
{ |
209 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
210 |
0 |
validator.validate(this); |
211 |
|
} |
212 |
|
|
213 |
|
} |