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: 23 (23) |
Complexity: 10 |
Complexity Density: 0.71 |
|
22 |
|
public class Mapping extends jalview.schemabinding.version2.MapListType |
23 |
|
implements java.io.Serializable |
24 |
|
{ |
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
private java.lang.Object _choiceValue; |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
private jalview.schemabinding.version2.MappingChoice _mappingChoice; |
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
44 |
0 |
public Mapping()... |
45 |
|
{ |
46 |
0 |
super(); |
47 |
|
} |
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
@return |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0 |
public java.lang.Object getChoiceValue()... |
60 |
|
{ |
61 |
0 |
return this._choiceValue; |
62 |
|
} |
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
@return |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
public jalview.schemabinding.version2.MappingChoice getMappingChoice()... |
70 |
|
{ |
71 |
0 |
return this._mappingChoice; |
72 |
|
} |
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
@return |
78 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 0.5 |
|
79 |
0 |
public boolean isValid()... |
80 |
|
{ |
81 |
0 |
try |
82 |
|
{ |
83 |
0 |
validate(); |
84 |
|
} catch (org.exolab.castor.xml.ValidationException vex) |
85 |
|
{ |
86 |
0 |
return false; |
87 |
|
} |
88 |
0 |
return true; |
89 |
|
} |
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
@param |
95 |
|
@throws |
96 |
|
|
97 |
|
|
98 |
|
@throws |
99 |
|
|
100 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
101 |
0 |
public void marshal(final java.io.Writer out)... |
102 |
|
throws org.exolab.castor.xml.MarshalException, |
103 |
|
org.exolab.castor.xml.ValidationException |
104 |
|
{ |
105 |
0 |
Marshaller.marshal(this, out); |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
@param |
112 |
|
@throws |
113 |
|
|
114 |
|
@throws |
115 |
|
|
116 |
|
@throws |
117 |
|
|
118 |
|
|
119 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
0 |
public void marshal(final org.xml.sax.ContentHandler handler)... |
121 |
|
throws java.io.IOException, |
122 |
|
org.exolab.castor.xml.MarshalException, |
123 |
|
org.exolab.castor.xml.ValidationException |
124 |
|
{ |
125 |
0 |
Marshaller.marshal(this, handler); |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
@param |
132 |
|
|
133 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
134 |
0 |
public void setMappingChoice(... |
135 |
|
final jalview.schemabinding.version2.MappingChoice mappingChoice) |
136 |
|
{ |
137 |
0 |
this._mappingChoice = mappingChoice; |
138 |
0 |
this._choiceValue = mappingChoice; |
139 |
|
} |
140 |
|
|
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
@param |
145 |
|
@throws |
146 |
|
|
147 |
|
|
148 |
|
@throws |
149 |
|
|
150 |
|
@return |
151 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
152 |
0 |
public static jalview.schemabinding.version2.MapListType unmarshal(... |
153 |
|
final java.io.Reader reader) |
154 |
|
throws org.exolab.castor.xml.MarshalException, |
155 |
|
org.exolab.castor.xml.ValidationException |
156 |
|
{ |
157 |
0 |
return (jalview.schemabinding.version2.MapListType) Unmarshaller |
158 |
|
.unmarshal(jalview.schemabinding.version2.Mapping.class, reader); |
159 |
|
} |
160 |
|
|
161 |
|
|
162 |
|
|
163 |
|
|
164 |
|
@throws |
165 |
|
|
166 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
167 |
0 |
public void validate() throws org.exolab.castor.xml.ValidationException... |
168 |
|
{ |
169 |
0 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
170 |
0 |
validator.validate(this); |
171 |
|
} |
172 |
|
|
173 |
|
} |