Clover icon

Coverage Report

  1. Project Clover database Mon Oct 6 2025 17:39:40 BST
  2. Package jalview.xml.binding.jalview

File FeatureMatcherSet.java

 

Coverage histogram

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

Code metrics

2
9
7
2
199
53
8
0.89
1.29
3.5
1.14

Classes

Class Line # Actions
FeatureMatcherSet 58 4 4
1.0100%
FeatureMatcherSet.CompoundMatcher 138 5 4
1.0100%
 

Contributing tests

This file is covered by 2 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.XmlElement;
17    import javax.xml.bind.annotation.XmlType;
18   
19   
20    /**
21    * A feature match condition, which may be simple or compound
22    *
23    * <p>Java class for FeatureMatcherSet complex type</p>.
24    *
25    * <p>The following schema fragment specifies the expected content contained within this class.</p>
26    *
27    * <pre>
28    * &lt;complexType name="FeatureMatcherSet"&gt;
29    * &lt;complexContent&gt;
30    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
31    * &lt;choice&gt;
32    * &lt;element name="matchCondition" type="{www.jalview.org/colours}FeatureMatcher"/&gt;
33    * &lt;element name="compoundMatcher"&gt;
34    * &lt;complexType&gt;
35    * &lt;complexContent&gt;
36    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
37    * &lt;sequence&gt;
38    * &lt;element name="matcherSet" type="{www.jalview.org/colours}FeatureMatcherSet" maxOccurs="2" minOccurs="2"/&gt;
39    * &lt;/sequence&gt;
40    * &lt;attribute name="and" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /&gt;
41    * &lt;/restriction&gt;
42    * &lt;/complexContent&gt;
43    * &lt;/complexType&gt;
44    * &lt;/element&gt;
45    * &lt;/choice&gt;
46    * &lt;/restriction&gt;
47    * &lt;/complexContent&gt;
48    * &lt;/complexType&gt;
49    * </pre>
50    *
51    *
52    */
53    @XmlAccessorType(XmlAccessType.FIELD)
54    @XmlType(name = "FeatureMatcherSet", namespace = "www.jalview.org/colours", propOrder = {
55    "matchCondition",
56    "compoundMatcher"
57    })
 
58    public class FeatureMatcherSet {
59   
60    @XmlElement(namespace = "")
61    protected FeatureMatcher matchCondition;
62    @XmlElement(namespace = "")
63    protected FeatureMatcherSet.CompoundMatcher compoundMatcher;
64   
65    /**
66    * Gets the value of the matchCondition property.
67    *
68    * @return
69    * possible object is
70    * {@link FeatureMatcher }
71    *
72    */
 
73  14 toggle public FeatureMatcher getMatchCondition() {
74  14 return matchCondition;
75    }
76   
77    /**
78    * Sets the value of the matchCondition property.
79    *
80    * @param value
81    * allowed object is
82    * {@link FeatureMatcher }
83    *
84    */
 
85  10 toggle public void setMatchCondition(FeatureMatcher value) {
86  10 this.matchCondition = value;
87    }
88   
89    /**
90    * Gets the value of the compoundMatcher property.
91    *
92    * @return
93    * possible object is
94    * {@link FeatureMatcherSet.CompoundMatcher }
95    *
96    */
 
97  8 toggle public FeatureMatcherSet.CompoundMatcher getCompoundMatcher() {
98  8 return compoundMatcher;
99    }
100   
101    /**
102    * Sets the value of the compoundMatcher property.
103    *
104    * @param value
105    * allowed object is
106    * {@link FeatureMatcherSet.CompoundMatcher }
107    *
108    */
 
109  4 toggle public void setCompoundMatcher(FeatureMatcherSet.CompoundMatcher value) {
110  4 this.compoundMatcher = value;
111    }
112   
113   
114    /**
115    * <p>Java class for anonymous complex type</p>.
116    *
117    * <p>The following schema fragment specifies the expected content contained within this class.</p>
118    *
119    * <pre>
120    * &lt;complexType&gt;
121    * &lt;complexContent&gt;
122    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
123    * &lt;sequence&gt;
124    * &lt;element name="matcherSet" type="{www.jalview.org/colours}FeatureMatcherSet" maxOccurs="2" minOccurs="2"/&gt;
125    * &lt;/sequence&gt;
126    * &lt;attribute name="and" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /&gt;
127    * &lt;/restriction&gt;
128    * &lt;/complexContent&gt;
129    * &lt;/complexType&gt;
130    * </pre>
131    *
132    *
133    */
134    @XmlAccessorType(XmlAccessType.FIELD)
135    @XmlType(name = "", propOrder = {
136    "matcherSet"
137    })
 
138    public static class CompoundMatcher {
139   
140    @XmlElement(namespace = "", required = true)
141    protected List<FeatureMatcherSet> matcherSet;
142    /**
143    * If true, matchers are AND-ed, if false they are OR-ed
144    *
145    */
146    @XmlAttribute(name = "and", required = true)
147    protected boolean and;
148   
149    /**
150    * Gets the value of the matcherSet property.
151    *
152    * <p>This accessor method returns a reference to the live list,
153    * not a snapshot. Therefore any modification you make to the
154    * returned list will be present inside the JAXB object.
155    * This is why there is not a <CODE>set</CODE> method for the matcherSet property.</p>
156    *
157    * <p>
158    * For example, to add a new item, do as follows:
159    * </p>
160    * <pre>
161    * getMatcherSet().add(newItem);
162    * </pre>
163    *
164    *
165    * <p>
166    * Objects of the following type(s) are allowed in the list
167    * {@link FeatureMatcherSet }
168    * </p>
169    *
170    *
171    * @return
172    * The value of the matcherSet property.
173    */
 
174  12 toggle 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    * If true, matchers are AND-ed, if false they are OR-ed
183    *
184    */
 
185  4 toggle public boolean isAnd() {
186  4 return and;
187    }
188   
189    /**
190    * Sets the value of the and property.
191    *
192    */
 
193  4 toggle public void setAnd(boolean value) {
194  4 this.and = value;
195    }
196   
197    }
198   
199    }