| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 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.XmlElement; |
| 17 |
|
import javax.xml.bind.annotation.XmlType; |
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
|
| 50 |
|
|
| 51 |
|
|
| 52 |
|
|
| 53 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
| 54 |
|
@XmlType(name = "FeatureMatcherSet", namespace = "www.jalview.org/colours", propOrder = { |
| 55 |
|
"matchCondition", |
| 56 |
|
"compoundMatcher" |
| 57 |
|
}) |
| |
|
| 100% |
Uncovered Elements: 0 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
| 58 |
|
public class FeatureMatcherSet { |
| 59 |
|
|
| 60 |
|
@XmlElement(namespace = "") |
| 61 |
|
protected FeatureMatcher matchCondition; |
| 62 |
|
@XmlElement(namespace = "") |
| 63 |
|
protected FeatureMatcherSet.CompoundMatcher compoundMatcher; |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
|
| 68 |
|
@return |
| 69 |
|
|
| 70 |
|
@link |
| 71 |
|
|
| 72 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 73 |
14 |
public FeatureMatcher getMatchCondition() {... |
| 74 |
14 |
return matchCondition; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
|
| 78 |
|
|
| 79 |
|
|
| 80 |
|
@param |
| 81 |
|
|
| 82 |
|
@link |
| 83 |
|
|
| 84 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 85 |
10 |
public void setMatchCondition(FeatureMatcher value) {... |
| 86 |
10 |
this.matchCondition = value; |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
|
@return |
| 93 |
|
|
| 94 |
|
@link |
| 95 |
|
|
| 96 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 97 |
8 |
public FeatureMatcherSet.CompoundMatcher getCompoundMatcher() {... |
| 98 |
8 |
return compoundMatcher; |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
|
| 102 |
|
|
| 103 |
|
|
| 104 |
|
@param |
| 105 |
|
|
| 106 |
|
@link |
| 107 |
|
|
| 108 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 109 |
4 |
public void setCompoundMatcher(FeatureMatcherSet.CompoundMatcher value) {... |
| 110 |
4 |
this.compoundMatcher = value; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
|
| 114 |
|
|
| 115 |
|
|
| 116 |
|
|
| 117 |
|
|
| 118 |
|
|
| 119 |
|
|
| 120 |
|
|
| 121 |
|
|
| 122 |
|
|
| 123 |
|
|
| 124 |
|
|
| 125 |
|
|
| 126 |
|
|
| 127 |
|
|
| 128 |
|
|
| 129 |
|
|
| 130 |
|
|
| 131 |
|
|
| 132 |
|
|
| 133 |
|
|
| 134 |
|
@XmlAccessorType(XmlAccessType.FIELD) |
| 135 |
|
@XmlType(name = "", propOrder = { |
| 136 |
|
"matcherSet" |
| 137 |
|
}) |
| |
|
| 100% |
Uncovered Elements: 0 (10) |
Complexity: 4 |
Complexity Density: 0.8 |
|
| 138 |
|
public static class CompoundMatcher { |
| 139 |
|
|
| 140 |
|
@XmlElement(namespace = "", required = true) |
| 141 |
|
protected List<FeatureMatcherSet> matcherSet; |
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
|
| 146 |
|
@XmlAttribute(name = "and", required = true) |
| 147 |
|
protected boolean and; |
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 162 |
|
|
| 163 |
|
|
| 164 |
|
|
| 165 |
|
|
| 166 |
|
|
| 167 |
|
@link |
| 168 |
|
|
| 169 |
|
|
| 170 |
|
|
| 171 |
|
@return |
| 172 |
|
|
| 173 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 174 |
12 |
public List<FeatureMatcherSet> getMatcherSet() {... |
| 175 |
12 |
if (matcherSet == null) { |
| 176 |
4 |
matcherSet = new ArrayList<FeatureMatcherSet>(); |
| 177 |
|
} |
| 178 |
12 |
return this.matcherSet; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
|
| 182 |
|
|
| 183 |
|
|
| 184 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 185 |
4 |
public boolean isAnd() {... |
| 186 |
4 |
return and; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
|
| 190 |
|
|
| 191 |
|
|
| 192 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 193 |
4 |
public void setAnd(boolean value) {... |
| 194 |
4 |
this.and = value; |
| 195 |
|
} |
| 196 |
|
|
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
} |