Clover icon

Coverage Report

  1. Project Clover database Thu Aug 13 2020 12:04:21 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
192
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 JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
3    // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4    // Any modifications to this file will be lost upon recompilation of the source schema.
5    // Generated on: 2019.06.07 at 02:21:15 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.
24    *
25    * <p>The following schema fragment specifies the expected content contained within this class.
26    *
27    * <pre>
28    * &lt;complexType name="FeatureMatcherSet">
29    * &lt;complexContent>
30    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
31    * &lt;choice>
32    * &lt;element name="matchCondition" type="{www.jalview.org/colours}FeatureMatcher"/>
33    * &lt;element name="compoundMatcher">
34    * &lt;complexType>
35    * &lt;complexContent>
36    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
37    * &lt;sequence>
38    * &lt;element name="matcherSet" type="{www.jalview.org/colours}FeatureMatcherSet" maxOccurs="2" minOccurs="2"/>
39    * &lt;/sequence>
40    * &lt;attribute name="and" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
41    * &lt;/restriction>
42    * &lt;/complexContent>
43    * &lt;/complexType>
44    * &lt;/element>
45    * &lt;/choice>
46    * &lt;/restriction>
47    * &lt;/complexContent>
48    * &lt;/complexType>
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.
116    *
117    * <p>The following schema fragment specifies the expected content contained within this class.
118    *
119    * <pre>
120    * &lt;complexType>
121    * &lt;complexContent>
122    * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
123    * &lt;sequence>
124    * &lt;element name="matcherSet" type="{www.jalview.org/colours}FeatureMatcherSet" maxOccurs="2" minOccurs="2"/>
125    * &lt;/sequence>
126    * &lt;attribute name="and" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
127    * &lt;/restriction>
128    * &lt;/complexContent>
129    * &lt;/complexType>
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    @XmlAttribute(name = "and", required = true)
143    protected boolean and;
144   
145    /**
146    * Gets the value of the matcherSet property.
147    *
148    * <p>
149    * This accessor method returns a reference to the live list,
150    * not a snapshot. Therefore any modification you make to the
151    * returned list will be present inside the JAXB object.
152    * This is why there is not a <CODE>set</CODE> method for the matcherSet property.
153    *
154    * <p>
155    * For example, to add a new item, do as follows:
156    * <pre>
157    * getMatcherSet().add(newItem);
158    * </pre>
159    *
160    *
161    * <p>
162    * Objects of the following type(s) are allowed in the list
163    * {@link FeatureMatcherSet }
164    *
165    *
166    */
 
167  12 toggle public List<FeatureMatcherSet> getMatcherSet() {
168  12 if (matcherSet == null) {
169  4 matcherSet = new ArrayList<FeatureMatcherSet>();
170    }
171  12 return this.matcherSet;
172    }
173   
174    /**
175    * Gets the value of the and property.
176    *
177    */
 
178  4 toggle public boolean isAnd() {
179  4 return and;
180    }
181   
182    /**
183    * Sets the value of the and property.
184    *
185    */
 
186  4 toggle public void setAnd(boolean value) {
187  4 this.and = value;
188    }
189   
190    }
191   
192    }