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;
18 * Class StructureState.
20 * @version $Revision$ $Date$
22 public class StructureState implements java.io.Serializable {
25 //--------------------------/
26 //- Class/Member Variables -/
27 //--------------------------/
30 * internal content storage
32 private java.lang.String _content = "";
37 private boolean _visible;
40 * keeps track of state for field: _visible
42 private boolean _has_visible;
100 private java.lang.String _viewId;
128 private boolean _alignwithAlignPanel = true;
131 * keeps track of state for field: _alignwithAlignPanel
133 private boolean _has_alignwithAlignPanel;
158 * structureState(since
163 private boolean _colourwithAlignPanel = false;
166 * keeps track of state for field: _colourwithAlignPanel
168 private boolean _has_colourwithAlignPanel;
194 private boolean _colourByJmol = true;
197 * keeps track of state for field: _colourByJmol
199 private boolean _has_colourByJmol;
202 * An identifier for the viewer type, currently either
206 private java.lang.String _type;
214 * keeps track of state for field: _width
216 private boolean _has_width;
224 * keeps track of state for field: _height
226 private boolean _has_height;
234 * keeps track of state for field: _xpos
236 private boolean _has_xpos;
244 * keeps track of state for field: _ypos
246 private boolean _has_ypos;
253 public StructureState() {
265 public void deleteAlignwithAlignPanel(
267 this._has_alignwithAlignPanel= false;
272 public void deleteColourByJmol(
274 this._has_colourByJmol= false;
279 public void deleteColourwithAlignPanel(
281 this._has_colourwithAlignPanel= false;
286 public void deleteHeight(
288 this._has_height= false;
293 public void deleteVisible(
295 this._has_visible= false;
300 public void deleteWidth(
302 this._has_width= false;
307 public void deleteXpos(
309 this._has_xpos= false;
314 public void deleteYpos(
316 this._has_ypos= false;
320 * Returns the value of field 'alignwithAlignPanel'. The field
321 * 'alignwithAlignPanel' has the following description: Flag
346 * @return the value of field 'AlignwithAlignPanel'.
348 public boolean getAlignwithAlignPanel(
350 return this._alignwithAlignPanel;
354 * Returns the value of field 'colourByJmol'. The field
355 * 'colourByJmol' has the following description: Flag
378 * @return the value of field 'ColourByJmol'.
380 public boolean getColourByJmol(
382 return this._colourByJmol;
386 * Returns the value of field 'colourwithAlignPanel'. The field
387 * 'colourwithAlignPanel' has the following description: Flag
409 * structureState(since
414 * @return the value of field 'ColourwithAlignPanel'.
416 public boolean getColourwithAlignPanel(
418 return this._colourwithAlignPanel;
422 * Returns the value of field 'content'. The field 'content'
423 * has the following description: internal content storage
425 * @return the value of field 'Content'.
427 public java.lang.String getContent(
429 return this._content;
433 * Returns the value of field 'height'.
435 * @return the value of field 'Height'.
437 public int getHeight(
443 * Returns the value of field 'type'. The field 'type' has the
444 * following description: An identifier for the viewer type,
449 * @return the value of field 'Type'.
451 public java.lang.String getType(
457 * Returns the value of field 'viewId'. The field 'viewId' has
458 * the following description: additional
513 * @return the value of field 'ViewId'.
515 public java.lang.String getViewId(
521 * Returns the value of field 'visible'.
523 * @return the value of field 'Visible'.
525 public boolean getVisible(
527 return this._visible;
531 * Returns the value of field 'width'.
533 * @return the value of field 'Width'.
541 * Returns the value of field 'xpos'.
543 * @return the value of field 'Xpos'.
551 * Returns the value of field 'ypos'.
553 * @return the value of field 'Ypos'.
561 * Method hasAlignwithAlignPanel.
563 * @return true if at least one AlignwithAlignPanel has been
566 public boolean hasAlignwithAlignPanel(
568 return this._has_alignwithAlignPanel;
572 * Method hasColourByJmol.
574 * @return true if at least one ColourByJmol has been added
576 public boolean hasColourByJmol(
578 return this._has_colourByJmol;
582 * Method hasColourwithAlignPanel.
584 * @return true if at least one ColourwithAlignPanel has been
587 public boolean hasColourwithAlignPanel(
589 return this._has_colourwithAlignPanel;
595 * @return true if at least one Height has been added
597 public boolean hasHeight(
599 return this._has_height;
605 * @return true if at least one Visible has been added
607 public boolean hasVisible(
609 return this._has_visible;
615 * @return true if at least one Width has been added
617 public boolean hasWidth(
619 return this._has_width;
625 * @return true if at least one Xpos has been added
627 public boolean hasXpos(
629 return this._has_xpos;
635 * @return true if at least one Ypos has been added
637 public boolean hasYpos(
639 return this._has_ypos;
643 * Returns the value of field 'alignwithAlignPanel'. The field
644 * 'alignwithAlignPanel' has the following description: Flag
669 * @return the value of field 'AlignwithAlignPanel'.
671 public boolean isAlignwithAlignPanel(
673 return this._alignwithAlignPanel;
677 * Returns the value of field 'colourByJmol'. The field
678 * 'colourByJmol' has the following description: Flag
701 * @return the value of field 'ColourByJmol'.
703 public boolean isColourByJmol(
705 return this._colourByJmol;
709 * Returns the value of field 'colourwithAlignPanel'. The field
710 * 'colourwithAlignPanel' has the following description: Flag
732 * structureState(since
737 * @return the value of field 'ColourwithAlignPanel'.
739 public boolean isColourwithAlignPanel(
741 return this._colourwithAlignPanel;
747 * @return true if this object is valid according to the schema
749 public boolean isValid(
753 } catch (org.exolab.castor.xml.ValidationException vex) {
760 * Returns the value of field 'visible'.
762 * @return the value of field 'Visible'.
764 public boolean isVisible(
766 return this._visible;
773 * @throws org.exolab.castor.xml.MarshalException if object is
774 * null or if any SAXException is thrown during marshaling
775 * @throws org.exolab.castor.xml.ValidationException if this
776 * object is an invalid instance according to the schema
779 final java.io.Writer out)
780 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
781 Marshaller.marshal(this, out);
788 * @throws java.io.IOException if an IOException occurs during
790 * @throws org.exolab.castor.xml.ValidationException if this
791 * object is an invalid instance according to the schema
792 * @throws org.exolab.castor.xml.MarshalException if object is
793 * null or if any SAXException is thrown during marshaling
796 final org.xml.sax.ContentHandler handler)
797 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
798 Marshaller.marshal(this, handler);
802 * Sets the value of field 'alignwithAlignPanel'. The field
803 * 'alignwithAlignPanel' has the following description: Flag
828 * @param alignwithAlignPanel the value of field
829 * 'alignwithAlignPanel'.
831 public void setAlignwithAlignPanel(
832 final boolean alignwithAlignPanel) {
833 this._alignwithAlignPanel = alignwithAlignPanel;
834 this._has_alignwithAlignPanel = true;
838 * Sets the value of field 'colourByJmol'. The field
839 * 'colourByJmol' has the following description: Flag
862 * @param colourByJmol the value of field 'colourByJmol'.
864 public void setColourByJmol(
865 final boolean colourByJmol) {
866 this._colourByJmol = colourByJmol;
867 this._has_colourByJmol = true;
871 * Sets the value of field 'colourwithAlignPanel'. The field
872 * 'colourwithAlignPanel' has the following description: Flag
894 * structureState(since
899 * @param colourwithAlignPanel the value of field
900 * 'colourwithAlignPanel'.
902 public void setColourwithAlignPanel(
903 final boolean colourwithAlignPanel) {
904 this._colourwithAlignPanel = colourwithAlignPanel;
905 this._has_colourwithAlignPanel = true;
909 * Sets the value of field 'content'. The field 'content' has
910 * the following description: internal content storage
912 * @param content the value of field 'content'.
914 public void setContent(
915 final java.lang.String content) {
916 this._content = content;
920 * Sets the value of field 'height'.
922 * @param height the value of field 'height'.
924 public void setHeight(
926 this._height = height;
927 this._has_height = true;
931 * Sets the value of field 'type'. The field 'type' has the
932 * following description: An identifier for the viewer type,
937 * @param type the value of field 'type'.
940 final java.lang.String type) {
945 * Sets the value of field 'viewId'. The field 'viewId' has the
946 * following description: additional
1001 * @param viewId the value of field 'viewId'.
1003 public void setViewId(
1004 final java.lang.String viewId) {
1005 this._viewId = viewId;
1009 * Sets the value of field 'visible'.
1011 * @param visible the value of field 'visible'.
1013 public void setVisible(
1014 final boolean visible) {
1015 this._visible = visible;
1016 this._has_visible = true;
1020 * Sets the value of field 'width'.
1022 * @param width the value of field 'width'.
1024 public void setWidth(
1026 this._width = width;
1027 this._has_width = true;
1031 * Sets the value of field 'xpos'.
1033 * @param xpos the value of field 'xpos'.
1035 public void setXpos(
1038 this._has_xpos = true;
1042 * Sets the value of field 'ypos'.
1044 * @param ypos the value of field 'ypos'.
1046 public void setYpos(
1049 this._has_ypos = true;
1056 * @throws org.exolab.castor.xml.MarshalException if object is
1057 * null or if any SAXException is thrown during marshaling
1058 * @throws org.exolab.castor.xml.ValidationException if this
1059 * object is an invalid instance according to the schema
1060 * @return the unmarshaled
1061 * jalview.schemabinding.version2.StructureState
1063 public static jalview.schemabinding.version2.StructureState unmarshal(
1064 final java.io.Reader reader)
1065 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1066 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
1072 * @throws org.exolab.castor.xml.ValidationException if this
1073 * object is an invalid instance according to the schema
1075 public void validate(
1077 throws org.exolab.castor.xml.ValidationException {
1078 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1079 validator.validate(this);