2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
16 import org.exolab.castor.xml.*;
\r
21 * @version $Revision$ $Date$
\r
24 implements java.io.Serializable
\r
27 //--------------------------/
\r
28 //- Class/Member Variables -/
\r
29 //--------------------------/
\r
37 * keeps track of state for field: _start
\r
39 private boolean _has_start;
\r
47 * keeps track of state for field: _end
\r
49 private boolean _has_end;
\r
54 private java.lang.String _name;
\r
59 private java.lang.String _colour;
\r
62 * Field _consThreshold
\r
64 private int _consThreshold;
\r
67 * keeps track of state for field: _consThreshold
\r
69 private boolean _has_consThreshold;
\r
72 * Field _pidThreshold
\r
74 private int _pidThreshold;
\r
77 * keeps track of state for field: _pidThreshold
\r
79 private boolean _has_pidThreshold;
\r
82 * Field _outlineColour
\r
84 private int _outlineColour;
\r
87 * keeps track of state for field: _outlineColour
\r
89 private boolean _has_outlineColour;
\r
92 * Field _displayBoxes
\r
94 private boolean _displayBoxes;
\r
97 * keeps track of state for field: _displayBoxes
\r
99 private boolean _has_displayBoxes;
\r
102 * Field _displayText
\r
104 private boolean _displayText;
\r
107 * keeps track of state for field: _displayText
\r
109 private boolean _has_displayText;
\r
112 * Field _colourText
\r
114 private boolean _colourText;
\r
117 * keeps track of state for field: _colourText
\r
119 private boolean _has_colourText;
\r
124 private int _textCol1;
\r
127 * keeps track of state for field: _textCol1
\r
129 private boolean _has_textCol1;
\r
134 private int _textCol2;
\r
137 * keeps track of state for field: _textCol2
\r
139 private boolean _has_textCol2;
\r
142 * Field _textColThreshold
\r
144 private int _textColThreshold;
\r
147 * keeps track of state for field: _textColThreshold
\r
149 private boolean _has_textColThreshold;
\r
154 private java.util.Vector _seqList;
\r
156 //----------------/
\r
157 //- Constructors -/
\r
158 //----------------/
\r
163 _seqList = new Vector();
\r
164 } //-- jalview.schemabinding.version2.JGroup()
\r
177 public void addSeq(int vSeq)
\r
178 throws java.lang.IndexOutOfBoundsException
\r
180 _seqList.addElement(new java.lang.Integer(vSeq));
\r
181 } //-- void addSeq(int)
\r
191 public void addSeq(int index, int vSeq)
\r
192 throws java.lang.IndexOutOfBoundsException
\r
194 _seqList.insertElementAt(new java.lang.Integer(vSeq), index);
\r
195 } //-- void addSeq(int, int)
\r
198 * Method deleteColourText
\r
201 public void deleteColourText()
\r
203 this._has_colourText = false;
\r
204 } //-- void deleteColourText()
\r
207 * Method deleteConsThreshold
\r
210 public void deleteConsThreshold()
\r
212 this._has_consThreshold = false;
\r
213 } //-- void deleteConsThreshold()
\r
216 * Method deleteDisplayBoxes
\r
219 public void deleteDisplayBoxes()
\r
221 this._has_displayBoxes = false;
\r
222 } //-- void deleteDisplayBoxes()
\r
225 * Method deleteDisplayText
\r
228 public void deleteDisplayText()
\r
230 this._has_displayText = false;
\r
231 } //-- void deleteDisplayText()
\r
237 public void deleteEnd()
\r
239 this._has_end = false;
\r
240 } //-- void deleteEnd()
\r
243 * Method deleteOutlineColour
\r
246 public void deleteOutlineColour()
\r
248 this._has_outlineColour = false;
\r
249 } //-- void deleteOutlineColour()
\r
252 * Method deletePidThreshold
\r
255 public void deletePidThreshold()
\r
257 this._has_pidThreshold = false;
\r
258 } //-- void deletePidThreshold()
\r
261 * Method deleteStart
\r
264 public void deleteStart()
\r
266 this._has_start = false;
\r
267 } //-- void deleteStart()
\r
270 * Method deleteTextCol1
\r
273 public void deleteTextCol1()
\r
275 this._has_textCol1 = false;
\r
276 } //-- void deleteTextCol1()
\r
279 * Method deleteTextCol2
\r
282 public void deleteTextCol2()
\r
284 this._has_textCol2 = false;
\r
285 } //-- void deleteTextCol2()
\r
288 * Method deleteTextColThreshold
\r
291 public void deleteTextColThreshold()
\r
293 this._has_textColThreshold = false;
\r
294 } //-- void deleteTextColThreshold()
\r
297 * Method enumerateSeq
\r
301 * @return Enumeration
\r
303 public java.util.Enumeration enumerateSeq()
\r
305 return _seqList.elements();
\r
306 } //-- java.util.Enumeration enumerateSeq()
\r
309 * Returns the value of field 'colour'.
\r
312 * @return the value of field 'colour'.
\r
314 public java.lang.String getColour()
\r
316 return this._colour;
\r
317 } //-- java.lang.String getColour()
\r
320 * Returns the value of field 'colourText'.
\r
323 * @return the value of field 'colourText'.
\r
325 public boolean getColourText()
\r
327 return this._colourText;
\r
328 } //-- boolean getColourText()
\r
331 * Returns the value of field 'consThreshold'.
\r
334 * @return the value of field 'consThreshold'.
\r
336 public int getConsThreshold()
\r
338 return this._consThreshold;
\r
339 } //-- int getConsThreshold()
\r
342 * Returns the value of field 'displayBoxes'.
\r
345 * @return the value of field 'displayBoxes'.
\r
347 public boolean getDisplayBoxes()
\r
349 return this._displayBoxes;
\r
350 } //-- boolean getDisplayBoxes()
\r
353 * Returns the value of field 'displayText'.
\r
356 * @return the value of field 'displayText'.
\r
358 public boolean getDisplayText()
\r
360 return this._displayText;
\r
361 } //-- boolean getDisplayText()
\r
364 * Returns the value of field 'end'.
\r
367 * @return the value of field 'end'.
\r
369 public int getEnd()
\r
372 } //-- int getEnd()
\r
375 * Returns the value of field 'name'.
\r
378 * @return the value of field 'name'.
\r
380 public java.lang.String getName()
\r
383 } //-- java.lang.String getName()
\r
386 * Returns the value of field 'outlineColour'.
\r
389 * @return the value of field 'outlineColour'.
\r
391 public int getOutlineColour()
\r
393 return this._outlineColour;
\r
394 } //-- int getOutlineColour()
\r
397 * Returns the value of field 'pidThreshold'.
\r
400 * @return the value of field 'pidThreshold'.
\r
402 public int getPidThreshold()
\r
404 return this._pidThreshold;
\r
405 } //-- int getPidThreshold()
\r
415 public int getSeq(int index)
\r
416 throws java.lang.IndexOutOfBoundsException
\r
418 //-- check bounds for index
\r
419 if ( (index < 0) || (index > _seqList.size()))
\r
421 throw new IndexOutOfBoundsException();
\r
424 return ( (java.lang.Integer) _seqList.elementAt(index)).intValue();
\r
425 } //-- int getSeq(int)
\r
434 public int[] getSeq()
\r
436 int size = _seqList.size();
\r
437 int[] mArray = new int[size];
\r
438 for (int index = 0; index < size; index++)
\r
440 mArray[index] = ( (java.lang.Integer) _seqList.elementAt(index)).intValue();
\r
443 } //-- int[] getSeq()
\r
446 * Method getSeqCount
\r
452 public int getSeqCount()
\r
454 return _seqList.size();
\r
455 } //-- int getSeqCount()
\r
458 * Returns the value of field 'start'.
\r
461 * @return the value of field 'start'.
\r
463 public int getStart()
\r
465 return this._start;
\r
466 } //-- int getStart()
\r
469 * Returns the value of field 'textCol1'.
\r
472 * @return the value of field 'textCol1'.
\r
474 public int getTextCol1()
\r
476 return this._textCol1;
\r
477 } //-- int getTextCol1()
\r
480 * Returns the value of field 'textCol2'.
\r
483 * @return the value of field 'textCol2'.
\r
485 public int getTextCol2()
\r
487 return this._textCol2;
\r
488 } //-- int getTextCol2()
\r
491 * Returns the value of field 'textColThreshold'.
\r
494 * @return the value of field 'textColThreshold'.
\r
496 public int getTextColThreshold()
\r
498 return this._textColThreshold;
\r
499 } //-- int getTextColThreshold()
\r
502 * Method hasColourText
\r
508 public boolean hasColourText()
\r
510 return this._has_colourText;
\r
511 } //-- boolean hasColourText()
\r
514 * Method hasConsThreshold
\r
520 public boolean hasConsThreshold()
\r
522 return this._has_consThreshold;
\r
523 } //-- boolean hasConsThreshold()
\r
526 * Method hasDisplayBoxes
\r
532 public boolean hasDisplayBoxes()
\r
534 return this._has_displayBoxes;
\r
535 } //-- boolean hasDisplayBoxes()
\r
538 * Method hasDisplayText
\r
544 public boolean hasDisplayText()
\r
546 return this._has_displayText;
\r
547 } //-- boolean hasDisplayText()
\r
556 public boolean hasEnd()
\r
558 return this._has_end;
\r
559 } //-- boolean hasEnd()
\r
562 * Method hasOutlineColour
\r
568 public boolean hasOutlineColour()
\r
570 return this._has_outlineColour;
\r
571 } //-- boolean hasOutlineColour()
\r
574 * Method hasPidThreshold
\r
580 public boolean hasPidThreshold()
\r
582 return this._has_pidThreshold;
\r
583 } //-- boolean hasPidThreshold()
\r
592 public boolean hasStart()
\r
594 return this._has_start;
\r
595 } //-- boolean hasStart()
\r
598 * Method hasTextCol1
\r
604 public boolean hasTextCol1()
\r
606 return this._has_textCol1;
\r
607 } //-- boolean hasTextCol1()
\r
610 * Method hasTextCol2
\r
616 public boolean hasTextCol2()
\r
618 return this._has_textCol2;
\r
619 } //-- boolean hasTextCol2()
\r
622 * Method hasTextColThreshold
\r
628 public boolean hasTextColThreshold()
\r
630 return this._has_textColThreshold;
\r
631 } //-- boolean hasTextColThreshold()
\r
640 public boolean isValid()
\r
646 catch (org.exolab.castor.xml.ValidationException vex)
\r
651 } //-- boolean isValid()
\r
660 public void marshal(java.io.Writer out)
\r
661 throws org.exolab.castor.xml.MarshalException,
\r
662 org.exolab.castor.xml.ValidationException
\r
665 Marshaller.marshal(this, out);
\r
666 } //-- void marshal(java.io.Writer)
\r
675 public void marshal(org.xml.sax.ContentHandler handler)
\r
676 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
677 org.exolab.castor.xml.ValidationException
\r
680 Marshaller.marshal(this, handler);
\r
681 } //-- void marshal(org.xml.sax.ContentHandler)
\r
684 * Method removeAllSeq
\r
687 public void removeAllSeq()
\r
689 _seqList.removeAllElements();
\r
690 } //-- void removeAllSeq()
\r
700 public int removeSeq(int index)
\r
702 java.lang.Object obj = _seqList.elementAt(index);
\r
703 _seqList.removeElementAt(index);
\r
704 return ( (java.lang.Integer) obj).intValue();
\r
705 } //-- int removeSeq(int)
\r
708 * Sets the value of field 'colour'.
\r
710 * @param colour the value of field 'colour'.
\r
712 public void setColour(java.lang.String colour)
\r
714 this._colour = colour;
\r
715 } //-- void setColour(java.lang.String)
\r
718 * Sets the value of field 'colourText'.
\r
720 * @param colourText the value of field 'colourText'.
\r
722 public void setColourText(boolean colourText)
\r
724 this._colourText = colourText;
\r
725 this._has_colourText = true;
\r
726 } //-- void setColourText(boolean)
\r
729 * Sets the value of field 'consThreshold'.
\r
731 * @param consThreshold the value of field 'consThreshold'.
\r
733 public void setConsThreshold(int consThreshold)
\r
735 this._consThreshold = consThreshold;
\r
736 this._has_consThreshold = true;
\r
737 } //-- void setConsThreshold(int)
\r
740 * Sets the value of field 'displayBoxes'.
\r
742 * @param displayBoxes the value of field 'displayBoxes'.
\r
744 public void setDisplayBoxes(boolean displayBoxes)
\r
746 this._displayBoxes = displayBoxes;
\r
747 this._has_displayBoxes = true;
\r
748 } //-- void setDisplayBoxes(boolean)
\r
751 * Sets the value of field 'displayText'.
\r
753 * @param displayText the value of field 'displayText'.
\r
755 public void setDisplayText(boolean displayText)
\r
757 this._displayText = displayText;
\r
758 this._has_displayText = true;
\r
759 } //-- void setDisplayText(boolean)
\r
762 * Sets the value of field 'end'.
\r
764 * @param end the value of field 'end'.
\r
766 public void setEnd(int end)
\r
769 this._has_end = true;
\r
770 } //-- void setEnd(int)
\r
773 * Sets the value of field 'name'.
\r
775 * @param name the value of field 'name'.
\r
777 public void setName(java.lang.String name)
\r
780 } //-- void setName(java.lang.String)
\r
783 * Sets the value of field 'outlineColour'.
\r
785 * @param outlineColour the value of field 'outlineColour'.
\r
787 public void setOutlineColour(int outlineColour)
\r
789 this._outlineColour = outlineColour;
\r
790 this._has_outlineColour = true;
\r
791 } //-- void setOutlineColour(int)
\r
794 * Sets the value of field 'pidThreshold'.
\r
796 * @param pidThreshold the value of field 'pidThreshold'.
\r
798 public void setPidThreshold(int pidThreshold)
\r
800 this._pidThreshold = pidThreshold;
\r
801 this._has_pidThreshold = true;
\r
802 } //-- void setPidThreshold(int)
\r
812 public void setSeq(int index, int vSeq)
\r
813 throws java.lang.IndexOutOfBoundsException
\r
815 //-- check bounds for index
\r
816 if ( (index < 0) || (index > _seqList.size()))
\r
818 throw new IndexOutOfBoundsException();
\r
820 _seqList.setElementAt(new java.lang.Integer(vSeq), index);
\r
821 } //-- void setSeq(int, int)
\r
830 public void setSeq(int[] seqArray)
\r
833 _seqList.removeAllElements();
\r
834 for (int i = 0; i < seqArray.length; i++)
\r
836 _seqList.addElement(new java.lang.Integer(seqArray[i]));
\r
838 } //-- void setSeq(int)
\r
841 * Sets the value of field 'start'.
\r
843 * @param start the value of field 'start'.
\r
845 public void setStart(int start)
\r
847 this._start = start;
\r
848 this._has_start = true;
\r
849 } //-- void setStart(int)
\r
852 * Sets the value of field 'textCol1'.
\r
854 * @param textCol1 the value of field 'textCol1'.
\r
856 public void setTextCol1(int textCol1)
\r
858 this._textCol1 = textCol1;
\r
859 this._has_textCol1 = true;
\r
860 } //-- void setTextCol1(int)
\r
863 * Sets the value of field 'textCol2'.
\r
865 * @param textCol2 the value of field 'textCol2'.
\r
867 public void setTextCol2(int textCol2)
\r
869 this._textCol2 = textCol2;
\r
870 this._has_textCol2 = true;
\r
871 } //-- void setTextCol2(int)
\r
874 * Sets the value of field 'textColThreshold'.
\r
876 * @param textColThreshold the value of field 'textColThreshold'
\r
878 public void setTextColThreshold(int textColThreshold)
\r
880 this._textColThreshold = textColThreshold;
\r
881 this._has_textColThreshold = true;
\r
882 } //-- void setTextColThreshold(int)
\r
892 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
893 throws org.exolab.castor.xml.MarshalException,
\r
894 org.exolab.castor.xml.ValidationException
\r
896 return (jalview.schemabinding.version2.JGroup) Unmarshaller.unmarshal(
\r
897 jalview.schemabinding.version2.JGroup.class, reader);
\r
898 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
904 public void validate()
\r
905 throws org.exolab.castor.xml.ValidationException
\r
907 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.
\r
909 validator.validate(this);
\r
910 } //-- void validate()
\r