JAL-4281 store/restore ID width and manual adjustment flag in Jalview projects
[jalview.git] / src / jalview / xml / binding / jalview / Annotation.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: 2023.09.08 at 03:55:49 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.XmlRootElement;
18 import javax.xml.bind.annotation.XmlType;
19
20
21 /**
22  * <p>Java class for anonymous complex type.
23  * 
24  * <p>The following schema fragment specifies the expected content contained within this class.
25  * 
26  * <pre>
27  * <complexType>
28  *   <complexContent>
29  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30  *       <sequence>
31  *         <element ref="{www.vamsas.ac.uk/jalview/version2}annotationElement" maxOccurs="unbounded" minOccurs="0"/>
32  *         <element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/>
33  *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
34  *         <element name="thresholdLine" minOccurs="0">
35  *           <complexType>
36  *             <complexContent>
37  *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
38  *                 <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" />
39  *                 <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}float" />
40  *                 <attribute name="colour" type="{http://www.w3.org/2001/XMLSchema}int" />
41  *               </restriction>
42  *             </complexContent>
43  *           </complexType>
44  *         </element>
45  *         <element name="contactmatrix" type="{www.vamsas.ac.uk/jalview/version2}MatrixType" maxOccurs="unbounded" minOccurs="0"/>
46  *         <element name="property" type="{www.vamsas.ac.uk/jalview/version2}property" maxOccurs="unbounded" minOccurs="0"/>
47  *       </sequence>
48  *       <attribute name="graph" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
49  *       <attribute name="graphType" type="{http://www.w3.org/2001/XMLSchema}int" />
50  *       <attribute name="sequenceRef" type="{http://www.w3.org/2001/XMLSchema}string" />
51  *       <attribute name="groupRef" type="{http://www.w3.org/2001/XMLSchema}string" />
52  *       <attribute name="graphColour" type="{http://www.w3.org/2001/XMLSchema}int" />
53  *       <attribute name="graphGroup" type="{http://www.w3.org/2001/XMLSchema}int" />
54  *       <attribute name="graphHeight" type="{http://www.w3.org/2001/XMLSchema}int" />
55  *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
56  *       <attribute name="scoreOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
57  *       <attribute name="score" type="{http://www.w3.org/2001/XMLSchema}double" />
58  *       <attribute name="visible" type="{http://www.w3.org/2001/XMLSchema}boolean" />
59  *       <attribute name="centreColLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" />
60  *       <attribute name="scaleColLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" />
61  *       <attribute name="showAllColLabels" type="{http://www.w3.org/2001/XMLSchema}boolean" />
62  *       <attribute name="autoCalculated" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
63  *       <attribute name="belowAlignment" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
64  *       <attribute name="calcId" type="{http://www.w3.org/2001/XMLSchema}string" />
65  *     </restriction>
66  *   </complexContent>
67  * </complexType>
68  * </pre>
69  * 
70  * 
71  */
72 @XmlAccessorType(XmlAccessType.FIELD)
73 @XmlType(name = "", propOrder = {
74     "annotationElement",
75     "label",
76     "description",
77     "thresholdLine",
78     "contactmatrix",
79     "property"
80 })
81 @XmlRootElement(name = "Annotation")
82 public class Annotation {
83
84     protected List<AnnotationElement> annotationElement;
85     @XmlElement(required = true)
86     protected String label;
87     protected String description;
88     protected Annotation.ThresholdLine thresholdLine;
89     protected List<MatrixType> contactmatrix;
90     protected List<Property> property;
91     @XmlAttribute(name = "graph", required = true)
92     protected boolean graph;
93     @XmlAttribute(name = "graphType")
94     protected Integer graphType;
95     @XmlAttribute(name = "sequenceRef")
96     protected String sequenceRef;
97     @XmlAttribute(name = "groupRef")
98     protected String groupRef;
99     @XmlAttribute(name = "graphColour")
100     protected Integer graphColour;
101     @XmlAttribute(name = "graphGroup")
102     protected Integer graphGroup;
103     @XmlAttribute(name = "graphHeight")
104     protected Integer graphHeight;
105     @XmlAttribute(name = "id")
106     protected String id;
107     @XmlAttribute(name = "scoreOnly")
108     protected Boolean scoreOnly;
109     @XmlAttribute(name = "score")
110     protected Double score;
111     @XmlAttribute(name = "visible")
112     protected Boolean visible;
113     @XmlAttribute(name = "centreColLabels")
114     protected Boolean centreColLabels;
115     @XmlAttribute(name = "scaleColLabels")
116     protected Boolean scaleColLabels;
117     @XmlAttribute(name = "showAllColLabels")
118     protected Boolean showAllColLabels;
119     @XmlAttribute(name = "autoCalculated")
120     protected Boolean autoCalculated;
121     @XmlAttribute(name = "belowAlignment")
122     protected Boolean belowAlignment;
123     @XmlAttribute(name = "calcId")
124     protected String calcId;
125
126     /**
127      * Gets the value of the annotationElement property.
128      * 
129      * &lt;p&gt;
130      * This accessor method returns a reference to the live list,
131      * not a snapshot. Therefore any modification you make to the
132      * returned list will be present inside the JAXB object.
133      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the annotationElement property.
134      * 
135      * &lt;p&gt;
136      * For example, to add a new item, do as follows:
137      * &lt;pre&gt;
138      *    getAnnotationElement().add(newItem);
139      * &lt;/pre&gt;
140      * 
141      * 
142      * &lt;p&gt;
143      * Objects of the following type(s) are allowed in the list
144      * {@link AnnotationElement }
145      * 
146      * 
147      */
148     public List<AnnotationElement> getAnnotationElement() {
149         if (annotationElement == null) {
150             annotationElement = new ArrayList<AnnotationElement>();
151         }
152         return this.annotationElement;
153     }
154
155     /**
156      * Gets the value of the label property.
157      * 
158      * @return
159      *     possible object is
160      *     {@link String }
161      *     
162      */
163     public String getLabel() {
164         return label;
165     }
166
167     /**
168      * Sets the value of the label property.
169      * 
170      * @param value
171      *     allowed object is
172      *     {@link String }
173      *     
174      */
175     public void setLabel(String value) {
176         this.label = value;
177     }
178
179     /**
180      * Gets the value of the description property.
181      * 
182      * @return
183      *     possible object is
184      *     {@link String }
185      *     
186      */
187     public String getDescription() {
188         return description;
189     }
190
191     /**
192      * Sets the value of the description property.
193      * 
194      * @param value
195      *     allowed object is
196      *     {@link String }
197      *     
198      */
199     public void setDescription(String value) {
200         this.description = value;
201     }
202
203     /**
204      * Gets the value of the thresholdLine property.
205      * 
206      * @return
207      *     possible object is
208      *     {@link Annotation.ThresholdLine }
209      *     
210      */
211     public Annotation.ThresholdLine getThresholdLine() {
212         return thresholdLine;
213     }
214
215     /**
216      * Sets the value of the thresholdLine property.
217      * 
218      * @param value
219      *     allowed object is
220      *     {@link Annotation.ThresholdLine }
221      *     
222      */
223     public void setThresholdLine(Annotation.ThresholdLine value) {
224         this.thresholdLine = value;
225     }
226
227     /**
228      * Gets the value of the contactmatrix property.
229      * 
230      * &lt;p&gt;
231      * This accessor method returns a reference to the live list,
232      * not a snapshot. Therefore any modification you make to the
233      * returned list will be present inside the JAXB object.
234      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the contactmatrix property.
235      * 
236      * &lt;p&gt;
237      * For example, to add a new item, do as follows:
238      * &lt;pre&gt;
239      *    getContactmatrix().add(newItem);
240      * &lt;/pre&gt;
241      * 
242      * 
243      * &lt;p&gt;
244      * Objects of the following type(s) are allowed in the list
245      * {@link MatrixType }
246      * 
247      * 
248      */
249     public List<MatrixType> getContactmatrix() {
250         if (contactmatrix == null) {
251             contactmatrix = new ArrayList<MatrixType>();
252         }
253         return this.contactmatrix;
254     }
255
256     /**
257      * Gets the value of the property property.
258      * 
259      * &lt;p&gt;
260      * This accessor method returns a reference to the live list,
261      * not a snapshot. Therefore any modification you make to the
262      * returned list will be present inside the JAXB object.
263      * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the property property.
264      * 
265      * &lt;p&gt;
266      * For example, to add a new item, do as follows:
267      * &lt;pre&gt;
268      *    getProperty().add(newItem);
269      * &lt;/pre&gt;
270      * 
271      * 
272      * &lt;p&gt;
273      * Objects of the following type(s) are allowed in the list
274      * {@link Property }
275      * 
276      * 
277      */
278     public List<Property> getProperty() {
279         if (property == null) {
280             property = new ArrayList<Property>();
281         }
282         return this.property;
283     }
284
285     /**
286      * Gets the value of the graph property.
287      * 
288      */
289     public boolean isGraph() {
290         return graph;
291     }
292
293     /**
294      * Sets the value of the graph property.
295      * 
296      */
297     public void setGraph(boolean value) {
298         this.graph = value;
299     }
300
301     /**
302      * Gets the value of the graphType property.
303      * 
304      * @return
305      *     possible object is
306      *     {@link Integer }
307      *     
308      */
309     public Integer getGraphType() {
310         return graphType;
311     }
312
313     /**
314      * Sets the value of the graphType property.
315      * 
316      * @param value
317      *     allowed object is
318      *     {@link Integer }
319      *     
320      */
321     public void setGraphType(Integer value) {
322         this.graphType = value;
323     }
324
325     /**
326      * Gets the value of the sequenceRef property.
327      * 
328      * @return
329      *     possible object is
330      *     {@link String }
331      *     
332      */
333     public String getSequenceRef() {
334         return sequenceRef;
335     }
336
337     /**
338      * Sets the value of the sequenceRef property.
339      * 
340      * @param value
341      *     allowed object is
342      *     {@link String }
343      *     
344      */
345     public void setSequenceRef(String value) {
346         this.sequenceRef = value;
347     }
348
349     /**
350      * Gets the value of the groupRef property.
351      * 
352      * @return
353      *     possible object is
354      *     {@link String }
355      *     
356      */
357     public String getGroupRef() {
358         return groupRef;
359     }
360
361     /**
362      * Sets the value of the groupRef property.
363      * 
364      * @param value
365      *     allowed object is
366      *     {@link String }
367      *     
368      */
369     public void setGroupRef(String value) {
370         this.groupRef = value;
371     }
372
373     /**
374      * Gets the value of the graphColour property.
375      * 
376      * @return
377      *     possible object is
378      *     {@link Integer }
379      *     
380      */
381     public Integer getGraphColour() {
382         return graphColour;
383     }
384
385     /**
386      * Sets the value of the graphColour property.
387      * 
388      * @param value
389      *     allowed object is
390      *     {@link Integer }
391      *     
392      */
393     public void setGraphColour(Integer value) {
394         this.graphColour = value;
395     }
396
397     /**
398      * Gets the value of the graphGroup property.
399      * 
400      * @return
401      *     possible object is
402      *     {@link Integer }
403      *     
404      */
405     public Integer getGraphGroup() {
406         return graphGroup;
407     }
408
409     /**
410      * Sets the value of the graphGroup property.
411      * 
412      * @param value
413      *     allowed object is
414      *     {@link Integer }
415      *     
416      */
417     public void setGraphGroup(Integer value) {
418         this.graphGroup = value;
419     }
420
421     /**
422      * Gets the value of the graphHeight property.
423      * 
424      * @return
425      *     possible object is
426      *     {@link Integer }
427      *     
428      */
429     public Integer getGraphHeight() {
430         return graphHeight;
431     }
432
433     /**
434      * Sets the value of the graphHeight property.
435      * 
436      * @param value
437      *     allowed object is
438      *     {@link Integer }
439      *     
440      */
441     public void setGraphHeight(Integer value) {
442         this.graphHeight = value;
443     }
444
445     /**
446      * Gets the value of the id property.
447      * 
448      * @return
449      *     possible object is
450      *     {@link String }
451      *     
452      */
453     public String getId() {
454         return id;
455     }
456
457     /**
458      * Sets the value of the id property.
459      * 
460      * @param value
461      *     allowed object is
462      *     {@link String }
463      *     
464      */
465     public void setId(String value) {
466         this.id = value;
467     }
468
469     /**
470      * Gets the value of the scoreOnly property.
471      * 
472      * @return
473      *     possible object is
474      *     {@link Boolean }
475      *     
476      */
477     public boolean isScoreOnly() {
478         if (scoreOnly == null) {
479             return false;
480         } else {
481             return scoreOnly;
482         }
483     }
484
485     /**
486      * Sets the value of the scoreOnly property.
487      * 
488      * @param value
489      *     allowed object is
490      *     {@link Boolean }
491      *     
492      */
493     public void setScoreOnly(Boolean value) {
494         this.scoreOnly = value;
495     }
496
497     /**
498      * Gets the value of the score property.
499      * 
500      * @return
501      *     possible object is
502      *     {@link Double }
503      *     
504      */
505     public Double getScore() {
506         return score;
507     }
508
509     /**
510      * Sets the value of the score property.
511      * 
512      * @param value
513      *     allowed object is
514      *     {@link Double }
515      *     
516      */
517     public void setScore(Double value) {
518         this.score = value;
519     }
520
521     /**
522      * Gets the value of the visible property.
523      * 
524      * @return
525      *     possible object is
526      *     {@link Boolean }
527      *     
528      */
529     public Boolean isVisible() {
530         return visible;
531     }
532
533     /**
534      * Sets the value of the visible property.
535      * 
536      * @param value
537      *     allowed object is
538      *     {@link Boolean }
539      *     
540      */
541     public void setVisible(Boolean value) {
542         this.visible = value;
543     }
544
545     /**
546      * Gets the value of the centreColLabels property.
547      * 
548      * @return
549      *     possible object is
550      *     {@link Boolean }
551      *     
552      */
553     public Boolean isCentreColLabels() {
554         return centreColLabels;
555     }
556
557     /**
558      * Sets the value of the centreColLabels property.
559      * 
560      * @param value
561      *     allowed object is
562      *     {@link Boolean }
563      *     
564      */
565     public void setCentreColLabels(Boolean value) {
566         this.centreColLabels = value;
567     }
568
569     /**
570      * Gets the value of the scaleColLabels property.
571      * 
572      * @return
573      *     possible object is
574      *     {@link Boolean }
575      *     
576      */
577     public Boolean isScaleColLabels() {
578         return scaleColLabels;
579     }
580
581     /**
582      * Sets the value of the scaleColLabels property.
583      * 
584      * @param value
585      *     allowed object is
586      *     {@link Boolean }
587      *     
588      */
589     public void setScaleColLabels(Boolean value) {
590         this.scaleColLabels = value;
591     }
592
593     /**
594      * Gets the value of the showAllColLabels property.
595      * 
596      * @return
597      *     possible object is
598      *     {@link Boolean }
599      *     
600      */
601     public Boolean isShowAllColLabels() {
602         return showAllColLabels;
603     }
604
605     /**
606      * Sets the value of the showAllColLabels property.
607      * 
608      * @param value
609      *     allowed object is
610      *     {@link Boolean }
611      *     
612      */
613     public void setShowAllColLabels(Boolean value) {
614         this.showAllColLabels = value;
615     }
616
617     /**
618      * Gets the value of the autoCalculated property.
619      * 
620      * @return
621      *     possible object is
622      *     {@link Boolean }
623      *     
624      */
625     public boolean isAutoCalculated() {
626         if (autoCalculated == null) {
627             return false;
628         } else {
629             return autoCalculated;
630         }
631     }
632
633     /**
634      * Sets the value of the autoCalculated property.
635      * 
636      * @param value
637      *     allowed object is
638      *     {@link Boolean }
639      *     
640      */
641     public void setAutoCalculated(Boolean value) {
642         this.autoCalculated = value;
643     }
644
645     /**
646      * Gets the value of the belowAlignment property.
647      * 
648      * @return
649      *     possible object is
650      *     {@link Boolean }
651      *     
652      */
653     public boolean isBelowAlignment() {
654         if (belowAlignment == null) {
655             return true;
656         } else {
657             return belowAlignment;
658         }
659     }
660
661     /**
662      * Sets the value of the belowAlignment property.
663      * 
664      * @param value
665      *     allowed object is
666      *     {@link Boolean }
667      *     
668      */
669     public void setBelowAlignment(Boolean value) {
670         this.belowAlignment = value;
671     }
672
673     /**
674      * Gets the value of the calcId property.
675      * 
676      * @return
677      *     possible object is
678      *     {@link String }
679      *     
680      */
681     public String getCalcId() {
682         return calcId;
683     }
684
685     /**
686      * Sets the value of the calcId property.
687      * 
688      * @param value
689      *     allowed object is
690      *     {@link String }
691      *     
692      */
693     public void setCalcId(String value) {
694         this.calcId = value;
695     }
696
697
698     /**
699      * &lt;p&gt;Java class for anonymous complex type.
700      * 
701      * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
702      * 
703      * &lt;pre&gt;
704      * &amp;lt;complexType&amp;gt;
705      *   &amp;lt;complexContent&amp;gt;
706      *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&amp;gt;
707      *       &amp;lt;attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" /&amp;gt;
708      *       &amp;lt;attribute name="value" type="{http://www.w3.org/2001/XMLSchema}float" /&amp;gt;
709      *       &amp;lt;attribute name="colour" type="{http://www.w3.org/2001/XMLSchema}int" /&amp;gt;
710      *     &amp;lt;/restriction&amp;gt;
711      *   &amp;lt;/complexContent&amp;gt;
712      * &amp;lt;/complexType&amp;gt;
713      * &lt;/pre&gt;
714      * 
715      * 
716      */
717     @XmlAccessorType(XmlAccessType.FIELD)
718     @XmlType(name = "")
719     public static class ThresholdLine {
720
721         @XmlAttribute(name = "label")
722         protected String label;
723         @XmlAttribute(name = "value")
724         protected Float value;
725         @XmlAttribute(name = "colour")
726         protected Integer colour;
727
728         /**
729          * Gets the value of the label property.
730          * 
731          * @return
732          *     possible object is
733          *     {@link String }
734          *     
735          */
736         public String getLabel() {
737             return label;
738         }
739
740         /**
741          * Sets the value of the label property.
742          * 
743          * @param value
744          *     allowed object is
745          *     {@link String }
746          *     
747          */
748         public void setLabel(String value) {
749             this.label = value;
750         }
751
752         /**
753          * Gets the value of the value property.
754          * 
755          * @return
756          *     possible object is
757          *     {@link Float }
758          *     
759          */
760         public Float getValue() {
761             return value;
762         }
763
764         /**
765          * Sets the value of the value property.
766          * 
767          * @param value
768          *     allowed object is
769          *     {@link Float }
770          *     
771          */
772         public void setValue(Float value) {
773             this.value = value;
774         }
775
776         /**
777          * Gets the value of the colour property.
778          * 
779          * @return
780          *     possible object is
781          *     {@link Integer }
782          *     
783          */
784         public Integer getColour() {
785             return colour;
786         }
787
788         /**
789          * Sets the value of the colour property.
790          * 
791          * @param value
792          *     allowed object is
793          *     {@link Integer }
794          *     
795          */
796         public void setColour(Integer value) {
797             this.colour = value;
798         }
799
800     }
801
802 }