Clover icon

Coverage Report

  1. Project Clover database Mon Nov 18 2024 09:38:20 GMT
  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
215
62
8
0.89
1.29
3.5
1.14

Classes

Class Line # Actions
FeatureMatcherSet 63 4 4
1.0100%
FeatureMatcherSet.CompoundMatcher 146 5 4
1.0100%
 

Contributing tests

This file is covered by 1 test. .

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