2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
\r
8 package jalview.schemabinding.version2;
\r
10 //---------------------------------/
\r
11 //- Imported classes and packages -/
\r
12 //---------------------------------/
\r
14 import org.exolab.castor.xml.Marshaller;
\r
15 import org.exolab.castor.xml.Unmarshaller;
\r
20 * @version $Revision$ $Date$
\r
22 public class Tree implements java.io.Serializable {
\r
25 //--------------------------/
\r
26 //- Class/Member Variables -/
\r
27 //--------------------------/
\r
35 * keeps track of state for field: _width
\r
37 private boolean _has_width;
\r
42 private int _height;
\r
45 * keeps track of state for field: _height
\r
47 private boolean _has_height;
\r
55 * keeps track of state for field: _xpos
\r
57 private boolean _has_xpos;
\r
65 * keeps track of state for field: _ypos
\r
67 private boolean _has_ypos;
\r
72 private java.lang.String _fontName;
\r
77 private int _fontSize;
\r
80 * keeps track of state for field: _fontSize
\r
82 private boolean _has_fontSize;
\r
87 private int _fontStyle;
\r
90 * keeps track of state for field: _fontStyle
\r
92 private boolean _has_fontStyle;
\r
97 private float _threshold;
\r
100 * keeps track of state for field: _threshold
\r
102 private boolean _has_threshold;
\r
105 * Field _showBootstrap.
\r
107 private boolean _showBootstrap;
\r
110 * keeps track of state for field: _showBootstrap
\r
112 private boolean _has_showBootstrap;
\r
115 * Field _showDistances.
\r
117 private boolean _showDistances;
\r
120 * keeps track of state for field: _showDistances
\r
122 private boolean _has_showDistances;
\r
125 * Field _markUnlinked.
\r
127 private boolean _markUnlinked;
\r
130 * keeps track of state for field: _markUnlinked
\r
132 private boolean _has_markUnlinked;
\r
135 * Field _fitToWindow.
\r
137 private boolean _fitToWindow;
\r
140 * keeps track of state for field: _fitToWindow
\r
142 private boolean _has_fitToWindow;
\r
145 * Field _currentTree.
\r
147 private boolean _currentTree;
\r
150 * keeps track of state for field: _currentTree
\r
152 private boolean _has_currentTree;
\r
157 private java.lang.String _title;
\r
162 private java.lang.String _newick;
\r
165 //----------------/
\r
166 //- Constructors -/
\r
167 //----------------/
\r
180 public void deleteCurrentTree(
\r
182 this._has_currentTree= false;
\r
187 public void deleteFitToWindow(
\r
189 this._has_fitToWindow= false;
\r
194 public void deleteFontSize(
\r
196 this._has_fontSize= false;
\r
201 public void deleteFontStyle(
\r
203 this._has_fontStyle= false;
\r
208 public void deleteHeight(
\r
210 this._has_height= false;
\r
215 public void deleteMarkUnlinked(
\r
217 this._has_markUnlinked= false;
\r
222 public void deleteShowBootstrap(
\r
224 this._has_showBootstrap= false;
\r
229 public void deleteShowDistances(
\r
231 this._has_showDistances= false;
\r
236 public void deleteThreshold(
\r
238 this._has_threshold= false;
\r
243 public void deleteWidth(
\r
245 this._has_width= false;
\r
250 public void deleteXpos(
\r
252 this._has_xpos= false;
\r
257 public void deleteYpos(
\r
259 this._has_ypos= false;
\r
263 * Returns the value of field 'currentTree'.
\r
265 * @return the value of field 'CurrentTree'.
\r
267 public boolean getCurrentTree(
\r
269 return this._currentTree;
\r
273 * Returns the value of field 'fitToWindow'.
\r
275 * @return the value of field 'FitToWindow'.
\r
277 public boolean getFitToWindow(
\r
279 return this._fitToWindow;
\r
283 * Returns the value of field 'fontName'.
\r
285 * @return the value of field 'FontName'.
\r
287 public java.lang.String getFontName(
\r
289 return this._fontName;
\r
293 * Returns the value of field 'fontSize'.
\r
295 * @return the value of field 'FontSize'.
\r
297 public int getFontSize(
\r
299 return this._fontSize;
\r
303 * Returns the value of field 'fontStyle'.
\r
305 * @return the value of field 'FontStyle'.
\r
307 public int getFontStyle(
\r
309 return this._fontStyle;
\r
313 * Returns the value of field 'height'.
\r
315 * @return the value of field 'Height'.
\r
317 public int getHeight(
\r
319 return this._height;
\r
323 * Returns the value of field 'markUnlinked'.
\r
325 * @return the value of field 'MarkUnlinked'.
\r
327 public boolean getMarkUnlinked(
\r
329 return this._markUnlinked;
\r
333 * Returns the value of field 'newick'.
\r
335 * @return the value of field 'Newick'.
\r
337 public java.lang.String getNewick(
\r
339 return this._newick;
\r
343 * Returns the value of field 'showBootstrap'.
\r
345 * @return the value of field 'ShowBootstrap'.
\r
347 public boolean getShowBootstrap(
\r
349 return this._showBootstrap;
\r
353 * Returns the value of field 'showDistances'.
\r
355 * @return the value of field 'ShowDistances'.
\r
357 public boolean getShowDistances(
\r
359 return this._showDistances;
\r
363 * Returns the value of field 'threshold'.
\r
365 * @return the value of field 'Threshold'.
\r
367 public float getThreshold(
\r
369 return this._threshold;
\r
373 * Returns the value of field 'title'.
\r
375 * @return the value of field 'Title'.
\r
377 public java.lang.String getTitle(
\r
379 return this._title;
\r
383 * Returns the value of field 'width'.
\r
385 * @return the value of field 'Width'.
\r
387 public int getWidth(
\r
389 return this._width;
\r
393 * Returns the value of field 'xpos'.
\r
395 * @return the value of field 'Xpos'.
\r
397 public int getXpos(
\r
403 * Returns the value of field 'ypos'.
\r
405 * @return the value of field 'Ypos'.
\r
407 public int getYpos(
\r
413 * Method hasCurrentTree.
\r
415 * @return true if at least one CurrentTree has been added
\r
417 public boolean hasCurrentTree(
\r
419 return this._has_currentTree;
\r
423 * Method hasFitToWindow.
\r
425 * @return true if at least one FitToWindow has been added
\r
427 public boolean hasFitToWindow(
\r
429 return this._has_fitToWindow;
\r
433 * Method hasFontSize.
\r
435 * @return true if at least one FontSize has been added
\r
437 public boolean hasFontSize(
\r
439 return this._has_fontSize;
\r
443 * Method hasFontStyle.
\r
445 * @return true if at least one FontStyle has been added
\r
447 public boolean hasFontStyle(
\r
449 return this._has_fontStyle;
\r
453 * Method hasHeight.
\r
455 * @return true if at least one Height has been added
\r
457 public boolean hasHeight(
\r
459 return this._has_height;
\r
463 * Method hasMarkUnlinked.
\r
465 * @return true if at least one MarkUnlinked has been added
\r
467 public boolean hasMarkUnlinked(
\r
469 return this._has_markUnlinked;
\r
473 * Method hasShowBootstrap.
\r
475 * @return true if at least one ShowBootstrap has been added
\r
477 public boolean hasShowBootstrap(
\r
479 return this._has_showBootstrap;
\r
483 * Method hasShowDistances.
\r
485 * @return true if at least one ShowDistances has been added
\r
487 public boolean hasShowDistances(
\r
489 return this._has_showDistances;
\r
493 * Method hasThreshold.
\r
495 * @return true if at least one Threshold has been added
\r
497 public boolean hasThreshold(
\r
499 return this._has_threshold;
\r
505 * @return true if at least one Width has been added
\r
507 public boolean hasWidth(
\r
509 return this._has_width;
\r
515 * @return true if at least one Xpos has been added
\r
517 public boolean hasXpos(
\r
519 return this._has_xpos;
\r
525 * @return true if at least one Ypos has been added
\r
527 public boolean hasYpos(
\r
529 return this._has_ypos;
\r
533 * Returns the value of field 'currentTree'.
\r
535 * @return the value of field 'CurrentTree'.
\r
537 public boolean isCurrentTree(
\r
539 return this._currentTree;
\r
543 * Returns the value of field 'fitToWindow'.
\r
545 * @return the value of field 'FitToWindow'.
\r
547 public boolean isFitToWindow(
\r
549 return this._fitToWindow;
\r
553 * Returns the value of field 'markUnlinked'.
\r
555 * @return the value of field 'MarkUnlinked'.
\r
557 public boolean isMarkUnlinked(
\r
559 return this._markUnlinked;
\r
563 * Returns the value of field 'showBootstrap'.
\r
565 * @return the value of field 'ShowBootstrap'.
\r
567 public boolean isShowBootstrap(
\r
569 return this._showBootstrap;
\r
573 * Returns the value of field 'showDistances'.
\r
575 * @return the value of field 'ShowDistances'.
\r
577 public boolean isShowDistances(
\r
579 return this._showDistances;
\r
585 * @return true if this object is valid according to the schema
\r
587 public boolean isValid(
\r
591 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
601 * @throws org.exolab.castor.xml.MarshalException if object is
\r
602 * null or if any SAXException is thrown during marshaling
\r
603 * @throws org.exolab.castor.xml.ValidationException if this
\r
604 * object is an invalid instance according to the schema
\r
606 public void marshal(
\r
607 final java.io.Writer out)
\r
608 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
609 Marshaller.marshal(this, out);
\r
616 * @throws java.io.IOException if an IOException occurs during
\r
618 * @throws org.exolab.castor.xml.ValidationException if this
\r
619 * object is an invalid instance according to the schema
\r
620 * @throws org.exolab.castor.xml.MarshalException if object is
\r
621 * null or if any SAXException is thrown during marshaling
\r
623 public void marshal(
\r
624 final org.xml.sax.ContentHandler handler)
\r
625 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
626 Marshaller.marshal(this, handler);
\r
630 * Sets the value of field 'currentTree'.
\r
632 * @param currentTree the value of field 'currentTree'.
\r
634 public void setCurrentTree(
\r
635 final boolean currentTree) {
\r
636 this._currentTree = currentTree;
\r
637 this._has_currentTree = true;
\r
641 * Sets the value of field 'fitToWindow'.
\r
643 * @param fitToWindow the value of field 'fitToWindow'.
\r
645 public void setFitToWindow(
\r
646 final boolean fitToWindow) {
\r
647 this._fitToWindow = fitToWindow;
\r
648 this._has_fitToWindow = true;
\r
652 * Sets the value of field 'fontName'.
\r
654 * @param fontName the value of field 'fontName'.
\r
656 public void setFontName(
\r
657 final java.lang.String fontName) {
\r
658 this._fontName = fontName;
\r
662 * Sets the value of field 'fontSize'.
\r
664 * @param fontSize the value of field 'fontSize'.
\r
666 public void setFontSize(
\r
667 final int fontSize) {
\r
668 this._fontSize = fontSize;
\r
669 this._has_fontSize = true;
\r
673 * Sets the value of field 'fontStyle'.
\r
675 * @param fontStyle the value of field 'fontStyle'.
\r
677 public void setFontStyle(
\r
678 final int fontStyle) {
\r
679 this._fontStyle = fontStyle;
\r
680 this._has_fontStyle = true;
\r
684 * Sets the value of field 'height'.
\r
686 * @param height the value of field 'height'.
\r
688 public void setHeight(
\r
689 final int height) {
\r
690 this._height = height;
\r
691 this._has_height = true;
\r
695 * Sets the value of field 'markUnlinked'.
\r
697 * @param markUnlinked the value of field 'markUnlinked'.
\r
699 public void setMarkUnlinked(
\r
700 final boolean markUnlinked) {
\r
701 this._markUnlinked = markUnlinked;
\r
702 this._has_markUnlinked = true;
\r
706 * Sets the value of field 'newick'.
\r
708 * @param newick the value of field 'newick'.
\r
710 public void setNewick(
\r
711 final java.lang.String newick) {
\r
712 this._newick = newick;
\r
716 * Sets the value of field 'showBootstrap'.
\r
718 * @param showBootstrap the value of field 'showBootstrap'.
\r
720 public void setShowBootstrap(
\r
721 final boolean showBootstrap) {
\r
722 this._showBootstrap = showBootstrap;
\r
723 this._has_showBootstrap = true;
\r
727 * Sets the value of field 'showDistances'.
\r
729 * @param showDistances the value of field 'showDistances'.
\r
731 public void setShowDistances(
\r
732 final boolean showDistances) {
\r
733 this._showDistances = showDistances;
\r
734 this._has_showDistances = true;
\r
738 * Sets the value of field 'threshold'.
\r
740 * @param threshold the value of field 'threshold'.
\r
742 public void setThreshold(
\r
743 final float threshold) {
\r
744 this._threshold = threshold;
\r
745 this._has_threshold = true;
\r
749 * Sets the value of field 'title'.
\r
751 * @param title the value of field 'title'.
\r
753 public void setTitle(
\r
754 final java.lang.String title) {
\r
755 this._title = title;
\r
759 * Sets the value of field 'width'.
\r
761 * @param width the value of field 'width'.
\r
763 public void setWidth(
\r
765 this._width = width;
\r
766 this._has_width = true;
\r
770 * Sets the value of field 'xpos'.
\r
772 * @param xpos the value of field 'xpos'.
\r
774 public void setXpos(
\r
777 this._has_xpos = true;
\r
781 * Sets the value of field 'ypos'.
\r
783 * @param ypos the value of field 'ypos'.
\r
785 public void setYpos(
\r
788 this._has_ypos = true;
\r
792 * Method unmarshal.
\r
795 * @throws org.exolab.castor.xml.MarshalException if object is
\r
796 * null or if any SAXException is thrown during marshaling
\r
797 * @throws org.exolab.castor.xml.ValidationException if this
\r
798 * object is an invalid instance according to the schema
\r
799 * @return the unmarshaled jalview.schemabinding.version2.Tree
\r
801 public static jalview.schemabinding.version2.Tree unmarshal(
\r
802 final java.io.Reader reader)
\r
803 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
\r
804 return (jalview.schemabinding.version2.Tree) Unmarshaller.unmarshal(jalview.schemabinding.version2.Tree.class, reader);
\r
810 * @throws org.exolab.castor.xml.ValidationException if this
\r
811 * object is an invalid instance according to the schema
\r
813 public void validate(
\r
815 throws org.exolab.castor.xml.ValidationException {
\r
816 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
817 validator.validate(this);
\r