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