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