Class | Line # | Actions | |||
---|---|---|---|---|---|
FeatureMatcherSet | 63 | 4 | 4 | ||
FeatureMatcherSet.CompoundMatcher | 146 | 5 | 4 |
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 | * <complexType name="FeatureMatcherSet"> | |
33 | * <complexContent> | |
34 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
35 | * <choice> | |
36 | * <element name="matchCondition" type="{www.jalview.org/colours}FeatureMatcher"/> | |
37 | * <element name="compoundMatcher"> | |
38 | * <complexType> | |
39 | * <complexContent> | |
40 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
41 | * <sequence> | |
42 | * <element name="matcherSet" type="{www.jalview.org/colours}FeatureMatcherSet" maxOccurs="2" minOccurs="2"/> | |
43 | * </sequence> | |
44 | * <attribute name="and" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /> | |
45 | * </restriction> | |
46 | * </complexContent> | |
47 | * </complexType> | |
48 | * </element> | |
49 | * </choice> | |
50 | * </restriction> | |
51 | * </complexContent> | |
52 | * </complexType> | |
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 | 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 | 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 | 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 | 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 | * <complexType> | |
131 | * <complexContent> | |
132 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
133 | * <sequence> | |
134 | * <element name="matcherSet" type="{www.jalview.org/colours}FeatureMatcherSet" maxOccurs="2" minOccurs="2"/> | |
135 | * </sequence> | |
136 | * <attribute name="and" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" /> | |
137 | * </restriction> | |
138 | * </complexContent> | |
139 | * </complexType> | |
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 | 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 | public boolean isAnd() |
200 | { | |
201 | 2 | return and; |
202 | } | |
203 | ||
204 | /** | |
205 | * Sets the value of the and property. | |
206 | * | |
207 | */ | |
208 | 2 | public void setAnd(boolean value) |
209 | { | |
210 | 2 | this.and = value; |
211 | } | |
212 | ||
213 | } | |
214 | ||
215 | } |