Clover icon

Coverage Report

  1. Project Clover database Wed Dec 3 2025 15:58:31 GMT
  2. Package jalview.xml.binding.jalview

File Feature.java

 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

2
23
21
2
371
104
22
0.96
1.1
10.5
1.05

Classes

Class Line # Actions
Feature 59 17 16
0.941176594.1%
Feature.OtherData 283 6 6
1.0100%
 

Contributing tests

This file is covered by 12 tests. .

Source view

1    //
2    // This file was generated by the Eclipse Implementation of JAXB, v2.3.9
3    // See https://eclipse-ee4j.github.io/jaxb-ri
4    // Any modifications to this file will be lost upon recompilation of the source schema.
5    // Generated on: 2025.04.17 at 04:05:44 PM BST
6    //
7   
8   
9    package jalview.xml.binding.jalview;
10   
11    import java.util.ArrayList;
12    import java.util.List;
13    import javax.xml.bind.annotation.XmlAccessType;
14    import javax.xml.bind.annotation.XmlAccessorType;
15    import javax.xml.bind.annotation.XmlAttribute;
16    import javax.xml.bind.annotation.XmlType;
17   
18   
19    /**
20    * <p>Java class for feature complex type</p>.
21    *
22    * <p>The following schema fragment specifies the expected content contained within this class.</p>
23    *
24    * <pre>
25    * &lt;complexType name="feature"&gt;
26    * &lt;complexContent&gt;
27    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
28    * &lt;sequence&gt;
29    * &lt;element name="otherData" maxOccurs="unbounded" minOccurs="0"&gt;
30    * &lt;complexType&gt;
31    * &lt;complexContent&gt;
32    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
33    * &lt;attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
34    * &lt;attribute name="key2" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
35    * &lt;attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
36    * &lt;/restriction&gt;
37    * &lt;/complexContent&gt;
38    * &lt;/complexType&gt;
39    * &lt;/element&gt;
40    * &lt;/sequence&gt;
41    * &lt;attribute name="begin" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
42    * &lt;attribute name="end" use="required" type="{http://www.w3.org/2001/XMLSchema}int" /&gt;
43    * &lt;attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
44    * &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
45    * &lt;attribute name="status" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
46    * &lt;attribute name="featureGroup" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
47    * &lt;attribute name="score" type="{http://www.w3.org/2001/XMLSchema}float" /&gt;
48    * &lt;/restriction&gt;
49    * &lt;/complexContent&gt;
50    * &lt;/complexType&gt;
51    * </pre>
52    *
53    *
54    */
55    @XmlAccessorType(XmlAccessType.FIELD)
56    @XmlType(name = "feature", namespace = "www.jalview.org", propOrder = {
57    "otherData"
58    })
 
59    public class Feature {
60   
61    protected List<Feature.OtherData> otherData;
62    @XmlAttribute(name = "begin", required = true)
63    protected int begin;
64    @XmlAttribute(name = "end", required = true)
65    protected int end;
66    @XmlAttribute(name = "type", required = true)
67    protected String type;
68    @XmlAttribute(name = "description")
69    protected String description;
70    @XmlAttribute(name = "status")
71    protected String status;
72    @XmlAttribute(name = "featureGroup")
73    protected String featureGroup;
74    @XmlAttribute(name = "score")
75    protected Float score;
76   
77    /**
78    * Gets the value of the otherData property.
79    *
80    * <p>This accessor method returns a reference to the live list,
81    * not a snapshot. Therefore any modification you make to the
82    * returned list will be present inside the JAXB object.
83    * This is why there is not a <CODE>set</CODE> method for the otherData property.</p>
84    *
85    * <p>
86    * For example, to add a new item, do as follows:
87    * </p>
88    * <pre>
89    * getOtherData().add(newItem);
90    * </pre>
91    *
92    *
93    * <p>
94    * Objects of the following type(s) are allowed in the list
95    * {@link Feature.OtherData }
96    * </p>
97    *
98    *
99    * @return
100    * The value of the otherData property.
101    */
 
102  1212103 toggle public List<Feature.OtherData> getOtherData() {
103  1212103 if (otherData == null) {
104  15962 otherData = new ArrayList<Feature.OtherData>();
105    }
106  1212103 return this.otherData;
107    }
108   
109    /**
110    * Gets the value of the begin property.
111    *
112    */
 
113  146685 toggle public int getBegin() {
114  146685 return begin;
115    }
116   
117    /**
118    * Sets the value of the begin property.
119    *
120    */
 
121  16188 toggle public void setBegin(int value) {
122  16188 this.begin = value;
123    }
124   
125    /**
126    * Gets the value of the end property.
127    *
128    */
 
129  146685 toggle public int getEnd() {
130  146685 return end;
131    }
132   
133    /**
134    * Sets the value of the end property.
135    *
136    */
 
137  16188 toggle public void setEnd(int value) {
138  16188 this.end = value;
139    }
140   
141    /**
142    * Gets the value of the type property.
143    *
144    * @return
145    * possible object is
146    * {@link String }
147    *
148    */
 
149  146685 toggle public String getType() {
150  146685 return type;
151    }
152   
153    /**
154    * Sets the value of the type property.
155    *
156    * @param value
157    * allowed object is
158    * {@link String }
159    *
160    */
 
161  16188 toggle public void setType(String value) {
162  16188 this.type = value;
163    }
164   
165    /**
166    * Gets the value of the description property.
167    *
168    * @return
169    * possible object is
170    * {@link String }
171    *
172    */
 
173  146685 toggle public String getDescription() {
174  146685 return description;
175    }
176   
177    /**
178    * Sets the value of the description property.
179    *
180    * @param value
181    * allowed object is
182    * {@link String }
183    *
184    */
 
185  16188 toggle public void setDescription(String value) {
186  16188 this.description = value;
187    }
188   
189    /**
190    * Gets the value of the status property.
191    *
192    * @return
193    * possible object is
194    * {@link String }
195    *
196    */
 
197  146685 toggle public String getStatus() {
198  146685 return status;
199    }
200   
201    /**
202    * Sets the value of the status property.
203    *
204    * @param value
205    * allowed object is
206    * {@link String }
207    *
208    */
 
209  0 toggle public void setStatus(String value) {
210  0 this.status = value;
211    }
212   
213    /**
214    * Gets the value of the featureGroup property.
215    *
216    * @return
217    * possible object is
218    * {@link String }
219    *
220    */
 
221  146685 toggle public String getFeatureGroup() {
222  146685 return featureGroup;
223    }
224   
225    /**
226    * Sets the value of the featureGroup property.
227    *
228    * @param value
229    * allowed object is
230    * {@link String }
231    *
232    */
 
233  16188 toggle public void setFeatureGroup(String value) {
234  16188 this.featureGroup = value;
235    }
236   
237    /**
238    * Gets the value of the score property.
239    *
240    * @return
241    * possible object is
242    * {@link Float }
243    *
244    */
 
245  146685 toggle public Float getScore() {
246  146685 return score;
247    }
248   
249    /**
250    * Sets the value of the score property.
251    *
252    * @param value
253    * allowed object is
254    * {@link Float }
255    *
256    */
 
257  16188 toggle public void setScore(Float value) {
258  16188 this.score = value;
259    }
260   
261   
262    /**
263    * <p>Java class for anonymous complex type</p>.
264    *
265    * <p>The following schema fragment specifies the expected content contained within this class.</p>
266    *
267    * <pre>
268    * &lt;complexType&gt;
269    * &lt;complexContent&gt;
270    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
271    * &lt;attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
272    * &lt;attribute name="key2" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
273    * &lt;attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
274    * &lt;/restriction&gt;
275    * &lt;/complexContent&gt;
276    * &lt;/complexType&gt;
277    * </pre>
278    *
279    *
280    */
281    @XmlAccessorType(XmlAccessType.FIELD)
282    @XmlType(name = "")
 
283    public static class OtherData {
284   
285    @XmlAttribute(name = "key", required = true)
286    protected String key;
287    /**
288    * key2 may be used for a sub-attribute of key
289    *
290    */
291    @XmlAttribute(name = "key2")
292    protected String key2;
293    @XmlAttribute(name = "value", required = true)
294    protected String value;
295   
296    /**
297    * Gets the value of the key property.
298    *
299    * @return
300    * possible object is
301    * {@link String }
302    *
303    */
 
304  527376 toggle public String getKey() {
305  527376 return key;
306    }
307   
308    /**
309    * Sets the value of the key property.
310    *
311    * @param value
312    * allowed object is
313    * {@link String }
314    *
315    */
 
316  10666 toggle public void setKey(String value) {
317  10666 this.key = value;
318    }
319   
320    /**
321    * key2 may be used for a sub-attribute of key
322    *
323    * @return
324    * possible object is
325    * {@link String }
326    *
327    */
 
328  520651 toggle public String getKey2() {
329  520651 return key2;
330    }
331   
332    /**
333    * Sets the value of the key2 property.
334    *
335    * @param value
336    * allowed object is
337    * {@link String }
338    *
339    * @see #getKey2()
340    */
 
341  20 toggle public void setKey2(String value) {
342  20 this.key2 = value;
343    }
344   
345    /**
346    * Gets the value of the value property.
347    *
348    * @return
349    * possible object is
350    * {@link String }
351    *
352    */
 
353  527376 toggle public String getValue() {
354  527376 return value;
355    }
356   
357    /**
358    * Sets the value of the value property.
359    *
360    * @param value
361    * allowed object is
362    * {@link String }
363    *
364    */
 
365  10666 toggle public void setValue(String value) {
366  10666 this.value = value;
367    }
368   
369    }
370   
371    }