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.ArrayList; |
24 |
|
import java.util.List; |
25 |
|
|
26 |
|
import com.github.reinert.jjschema.Attributes; |
27 |
|
|
|
|
| 81.2% |
Uncovered Elements: 6 (32) |
Complexity: 16 |
Complexity Density: 1 |
|
28 |
|
public class AlignmentAnnotationPojo |
29 |
|
{ |
30 |
|
|
31 |
|
@Attributes( |
32 |
|
required = false, |
33 |
|
description = "Label for the alignment annotation") |
34 |
|
private String label; |
35 |
|
|
36 |
|
@Attributes( |
37 |
|
required = false, |
38 |
|
description = "Description for the alignment annotation") |
39 |
|
private String description; |
40 |
|
|
41 |
|
@Attributes(required = false) |
42 |
|
private List<AnnotationPojo> annotations = new ArrayList<AnnotationPojo>(); |
43 |
|
|
44 |
|
@Attributes( |
45 |
|
required = false, |
46 |
|
enums = |
47 |
|
{ "0", "1", "2" }, |
48 |
|
description = "Determines the rendering for the annotation<br><ul><li>0 - No graph</li><li>1 - Bar Graph</li><li>2 - Line graph</li></ul>") |
49 |
|
private int graphType; |
50 |
|
|
51 |
|
@Attributes( |
52 |
|
required = false, |
53 |
|
description = "Reference to the sequence in the alignment<br> if per-sequence annotation") |
54 |
|
private String sequenceRef; |
55 |
|
|
56 |
|
@Attributes( |
57 |
|
required = false, |
58 |
|
description = "Stores display settings for an annotation") |
59 |
|
private AnnotationDisplaySettingPojo annotationSettings; |
60 |
|
|
61 |
|
@Attributes(required = false, description = "Score of the annotation") |
62 |
|
private double score; |
63 |
|
|
64 |
|
@Attributes( |
65 |
|
required = false, |
66 |
|
description = "The annotation generation source") |
67 |
|
private String calcId; |
68 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
2 |
public String getLabel()... |
70 |
|
{ |
71 |
2 |
return label; |
72 |
|
} |
73 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
2 |
public void setLabel(String label)... |
75 |
|
{ |
76 |
2 |
this.label = label; |
77 |
|
} |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
79 |
2 |
public String getDescription()... |
80 |
|
{ |
81 |
2 |
return description; |
82 |
|
} |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
2 |
public void setDescription(String annotationId)... |
85 |
|
{ |
86 |
2 |
this.description = annotationId; |
87 |
|
} |
88 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
89 |
72 |
public List<AnnotationPojo> getAnnotations()... |
90 |
|
{ |
91 |
72 |
return annotations; |
92 |
|
} |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0 |
public void setAnnotations(List<AnnotationPojo> annotations)... |
95 |
|
{ |
96 |
0 |
this.annotations = annotations; |
97 |
|
} |
98 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
99 |
2 |
public String getSequenceRef()... |
100 |
|
{ |
101 |
2 |
return sequenceRef; |
102 |
|
} |
103 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
0 |
public void setSequenceRef(String sequenceRef)... |
105 |
|
{ |
106 |
0 |
this.sequenceRef = sequenceRef; |
107 |
|
} |
108 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
109 |
2 |
public int getGraphType()... |
110 |
|
{ |
111 |
2 |
return graphType; |
112 |
|
} |
113 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
114 |
2 |
public void setGraphType(int graphType)... |
115 |
|
{ |
116 |
2 |
this.graphType = graphType; |
117 |
|
} |
118 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
119 |
2 |
public AnnotationDisplaySettingPojo getAnnotationSettings()... |
120 |
|
{ |
121 |
2 |
return annotationSettings; |
122 |
|
} |
123 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
2 |
public void setAnnotationSettings(... |
125 |
|
AnnotationDisplaySettingPojo annotationSettings) |
126 |
|
{ |
127 |
2 |
this.annotationSettings = annotationSettings; |
128 |
|
} |
129 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
130 |
2 |
public double getScore()... |
131 |
|
{ |
132 |
2 |
return score; |
133 |
|
} |
134 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
135 |
0 |
public void setScore(double score)... |
136 |
|
{ |
137 |
0 |
this.score = score; |
138 |
|
} |
139 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
2 |
public String getCalcId()... |
141 |
|
{ |
142 |
2 |
return calcId; |
143 |
|
} |
144 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
145 |
2 |
public void setCalcId(String calcId)... |
146 |
|
{ |
147 |
2 |
this.calcId = calcId; |
148 |
|
} |
149 |
|
|
150 |
|
} |