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