1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package jalview.json.binding.biojson.v1; |
22 |
|
|
23 |
|
import java.util.Map; |
24 |
|
import java.util.Vector; |
25 |
|
|
26 |
|
import com.github.reinert.jjschema.Attributes; |
27 |
|
|
|
|
| 93% |
Uncovered Elements: 3 (43) |
Complexity: 22 |
Complexity Density: 1.05 |
|
28 |
|
public class SequenceFeaturesPojo |
29 |
|
{ |
30 |
|
@Attributes( |
31 |
|
required = true, |
32 |
|
description = "Start residue position for the sequence feature") |
33 |
|
private int xStart; |
34 |
|
|
35 |
|
@Attributes( |
36 |
|
required = true, |
37 |
|
description = "End residue position for the sequence feature") |
38 |
|
private int xEnd; |
39 |
|
|
40 |
|
@Attributes( |
41 |
|
required = true, |
42 |
|
minItems = 1, |
43 |
|
maxItems = 2147483647, |
44 |
|
description = "Reference to the sequence in the alignment<br> (more like a foreign key)") |
45 |
|
private String sequenceRef; |
46 |
|
|
47 |
|
@Attributes( |
48 |
|
required = true, |
49 |
|
description = "The name or type of the SequenceFeature") |
50 |
|
private String type; |
51 |
|
|
52 |
|
@Attributes(required = false, description = "Score") |
53 |
|
private Float score; |
54 |
|
|
55 |
|
@Attributes(required = false, description = "Description for the feature") |
56 |
|
private String description; |
57 |
|
|
58 |
|
@Attributes( |
59 |
|
required = false, |
60 |
|
description = "Additional metadata for the feature") |
61 |
|
private Map<String, Object> otherDetails; |
62 |
|
|
63 |
|
@Attributes(required = false, description = "Fill colour") |
64 |
|
private String fillColor; |
65 |
|
|
66 |
|
@Attributes(required = true, description = "Feature group") |
67 |
|
private String featureGroup; |
68 |
|
|
69 |
|
@Attributes( |
70 |
|
required = false, |
71 |
|
description = "URL links associated to the feature") |
72 |
|
private Vector<String> links; |
73 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
74 |
0 |
public SequenceFeaturesPojo()... |
75 |
|
{ |
76 |
|
} |
77 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
78 |
24 |
public SequenceFeaturesPojo(String sequenceRef)... |
79 |
|
{ |
80 |
24 |
this.sequenceRef = sequenceRef; |
81 |
|
} |
82 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
83 |
24 |
public String getFillColor()... |
84 |
|
{ |
85 |
24 |
return "#" + fillColor; |
86 |
|
} |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
24 |
public void setFillColor(String fillColor)... |
89 |
|
{ |
90 |
24 |
this.fillColor = fillColor; |
91 |
|
} |
92 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
93 |
24 |
public int getXstart()... |
94 |
|
{ |
95 |
24 |
return xStart; |
96 |
|
} |
97 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
98 |
24 |
public void setXstart(int xStart)... |
99 |
|
{ |
100 |
24 |
this.xStart = xStart; |
101 |
|
} |
102 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
103 |
24 |
public int getXend()... |
104 |
|
{ |
105 |
24 |
return xEnd; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
24 |
public void setXend(int xend)... |
109 |
|
{ |
110 |
24 |
this.xEnd = xend; |
111 |
|
} |
112 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
113 |
24 |
public String getType()... |
114 |
|
{ |
115 |
24 |
return type; |
116 |
|
} |
117 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
24 |
public void setType(String type)... |
119 |
|
{ |
120 |
24 |
this.type = type; |
121 |
|
} |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
24 |
public Float getScore()... |
124 |
|
{ |
125 |
24 |
return score; |
126 |
|
} |
127 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
24 |
public void setScore(Float score)... |
129 |
|
{ |
130 |
24 |
this.score = score; |
131 |
|
} |
132 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
133 |
24 |
public String getDescription()... |
134 |
|
{ |
135 |
24 |
return description; |
136 |
|
} |
137 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
138 |
24 |
public void setDescription(String description)... |
139 |
|
{ |
140 |
24 |
this.description = description; |
141 |
|
} |
142 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
143 |
24 |
public Map<String, Object> getOtherDetails()... |
144 |
|
{ |
145 |
24 |
return otherDetails; |
146 |
|
} |
147 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
24 |
public void setOtherDetails(Map<String, Object> otherDetails)... |
149 |
|
{ |
150 |
24 |
this.otherDetails = otherDetails; |
151 |
|
} |
152 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
153 |
24 |
public Vector<String> getLinks()... |
154 |
|
{ |
155 |
24 |
return links; |
156 |
|
} |
157 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
158 |
24 |
public void setLinks(Vector<String> links)... |
159 |
|
{ |
160 |
24 |
this.links = links; |
161 |
|
} |
162 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
163 |
24 |
public String getFeatureGroup()... |
164 |
|
{ |
165 |
24 |
return featureGroup; |
166 |
|
} |
167 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
168 |
24 |
public void setFeatureGroup(String featureGroup)... |
169 |
|
{ |
170 |
24 |
this.featureGroup = featureGroup; |
171 |
|
} |
172 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
173 |
24 |
public String getSequenceRef()... |
174 |
|
{ |
175 |
24 |
return sequenceRef; |
176 |
|
} |
177 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
178 |
0 |
public void setSequenceRef(String sequenceRef)... |
179 |
|
{ |
180 |
0 |
this.sequenceRef = sequenceRef; |
181 |
|
} |
182 |
|
|
183 |
|
} |