| 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 com.github.reinert.jjschema.Attributes; |
| 24 |
|
|
| |
|
| 81.8% |
Uncovered Elements: 6 (33) |
Complexity: 16 |
Complexity Density: 0.94 |
|
| 25 |
|
public class SequencePojo |
| 26 |
|
{ |
| 27 |
|
@Attributes( |
| 28 |
|
required = true, |
| 29 |
|
minLength = 3, |
| 30 |
|
maxLength = 2147483647, |
| 31 |
|
description = "Sequence residue characters. An aligned sequence may contain <br>one of the following gap characters “.”, “-” or “ ”") |
| 32 |
|
private String seq; |
| 33 |
|
|
| 34 |
|
@Attributes(required = true, description = "Sequence name") |
| 35 |
|
private String name; |
| 36 |
|
|
| 37 |
|
@Attributes( |
| 38 |
|
required = false, |
| 39 |
|
description = "Sequence type", |
| 40 |
|
enums = |
| 41 |
|
{ "DNA", "RNA", "Protein" }) |
| 42 |
|
private String type; |
| 43 |
|
|
| 44 |
|
@Attributes( |
| 45 |
|
required = true, |
| 46 |
|
description = "Unique identifier for a given Sequence") |
| 47 |
|
private String id; |
| 48 |
|
|
| 49 |
|
@Attributes( |
| 50 |
|
required = false, |
| 51 |
|
description = "The order/position of a sequence in the alignment space") |
| 52 |
|
private int order; |
| 53 |
|
|
| 54 |
|
@Attributes( |
| 55 |
|
required = true, |
| 56 |
|
description = "The index of the sequence’s first residue in its source database, <br>using a one-based numbering index system") |
| 57 |
|
private int start; |
| 58 |
|
|
| 59 |
|
@Attributes( |
| 60 |
|
required = true, |
| 61 |
|
description = "The index of the sequence’s last residue in its source database, <br>using a one-based numbering index system") |
| 62 |
|
private int end; |
| 63 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 64 |
60 |
public SequencePojo()... |
| 65 |
|
{ |
| 66 |
|
} |
| 67 |
|
|
| |
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 68 |
0 |
public SequencePojo(int start, int end, String id, String name,... |
| 69 |
|
String seq) |
| 70 |
|
{ |
| 71 |
0 |
this.id = id; |
| 72 |
0 |
this.name = name; |
| 73 |
0 |
this.seq = seq; |
| 74 |
|
} |
| 75 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 76 |
60 |
public String getSeq()... |
| 77 |
|
{ |
| 78 |
60 |
return seq; |
| 79 |
|
} |
| 80 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 81 |
60 |
public void setSeq(String seq)... |
| 82 |
|
{ |
| 83 |
60 |
this.seq = seq; |
| 84 |
|
} |
| 85 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 86 |
60 |
public String getName()... |
| 87 |
|
{ |
| 88 |
|
|
| 89 |
60 |
return name; |
| 90 |
|
} |
| 91 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 92 |
60 |
public void setName(String name)... |
| 93 |
|
{ |
| 94 |
60 |
this.name = name; |
| 95 |
|
} |
| 96 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 97 |
60 |
public String getId()... |
| 98 |
|
{ |
| 99 |
60 |
return id; |
| 100 |
|
} |
| 101 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 102 |
60 |
public void setId(String id)... |
| 103 |
|
{ |
| 104 |
60 |
this.id = id; |
| 105 |
|
} |
| 106 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 107 |
60 |
public int getStart()... |
| 108 |
|
{ |
| 109 |
60 |
return start; |
| 110 |
|
} |
| 111 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 112 |
60 |
public void setStart(int start)... |
| 113 |
|
{ |
| 114 |
60 |
this.start = start; |
| 115 |
|
} |
| 116 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 117 |
60 |
public int getEnd()... |
| 118 |
|
{ |
| 119 |
60 |
return end; |
| 120 |
|
} |
| 121 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 122 |
60 |
public void setEnd(int end)... |
| 123 |
|
{ |
| 124 |
60 |
this.end = end; |
| 125 |
|
} |
| 126 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 127 |
60 |
public int getOrder()... |
| 128 |
|
{ |
| 129 |
60 |
return order; |
| 130 |
|
} |
| 131 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 132 |
60 |
public void setOrder(int order)... |
| 133 |
|
{ |
| 134 |
60 |
this.order = order; |
| 135 |
|
} |
| 136 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 137 |
60 |
public String getType()... |
| 138 |
|
{ |
| 139 |
60 |
return type; |
| 140 |
|
} |
| 141 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 142 |
0 |
public void setType(String type)... |
| 143 |
|
{ |
| 144 |
0 |
this.type = type; |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
} |