2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import org.exolab.castor.xml.Marshaller;
15 import org.exolab.castor.xml.Unmarshaller;
20 * @version $Revision$ $Date$
22 public class Tree implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
32 private java.lang.String _fontName;
37 private int _fontSize;
40 * keeps track of state for field: _fontSize
42 private boolean _has_fontSize;
47 private int _fontStyle;
50 * keeps track of state for field: _fontStyle
52 private boolean _has_fontStyle;
57 private float _threshold;
60 * keeps track of state for field: _threshold
62 private boolean _has_threshold;
65 * Field _showBootstrap.
67 private boolean _showBootstrap;
70 * keeps track of state for field: _showBootstrap
72 private boolean _has_showBootstrap;
75 * Field _showDistances.
77 private boolean _showDistances;
80 * keeps track of state for field: _showDistances
82 private boolean _has_showDistances;
85 * Field _markUnlinked.
87 private boolean _markUnlinked;
90 * keeps track of state for field: _markUnlinked
92 private boolean _has_markUnlinked;
97 private boolean _fitToWindow;
100 * keeps track of state for field: _fitToWindow
102 private boolean _has_fitToWindow;
105 * Field _currentTree.
107 private boolean _currentTree;
110 * keeps track of state for field: _currentTree
112 private boolean _has_currentTree;
115 * Tree ID added for binding tree
118 * document trees in jalview 2.4.1
121 private java.lang.String _id;
129 * keeps track of state for field: _width
131 private boolean _has_width;
139 * keeps track of state for field: _height
141 private boolean _has_height;
149 * keeps track of state for field: _xpos
151 private boolean _has_xpos;
159 * keeps track of state for field: _ypos
161 private boolean _has_ypos;
166 private java.lang.String _title;
171 private java.lang.String _newick;
189 public void deleteCurrentTree(
191 this._has_currentTree= false;
196 public void deleteFitToWindow(
198 this._has_fitToWindow= false;
203 public void deleteFontSize(
205 this._has_fontSize= false;
210 public void deleteFontStyle(
212 this._has_fontStyle= false;
217 public void deleteHeight(
219 this._has_height= false;
224 public void deleteMarkUnlinked(
226 this._has_markUnlinked= false;
231 public void deleteShowBootstrap(
233 this._has_showBootstrap= false;
238 public void deleteShowDistances(
240 this._has_showDistances= false;
245 public void deleteThreshold(
247 this._has_threshold= false;
252 public void deleteWidth(
254 this._has_width= false;
259 public void deleteXpos(
261 this._has_xpos= false;
266 public void deleteYpos(
268 this._has_ypos= false;
272 * Returns the value of field 'currentTree'.
274 * @return the value of field 'CurrentTree'.
276 public boolean getCurrentTree(
278 return this._currentTree;
282 * Returns the value of field 'fitToWindow'.
284 * @return the value of field 'FitToWindow'.
286 public boolean getFitToWindow(
288 return this._fitToWindow;
292 * Returns the value of field 'fontName'.
294 * @return the value of field 'FontName'.
296 public java.lang.String getFontName(
298 return this._fontName;
302 * Returns the value of field 'fontSize'.
304 * @return the value of field 'FontSize'.
306 public int getFontSize(
308 return this._fontSize;
312 * Returns the value of field 'fontStyle'.
314 * @return the value of field 'FontStyle'.
316 public int getFontStyle(
318 return this._fontStyle;
322 * Returns the value of field 'height'.
324 * @return the value of field 'Height'.
326 public int getHeight(
332 * Returns the value of field 'id'. The field 'id' has the
333 * following description: Tree ID added for binding tree
336 * document trees in jalview 2.4.1
339 * @return the value of field 'Id'.
341 public java.lang.String getId(
347 * Returns the value of field 'markUnlinked'.
349 * @return the value of field 'MarkUnlinked'.
351 public boolean getMarkUnlinked(
353 return this._markUnlinked;
357 * Returns the value of field 'newick'.
359 * @return the value of field 'Newick'.
361 public java.lang.String getNewick(
367 * Returns the value of field 'showBootstrap'.
369 * @return the value of field 'ShowBootstrap'.
371 public boolean getShowBootstrap(
373 return this._showBootstrap;
377 * Returns the value of field 'showDistances'.
379 * @return the value of field 'ShowDistances'.
381 public boolean getShowDistances(
383 return this._showDistances;
387 * Returns the value of field 'threshold'.
389 * @return the value of field 'Threshold'.
391 public float getThreshold(
393 return this._threshold;
397 * Returns the value of field 'title'.
399 * @return the value of field 'Title'.
401 public java.lang.String getTitle(
407 * Returns the value of field 'width'.
409 * @return the value of field 'Width'.
417 * Returns the value of field 'xpos'.
419 * @return the value of field 'Xpos'.
427 * Returns the value of field 'ypos'.
429 * @return the value of field 'Ypos'.
437 * Method hasCurrentTree.
439 * @return true if at least one CurrentTree has been added
441 public boolean hasCurrentTree(
443 return this._has_currentTree;
447 * Method hasFitToWindow.
449 * @return true if at least one FitToWindow has been added
451 public boolean hasFitToWindow(
453 return this._has_fitToWindow;
457 * Method hasFontSize.
459 * @return true if at least one FontSize has been added
461 public boolean hasFontSize(
463 return this._has_fontSize;
467 * Method hasFontStyle.
469 * @return true if at least one FontStyle has been added
471 public boolean hasFontStyle(
473 return this._has_fontStyle;
479 * @return true if at least one Height has been added
481 public boolean hasHeight(
483 return this._has_height;
487 * Method hasMarkUnlinked.
489 * @return true if at least one MarkUnlinked has been added
491 public boolean hasMarkUnlinked(
493 return this._has_markUnlinked;
497 * Method hasShowBootstrap.
499 * @return true if at least one ShowBootstrap has been added
501 public boolean hasShowBootstrap(
503 return this._has_showBootstrap;
507 * Method hasShowDistances.
509 * @return true if at least one ShowDistances has been added
511 public boolean hasShowDistances(
513 return this._has_showDistances;
517 * Method hasThreshold.
519 * @return true if at least one Threshold has been added
521 public boolean hasThreshold(
523 return this._has_threshold;
529 * @return true if at least one Width has been added
531 public boolean hasWidth(
533 return this._has_width;
539 * @return true if at least one Xpos has been added
541 public boolean hasXpos(
543 return this._has_xpos;
549 * @return true if at least one Ypos has been added
551 public boolean hasYpos(
553 return this._has_ypos;
557 * Returns the value of field 'currentTree'.
559 * @return the value of field 'CurrentTree'.
561 public boolean isCurrentTree(
563 return this._currentTree;
567 * Returns the value of field 'fitToWindow'.
569 * @return the value of field 'FitToWindow'.
571 public boolean isFitToWindow(
573 return this._fitToWindow;
577 * Returns the value of field 'markUnlinked'.
579 * @return the value of field 'MarkUnlinked'.
581 public boolean isMarkUnlinked(
583 return this._markUnlinked;
587 * Returns the value of field 'showBootstrap'.
589 * @return the value of field 'ShowBootstrap'.
591 public boolean isShowBootstrap(
593 return this._showBootstrap;
597 * Returns the value of field 'showDistances'.
599 * @return the value of field 'ShowDistances'.
601 public boolean isShowDistances(
603 return this._showDistances;
609 * @return true if this object is valid according to the schema
611 public boolean isValid(
615 } catch (org.exolab.castor.xml.ValidationException vex) {
625 * @throws org.exolab.castor.xml.MarshalException if object is
626 * null or if any SAXException is thrown during marshaling
627 * @throws org.exolab.castor.xml.ValidationException if this
628 * object is an invalid instance according to the schema
631 final java.io.Writer out)
632 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
633 Marshaller.marshal(this, out);
640 * @throws java.io.IOException if an IOException occurs during
642 * @throws org.exolab.castor.xml.ValidationException if this
643 * object is an invalid instance according to the schema
644 * @throws org.exolab.castor.xml.MarshalException if object is
645 * null or if any SAXException is thrown during marshaling
648 final org.xml.sax.ContentHandler handler)
649 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
650 Marshaller.marshal(this, handler);
654 * Sets the value of field 'currentTree'.
656 * @param currentTree the value of field 'currentTree'.
658 public void setCurrentTree(
659 final boolean currentTree) {
660 this._currentTree = currentTree;
661 this._has_currentTree = true;
665 * Sets the value of field 'fitToWindow'.
667 * @param fitToWindow the value of field 'fitToWindow'.
669 public void setFitToWindow(
670 final boolean fitToWindow) {
671 this._fitToWindow = fitToWindow;
672 this._has_fitToWindow = true;
676 * Sets the value of field 'fontName'.
678 * @param fontName the value of field 'fontName'.
680 public void setFontName(
681 final java.lang.String fontName) {
682 this._fontName = fontName;
686 * Sets the value of field 'fontSize'.
688 * @param fontSize the value of field 'fontSize'.
690 public void setFontSize(
691 final int fontSize) {
692 this._fontSize = fontSize;
693 this._has_fontSize = true;
697 * Sets the value of field 'fontStyle'.
699 * @param fontStyle the value of field 'fontStyle'.
701 public void setFontStyle(
702 final int fontStyle) {
703 this._fontStyle = fontStyle;
704 this._has_fontStyle = true;
708 * Sets the value of field 'height'.
710 * @param height the value of field 'height'.
712 public void setHeight(
714 this._height = height;
715 this._has_height = true;
719 * Sets the value of field 'id'. The field 'id' has the
720 * following description: Tree ID added for binding tree
723 * document trees in jalview 2.4.1
726 * @param id the value of field 'id'.
729 final java.lang.String id) {
734 * Sets the value of field 'markUnlinked'.
736 * @param markUnlinked the value of field 'markUnlinked'.
738 public void setMarkUnlinked(
739 final boolean markUnlinked) {
740 this._markUnlinked = markUnlinked;
741 this._has_markUnlinked = true;
745 * Sets the value of field 'newick'.
747 * @param newick the value of field 'newick'.
749 public void setNewick(
750 final java.lang.String newick) {
751 this._newick = newick;
755 * Sets the value of field 'showBootstrap'.
757 * @param showBootstrap the value of field 'showBootstrap'.
759 public void setShowBootstrap(
760 final boolean showBootstrap) {
761 this._showBootstrap = showBootstrap;
762 this._has_showBootstrap = true;
766 * Sets the value of field 'showDistances'.
768 * @param showDistances the value of field 'showDistances'.
770 public void setShowDistances(
771 final boolean showDistances) {
772 this._showDistances = showDistances;
773 this._has_showDistances = true;
777 * Sets the value of field 'threshold'.
779 * @param threshold the value of field 'threshold'.
781 public void setThreshold(
782 final float threshold) {
783 this._threshold = threshold;
784 this._has_threshold = true;
788 * Sets the value of field 'title'.
790 * @param title the value of field 'title'.
792 public void setTitle(
793 final java.lang.String title) {
798 * Sets the value of field 'width'.
800 * @param width the value of field 'width'.
802 public void setWidth(
805 this._has_width = true;
809 * Sets the value of field 'xpos'.
811 * @param xpos the value of field 'xpos'.
816 this._has_xpos = true;
820 * Sets the value of field 'ypos'.
822 * @param ypos the value of field 'ypos'.
827 this._has_ypos = true;
834 * @throws org.exolab.castor.xml.MarshalException if object is
835 * null or if any SAXException is thrown during marshaling
836 * @throws org.exolab.castor.xml.ValidationException if this
837 * object is an invalid instance according to the schema
838 * @return the unmarshaled jalview.schemabinding.version2.Tree
840 public static jalview.schemabinding.version2.Tree unmarshal(
841 final java.io.Reader reader)
842 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
843 return (jalview.schemabinding.version2.Tree) Unmarshaller.unmarshal(jalview.schemabinding.version2.Tree.class, reader);
849 * @throws org.exolab.castor.xml.ValidationException if this
850 * object is an invalid instance according to the schema
852 public void validate(
854 throws org.exolab.castor.xml.ValidationException {
855 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
856 validator.validate(this);