a6d60ed37bf2379e411819eb9c19bae064514663
[jalview.git] / src / jalview / schemabinding / version2 / Annotation.java
1 /*
2  * This class was automatically generated with 
3  * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
4  * Schema.
5  * $Id$
6  */
7
8 package jalview.schemabinding.version2;
9
10   //---------------------------------/
11  //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
16
17 /**
18  * Class Annotation.
19  * 
20  * @version $Revision$ $Date$
21  */
22 public class Annotation implements java.io.Serializable {
23
24
25       //--------------------------/
26      //- Class/Member Variables -/
27     //--------------------------/
28
29     /**
30      * Field _graph.
31      */
32     private boolean _graph;
33
34     /**
35      * keeps track of state for field: _graph
36      */
37     private boolean _has_graph;
38
39     /**
40      * Field _graphType.
41      */
42     private int _graphType;
43
44     /**
45      * keeps track of state for field: _graphType
46      */
47     private boolean _has_graphType;
48
49     /**
50      * Field _sequenceRef.
51      */
52     private java.lang.String _sequenceRef;
53
54     /**
55      * Field _groupRef.
56      */
57     private java.lang.String _groupRef;
58
59     /**
60      * Field _graphColour.
61      */
62     private int _graphColour;
63
64     /**
65      * keeps track of state for field: _graphColour
66      */
67     private boolean _has_graphColour;
68
69     /**
70      * Field _graphGroup.
71      */
72     private int _graphGroup;
73
74     /**
75      * keeps track of state for field: _graphGroup
76      */
77     private boolean _has_graphGroup;
78
79     /**
80      * height in pixels for the graph if this is a graph-type
81      * annotation.
82      */
83     private int _graphHeight;
84
85     /**
86      * keeps track of state for field: _graphHeight
87      */
88     private boolean _has_graphHeight;
89
90     /**
91      * Field _id.
92      */
93     private java.lang.String _id;
94
95     /**
96      * Field _scoreOnly.
97      */
98     private boolean _scoreOnly = false;
99
100     /**
101      * keeps track of state for field: _scoreOnly
102      */
103     private boolean _has_scoreOnly;
104
105     /**
106      * Field _score.
107      */
108     private double _score;
109
110     /**
111      * keeps track of state for field: _score
112      */
113     private boolean _has_score;
114
115     /**
116      * Field _visible.
117      */
118     private boolean _visible;
119
120     /**
121      * keeps track of state for field: _visible
122      */
123     private boolean _has_visible;
124
125     /**
126      * Field _centreColLabels.
127      */
128     private boolean _centreColLabels;
129
130     /**
131      * keeps track of state for field: _centreColLabels
132      */
133     private boolean _has_centreColLabels;
134
135     /**
136      * Field _scaleColLabels.
137      */
138     private boolean _scaleColLabels;
139
140     /**
141      * keeps track of state for field: _scaleColLabels
142      */
143     private boolean _has_scaleColLabels;
144
145     /**
146      * Field _showAllColLabels.
147      */
148     private boolean _showAllColLabels;
149
150     /**
151      * keeps track of state for field: _showAllColLabels
152      */
153     private boolean _has_showAllColLabels;
154
155     /**
156      * is an autocalculated annotation row
157      */
158     private boolean _autoCalculated = false;
159
160     /**
161      * keeps track of state for field: _autoCalculated
162      */
163     private boolean _has_autoCalculated;
164
165     /**
166      * Field _annotationElementList.
167      */
168     private java.util.Vector _annotationElementList;
169
170     /**
171      * Field _label.
172      */
173     private java.lang.String _label;
174
175     /**
176      * Field _description.
177      */
178     private java.lang.String _description;
179
180     /**
181      * Field _thresholdLine.
182      */
183     private jalview.schemabinding.version2.ThresholdLine _thresholdLine;
184
185
186       //----------------/
187      //- Constructors -/
188     //----------------/
189
190     public Annotation() {
191         super();
192         this._annotationElementList = new java.util.Vector();
193     }
194
195
196       //-----------/
197      //- Methods -/
198     //-----------/
199
200     /**
201      * 
202      * 
203      * @param vAnnotationElement
204      * @throws java.lang.IndexOutOfBoundsException if the index
205      * given is outside the bounds of the collection
206      */
207     public void addAnnotationElement(
208             final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
209     throws java.lang.IndexOutOfBoundsException {
210         this._annotationElementList.addElement(vAnnotationElement);
211     }
212
213     /**
214      * 
215      * 
216      * @param index
217      * @param vAnnotationElement
218      * @throws java.lang.IndexOutOfBoundsException if the index
219      * given is outside the bounds of the collection
220      */
221     public void addAnnotationElement(
222             final int index,
223             final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
224     throws java.lang.IndexOutOfBoundsException {
225         this._annotationElementList.add(index, vAnnotationElement);
226     }
227
228     /**
229      */
230     public void deleteAutoCalculated(
231     ) {
232         this._has_autoCalculated= false;
233     }
234
235     /**
236      */
237     public void deleteCentreColLabels(
238     ) {
239         this._has_centreColLabels= false;
240     }
241
242     /**
243      */
244     public void deleteGraph(
245     ) {
246         this._has_graph= false;
247     }
248
249     /**
250      */
251     public void deleteGraphColour(
252     ) {
253         this._has_graphColour= false;
254     }
255
256     /**
257      */
258     public void deleteGraphGroup(
259     ) {
260         this._has_graphGroup= false;
261     }
262
263     /**
264      */
265     public void deleteGraphHeight(
266     ) {
267         this._has_graphHeight= false;
268     }
269
270     /**
271      */
272     public void deleteGraphType(
273     ) {
274         this._has_graphType= false;
275     }
276
277     /**
278      */
279     public void deleteScaleColLabels(
280     ) {
281         this._has_scaleColLabels= false;
282     }
283
284     /**
285      */
286     public void deleteScore(
287     ) {
288         this._has_score= false;
289     }
290
291     /**
292      */
293     public void deleteScoreOnly(
294     ) {
295         this._has_scoreOnly= false;
296     }
297
298     /**
299      */
300     public void deleteShowAllColLabels(
301     ) {
302         this._has_showAllColLabels= false;
303     }
304
305     /**
306      */
307     public void deleteVisible(
308     ) {
309         this._has_visible= false;
310     }
311
312     /**
313      * Method enumerateAnnotationElement.
314      * 
315      * @return an Enumeration over all
316      * jalview.schemabinding.version2.AnnotationElement elements
317      */
318     public java.util.Enumeration enumerateAnnotationElement(
319     ) {
320         return this._annotationElementList.elements();
321     }
322
323     /**
324      * Method getAnnotationElement.
325      * 
326      * @param index
327      * @throws java.lang.IndexOutOfBoundsException if the index
328      * given is outside the bounds of the collection
329      * @return the value of the
330      * jalview.schemabinding.version2.AnnotationElement at the
331      * given index
332      */
333     public jalview.schemabinding.version2.AnnotationElement getAnnotationElement(
334             final int index)
335     throws java.lang.IndexOutOfBoundsException {
336         // check bounds for index
337         if (index < 0 || index >= this._annotationElementList.size()) {
338             throw new IndexOutOfBoundsException("getAnnotationElement: Index value '" + index + "' not in range [0.." + (this._annotationElementList.size() - 1) + "]");
339         }
340         
341         return (jalview.schemabinding.version2.AnnotationElement) _annotationElementList.get(index);
342     }
343
344     /**
345      * Method getAnnotationElement.Returns the contents of the
346      * collection in an Array.  <p>Note:  Just in case the
347      * collection contents are changing in another thread, we pass
348      * a 0-length Array of the correct type into the API call. 
349      * This way we <i>know</i> that the Array returned is of
350      * exactly the correct length.
351      * 
352      * @return this collection as an Array
353      */
354     public jalview.schemabinding.version2.AnnotationElement[] getAnnotationElement(
355     ) {
356         jalview.schemabinding.version2.AnnotationElement[] array = new jalview.schemabinding.version2.AnnotationElement[0];
357         return (jalview.schemabinding.version2.AnnotationElement[]) this._annotationElementList.toArray(array);
358     }
359
360     /**
361      * Method getAnnotationElementCount.
362      * 
363      * @return the size of this collection
364      */
365     public int getAnnotationElementCount(
366     ) {
367         return this._annotationElementList.size();
368     }
369
370     /**
371      * Returns the value of field 'autoCalculated'. The field
372      * 'autoCalculated' has the following description: is an
373      * autocalculated annotation row
374      * 
375      * @return the value of field 'AutoCalculated'.
376      */
377     public boolean getAutoCalculated(
378     ) {
379         return this._autoCalculated;
380     }
381
382     /**
383      * Returns the value of field 'centreColLabels'.
384      * 
385      * @return the value of field 'CentreColLabels'.
386      */
387     public boolean getCentreColLabels(
388     ) {
389         return this._centreColLabels;
390     }
391
392     /**
393      * Returns the value of field 'description'.
394      * 
395      * @return the value of field 'Description'.
396      */
397     public java.lang.String getDescription(
398     ) {
399         return this._description;
400     }
401
402     /**
403      * Returns the value of field 'graph'.
404      * 
405      * @return the value of field 'Graph'.
406      */
407     public boolean getGraph(
408     ) {
409         return this._graph;
410     }
411
412     /**
413      * Returns the value of field 'graphColour'.
414      * 
415      * @return the value of field 'GraphColour'.
416      */
417     public int getGraphColour(
418     ) {
419         return this._graphColour;
420     }
421
422     /**
423      * Returns the value of field 'graphGroup'.
424      * 
425      * @return the value of field 'GraphGroup'.
426      */
427     public int getGraphGroup(
428     ) {
429         return this._graphGroup;
430     }
431
432     /**
433      * Returns the value of field 'graphHeight'. The field
434      * 'graphHeight' has the following description: height in
435      * pixels for the graph if this is a graph-type annotation.
436      * 
437      * @return the value of field 'GraphHeight'.
438      */
439     public int getGraphHeight(
440     ) {
441         return this._graphHeight;
442     }
443
444     /**
445      * Returns the value of field 'graphType'.
446      * 
447      * @return the value of field 'GraphType'.
448      */
449     public int getGraphType(
450     ) {
451         return this._graphType;
452     }
453
454     /**
455      * Returns the value of field 'groupRef'.
456      * 
457      * @return the value of field 'GroupRef'.
458      */
459     public java.lang.String getGroupRef(
460     ) {
461         return this._groupRef;
462     }
463
464     /**
465      * Returns the value of field 'id'.
466      * 
467      * @return the value of field 'Id'.
468      */
469     public java.lang.String getId(
470     ) {
471         return this._id;
472     }
473
474     /**
475      * Returns the value of field 'label'.
476      * 
477      * @return the value of field 'Label'.
478      */
479     public java.lang.String getLabel(
480     ) {
481         return this._label;
482     }
483
484     /**
485      * Returns the value of field 'scaleColLabels'.
486      * 
487      * @return the value of field 'ScaleColLabels'.
488      */
489     public boolean getScaleColLabels(
490     ) {
491         return this._scaleColLabels;
492     }
493
494     /**
495      * Returns the value of field 'score'.
496      * 
497      * @return the value of field 'Score'.
498      */
499     public double getScore(
500     ) {
501         return this._score;
502     }
503
504     /**
505      * Returns the value of field 'scoreOnly'.
506      * 
507      * @return the value of field 'ScoreOnly'.
508      */
509     public boolean getScoreOnly(
510     ) {
511         return this._scoreOnly;
512     }
513
514     /**
515      * Returns the value of field 'sequenceRef'.
516      * 
517      * @return the value of field 'SequenceRef'.
518      */
519     public java.lang.String getSequenceRef(
520     ) {
521         return this._sequenceRef;
522     }
523
524     /**
525      * Returns the value of field 'showAllColLabels'.
526      * 
527      * @return the value of field 'ShowAllColLabels'.
528      */
529     public boolean getShowAllColLabels(
530     ) {
531         return this._showAllColLabels;
532     }
533
534     /**
535      * Returns the value of field 'thresholdLine'.
536      * 
537      * @return the value of field 'ThresholdLine'.
538      */
539     public jalview.schemabinding.version2.ThresholdLine getThresholdLine(
540     ) {
541         return this._thresholdLine;
542     }
543
544     /**
545      * Returns the value of field 'visible'.
546      * 
547      * @return the value of field 'Visible'.
548      */
549     public boolean getVisible(
550     ) {
551         return this._visible;
552     }
553
554     /**
555      * Method hasAutoCalculated.
556      * 
557      * @return true if at least one AutoCalculated has been added
558      */
559     public boolean hasAutoCalculated(
560     ) {
561         return this._has_autoCalculated;
562     }
563
564     /**
565      * Method hasCentreColLabels.
566      * 
567      * @return true if at least one CentreColLabels has been added
568      */
569     public boolean hasCentreColLabels(
570     ) {
571         return this._has_centreColLabels;
572     }
573
574     /**
575      * Method hasGraph.
576      * 
577      * @return true if at least one Graph has been added
578      */
579     public boolean hasGraph(
580     ) {
581         return this._has_graph;
582     }
583
584     /**
585      * Method hasGraphColour.
586      * 
587      * @return true if at least one GraphColour has been added
588      */
589     public boolean hasGraphColour(
590     ) {
591         return this._has_graphColour;
592     }
593
594     /**
595      * Method hasGraphGroup.
596      * 
597      * @return true if at least one GraphGroup has been added
598      */
599     public boolean hasGraphGroup(
600     ) {
601         return this._has_graphGroup;
602     }
603
604     /**
605      * Method hasGraphHeight.
606      * 
607      * @return true if at least one GraphHeight has been added
608      */
609     public boolean hasGraphHeight(
610     ) {
611         return this._has_graphHeight;
612     }
613
614     /**
615      * Method hasGraphType.
616      * 
617      * @return true if at least one GraphType has been added
618      */
619     public boolean hasGraphType(
620     ) {
621         return this._has_graphType;
622     }
623
624     /**
625      * Method hasScaleColLabels.
626      * 
627      * @return true if at least one ScaleColLabels has been added
628      */
629     public boolean hasScaleColLabels(
630     ) {
631         return this._has_scaleColLabels;
632     }
633
634     /**
635      * Method hasScore.
636      * 
637      * @return true if at least one Score has been added
638      */
639     public boolean hasScore(
640     ) {
641         return this._has_score;
642     }
643
644     /**
645      * Method hasScoreOnly.
646      * 
647      * @return true if at least one ScoreOnly has been added
648      */
649     public boolean hasScoreOnly(
650     ) {
651         return this._has_scoreOnly;
652     }
653
654     /**
655      * Method hasShowAllColLabels.
656      * 
657      * @return true if at least one ShowAllColLabels has been added
658      */
659     public boolean hasShowAllColLabels(
660     ) {
661         return this._has_showAllColLabels;
662     }
663
664     /**
665      * Method hasVisible.
666      * 
667      * @return true if at least one Visible has been added
668      */
669     public boolean hasVisible(
670     ) {
671         return this._has_visible;
672     }
673
674     /**
675      * Returns the value of field 'autoCalculated'. The field
676      * 'autoCalculated' has the following description: is an
677      * autocalculated annotation row
678      * 
679      * @return the value of field 'AutoCalculated'.
680      */
681     public boolean isAutoCalculated(
682     ) {
683         return this._autoCalculated;
684     }
685
686     /**
687      * Returns the value of field 'centreColLabels'.
688      * 
689      * @return the value of field 'CentreColLabels'.
690      */
691     public boolean isCentreColLabels(
692     ) {
693         return this._centreColLabels;
694     }
695
696     /**
697      * Returns the value of field 'graph'.
698      * 
699      * @return the value of field 'Graph'.
700      */
701     public boolean isGraph(
702     ) {
703         return this._graph;
704     }
705
706     /**
707      * Returns the value of field 'scaleColLabels'.
708      * 
709      * @return the value of field 'ScaleColLabels'.
710      */
711     public boolean isScaleColLabels(
712     ) {
713         return this._scaleColLabels;
714     }
715
716     /**
717      * Returns the value of field 'scoreOnly'.
718      * 
719      * @return the value of field 'ScoreOnly'.
720      */
721     public boolean isScoreOnly(
722     ) {
723         return this._scoreOnly;
724     }
725
726     /**
727      * Returns the value of field 'showAllColLabels'.
728      * 
729      * @return the value of field 'ShowAllColLabels'.
730      */
731     public boolean isShowAllColLabels(
732     ) {
733         return this._showAllColLabels;
734     }
735
736     /**
737      * Method isValid.
738      * 
739      * @return true if this object is valid according to the schema
740      */
741     public boolean isValid(
742     ) {
743         try {
744             validate();
745         } catch (org.exolab.castor.xml.ValidationException vex) {
746             return false;
747         }
748         return true;
749     }
750
751     /**
752      * Returns the value of field 'visible'.
753      * 
754      * @return the value of field 'Visible'.
755      */
756     public boolean isVisible(
757     ) {
758         return this._visible;
759     }
760
761     /**
762      * 
763      * 
764      * @param out
765      * @throws org.exolab.castor.xml.MarshalException if object is
766      * null or if any SAXException is thrown during marshaling
767      * @throws org.exolab.castor.xml.ValidationException if this
768      * object is an invalid instance according to the schema
769      */
770     public void marshal(
771             final java.io.Writer out)
772     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
773         Marshaller.marshal(this, out);
774     }
775
776     /**
777      * 
778      * 
779      * @param handler
780      * @throws java.io.IOException if an IOException occurs during
781      * marshaling
782      * @throws org.exolab.castor.xml.ValidationException if this
783      * object is an invalid instance according to the schema
784      * @throws org.exolab.castor.xml.MarshalException if object is
785      * null or if any SAXException is thrown during marshaling
786      */
787     public void marshal(
788             final org.xml.sax.ContentHandler handler)
789     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
790         Marshaller.marshal(this, handler);
791     }
792
793     /**
794      */
795     public void removeAllAnnotationElement(
796     ) {
797         this._annotationElementList.clear();
798     }
799
800     /**
801      * Method removeAnnotationElement.
802      * 
803      * @param vAnnotationElement
804      * @return true if the object was removed from the collection.
805      */
806     public boolean removeAnnotationElement(
807             final jalview.schemabinding.version2.AnnotationElement vAnnotationElement) {
808         boolean removed = _annotationElementList.remove(vAnnotationElement);
809         return removed;
810     }
811
812     /**
813      * Method removeAnnotationElementAt.
814      * 
815      * @param index
816      * @return the element removed from the collection
817      */
818     public jalview.schemabinding.version2.AnnotationElement removeAnnotationElementAt(
819             final int index) {
820         java.lang.Object obj = this._annotationElementList.remove(index);
821         return (jalview.schemabinding.version2.AnnotationElement) obj;
822     }
823
824     /**
825      * 
826      * 
827      * @param index
828      * @param vAnnotationElement
829      * @throws java.lang.IndexOutOfBoundsException if the index
830      * given is outside the bounds of the collection
831      */
832     public void setAnnotationElement(
833             final int index,
834             final jalview.schemabinding.version2.AnnotationElement vAnnotationElement)
835     throws java.lang.IndexOutOfBoundsException {
836         // check bounds for index
837         if (index < 0 || index >= this._annotationElementList.size()) {
838             throw new IndexOutOfBoundsException("setAnnotationElement: Index value '" + index + "' not in range [0.." + (this._annotationElementList.size() - 1) + "]");
839         }
840         
841         this._annotationElementList.set(index, vAnnotationElement);
842     }
843
844     /**
845      * 
846      * 
847      * @param vAnnotationElementArray
848      */
849     public void setAnnotationElement(
850             final jalview.schemabinding.version2.AnnotationElement[] vAnnotationElementArray) {
851         //-- copy array
852         _annotationElementList.clear();
853         
854         for (int i = 0; i < vAnnotationElementArray.length; i++) {
855                 this._annotationElementList.add(vAnnotationElementArray[i]);
856         }
857     }
858
859     /**
860      * Sets the value of field 'autoCalculated'. The field
861      * 'autoCalculated' has the following description: is an
862      * autocalculated annotation row
863      * 
864      * @param autoCalculated the value of field 'autoCalculated'.
865      */
866     public void setAutoCalculated(
867             final boolean autoCalculated) {
868         this._autoCalculated = autoCalculated;
869         this._has_autoCalculated = true;
870     }
871
872     /**
873      * Sets the value of field 'centreColLabels'.
874      * 
875      * @param centreColLabels the value of field 'centreColLabels'.
876      */
877     public void setCentreColLabels(
878             final boolean centreColLabels) {
879         this._centreColLabels = centreColLabels;
880         this._has_centreColLabels = true;
881     }
882
883     /**
884      * Sets the value of field 'description'.
885      * 
886      * @param description the value of field 'description'.
887      */
888     public void setDescription(
889             final java.lang.String description) {
890         this._description = description;
891     }
892
893     /**
894      * Sets the value of field 'graph'.
895      * 
896      * @param graph the value of field 'graph'.
897      */
898     public void setGraph(
899             final boolean graph) {
900         this._graph = graph;
901         this._has_graph = true;
902     }
903
904     /**
905      * Sets the value of field 'graphColour'.
906      * 
907      * @param graphColour the value of field 'graphColour'.
908      */
909     public void setGraphColour(
910             final int graphColour) {
911         this._graphColour = graphColour;
912         this._has_graphColour = true;
913     }
914
915     /**
916      * Sets the value of field 'graphGroup'.
917      * 
918      * @param graphGroup the value of field 'graphGroup'.
919      */
920     public void setGraphGroup(
921             final int graphGroup) {
922         this._graphGroup = graphGroup;
923         this._has_graphGroup = true;
924     }
925
926     /**
927      * Sets the value of field 'graphHeight'. The field
928      * 'graphHeight' has the following description: height in
929      * pixels for the graph if this is a graph-type annotation.
930      * 
931      * @param graphHeight the value of field 'graphHeight'.
932      */
933     public void setGraphHeight(
934             final int graphHeight) {
935         this._graphHeight = graphHeight;
936         this._has_graphHeight = true;
937     }
938
939     /**
940      * Sets the value of field 'graphType'.
941      * 
942      * @param graphType the value of field 'graphType'.
943      */
944     public void setGraphType(
945             final int graphType) {
946         this._graphType = graphType;
947         this._has_graphType = true;
948     }
949
950     /**
951      * Sets the value of field 'groupRef'.
952      * 
953      * @param groupRef the value of field 'groupRef'.
954      */
955     public void setGroupRef(
956             final java.lang.String groupRef) {
957         this._groupRef = groupRef;
958     }
959
960     /**
961      * Sets the value of field 'id'.
962      * 
963      * @param id the value of field 'id'.
964      */
965     public void setId(
966             final java.lang.String id) {
967         this._id = id;
968     }
969
970     /**
971      * Sets the value of field 'label'.
972      * 
973      * @param label the value of field 'label'.
974      */
975     public void setLabel(
976             final java.lang.String label) {
977         this._label = label;
978     }
979
980     /**
981      * Sets the value of field 'scaleColLabels'.
982      * 
983      * @param scaleColLabels the value of field 'scaleColLabels'.
984      */
985     public void setScaleColLabels(
986             final boolean scaleColLabels) {
987         this._scaleColLabels = scaleColLabels;
988         this._has_scaleColLabels = true;
989     }
990
991     /**
992      * Sets the value of field 'score'.
993      * 
994      * @param score the value of field 'score'.
995      */
996     public void setScore(
997             final double score) {
998         this._score = score;
999         this._has_score = true;
1000     }
1001
1002     /**
1003      * Sets the value of field 'scoreOnly'.
1004      * 
1005      * @param scoreOnly the value of field 'scoreOnly'.
1006      */
1007     public void setScoreOnly(
1008             final boolean scoreOnly) {
1009         this._scoreOnly = scoreOnly;
1010         this._has_scoreOnly = true;
1011     }
1012
1013     /**
1014      * Sets the value of field 'sequenceRef'.
1015      * 
1016      * @param sequenceRef the value of field 'sequenceRef'.
1017      */
1018     public void setSequenceRef(
1019             final java.lang.String sequenceRef) {
1020         this._sequenceRef = sequenceRef;
1021     }
1022
1023     /**
1024      * Sets the value of field 'showAllColLabels'.
1025      * 
1026      * @param showAllColLabels the value of field 'showAllColLabels'
1027      */
1028     public void setShowAllColLabels(
1029             final boolean showAllColLabels) {
1030         this._showAllColLabels = showAllColLabels;
1031         this._has_showAllColLabels = true;
1032     }
1033
1034     /**
1035      * Sets the value of field 'thresholdLine'.
1036      * 
1037      * @param thresholdLine the value of field 'thresholdLine'.
1038      */
1039     public void setThresholdLine(
1040             final jalview.schemabinding.version2.ThresholdLine thresholdLine) {
1041         this._thresholdLine = thresholdLine;
1042     }
1043
1044     /**
1045      * Sets the value of field 'visible'.
1046      * 
1047      * @param visible the value of field 'visible'.
1048      */
1049     public void setVisible(
1050             final boolean visible) {
1051         this._visible = visible;
1052         this._has_visible = true;
1053     }
1054
1055     /**
1056      * Method unmarshal.
1057      * 
1058      * @param reader
1059      * @throws org.exolab.castor.xml.MarshalException if object is
1060      * null or if any SAXException is thrown during marshaling
1061      * @throws org.exolab.castor.xml.ValidationException if this
1062      * object is an invalid instance according to the schema
1063      * @return the unmarshaled
1064      * jalview.schemabinding.version2.Annotation
1065      */
1066     public static jalview.schemabinding.version2.Annotation unmarshal(
1067             final java.io.Reader reader)
1068     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1069         return (jalview.schemabinding.version2.Annotation) Unmarshaller.unmarshal(jalview.schemabinding.version2.Annotation.class, reader);
1070     }
1071
1072     /**
1073      * 
1074      * 
1075      * @throws org.exolab.castor.xml.ValidationException if this
1076      * object is an invalid instance according to the schema
1077      */
1078     public void validate(
1079     )
1080     throws org.exolab.castor.xml.ValidationException {
1081         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1082         validator.validate(this);
1083     }
1084
1085 }