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;
215 private java.lang.String _type;
223 * keeps track of state for field: _width
225 private boolean _has_width;
233 * keeps track of state for field: _height
235 private boolean _has_height;
243 * keeps track of state for field: _xpos
245 private boolean _has_xpos;
253 * keeps track of state for field: _ypos
255 private boolean _has_ypos;
262 public StructureState() {
274 public void deleteAlignwithAlignPanel(
276 this._has_alignwithAlignPanel= false;
281 public void deleteColourByJmol(
283 this._has_colourByJmol= false;
288 public void deleteColourwithAlignPanel(
290 this._has_colourwithAlignPanel= false;
295 public void deleteHeight(
297 this._has_height= false;
302 public void deleteVisible(
304 this._has_visible= false;
309 public void deleteWidth(
311 this._has_width= false;
316 public void deleteXpos(
318 this._has_xpos= false;
323 public void deleteYpos(
325 this._has_ypos= false;
329 * Returns the value of field 'alignwithAlignPanel'. The field
330 * 'alignwithAlignPanel' has the following description: Flag
355 * @return the value of field 'AlignwithAlignPanel'.
357 public boolean getAlignwithAlignPanel(
359 return this._alignwithAlignPanel;
363 * Returns the value of field 'colourByJmol'. The field
364 * 'colourByJmol' has the following description: Flag
387 * @return the value of field 'ColourByJmol'.
389 public boolean getColourByJmol(
391 return this._colourByJmol;
395 * Returns the value of field 'colourwithAlignPanel'. The field
396 * 'colourwithAlignPanel' has the following description: Flag
418 * structureState(since
423 * @return the value of field 'ColourwithAlignPanel'.
425 public boolean getColourwithAlignPanel(
427 return this._colourwithAlignPanel;
431 * Returns the value of field 'content'. The field 'content'
432 * has the following description: internal content storage
434 * @return the value of field 'Content'.
436 public java.lang.String getContent(
438 return this._content;
442 * Returns the value of field 'height'.
444 * @return the value of field 'Height'.
446 public int getHeight(
452 * Returns the value of field 'type'. The field 'type' has the
453 * following description: An
466 * @return the value of field 'Type'.
468 public java.lang.String getType(
474 * Returns the value of field 'viewId'. The field 'viewId' has
475 * the following description: additional
530 * @return the value of field 'ViewId'.
532 public java.lang.String getViewId(
538 * Returns the value of field 'visible'.
540 * @return the value of field 'Visible'.
542 public boolean getVisible(
544 return this._visible;
548 * Returns the value of field 'width'.
550 * @return the value of field 'Width'.
558 * Returns the value of field 'xpos'.
560 * @return the value of field 'Xpos'.
568 * Returns the value of field 'ypos'.
570 * @return the value of field 'Ypos'.
578 * Method hasAlignwithAlignPanel.
580 * @return true if at least one AlignwithAlignPanel has been
583 public boolean hasAlignwithAlignPanel(
585 return this._has_alignwithAlignPanel;
589 * Method hasColourByJmol.
591 * @return true if at least one ColourByJmol has been added
593 public boolean hasColourByJmol(
595 return this._has_colourByJmol;
599 * Method hasColourwithAlignPanel.
601 * @return true if at least one ColourwithAlignPanel has been
604 public boolean hasColourwithAlignPanel(
606 return this._has_colourwithAlignPanel;
612 * @return true if at least one Height has been added
614 public boolean hasHeight(
616 return this._has_height;
622 * @return true if at least one Visible has been added
624 public boolean hasVisible(
626 return this._has_visible;
632 * @return true if at least one Width has been added
634 public boolean hasWidth(
636 return this._has_width;
642 * @return true if at least one Xpos has been added
644 public boolean hasXpos(
646 return this._has_xpos;
652 * @return true if at least one Ypos has been added
654 public boolean hasYpos(
656 return this._has_ypos;
660 * Returns the value of field 'alignwithAlignPanel'. The field
661 * 'alignwithAlignPanel' has the following description: Flag
686 * @return the value of field 'AlignwithAlignPanel'.
688 public boolean isAlignwithAlignPanel(
690 return this._alignwithAlignPanel;
694 * Returns the value of field 'colourByJmol'. The field
695 * 'colourByJmol' has the following description: Flag
718 * @return the value of field 'ColourByJmol'.
720 public boolean isColourByJmol(
722 return this._colourByJmol;
726 * Returns the value of field 'colourwithAlignPanel'. The field
727 * 'colourwithAlignPanel' has the following description: Flag
749 * structureState(since
754 * @return the value of field 'ColourwithAlignPanel'.
756 public boolean isColourwithAlignPanel(
758 return this._colourwithAlignPanel;
764 * @return true if this object is valid according to the schema
766 public boolean isValid(
770 } catch (org.exolab.castor.xml.ValidationException vex) {
777 * Returns the value of field 'visible'.
779 * @return the value of field 'Visible'.
781 public boolean isVisible(
783 return this._visible;
790 * @throws org.exolab.castor.xml.MarshalException if object is
791 * null or if any SAXException is thrown during marshaling
792 * @throws org.exolab.castor.xml.ValidationException if this
793 * object is an invalid instance according to the schema
796 final java.io.Writer out)
797 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
798 Marshaller.marshal(this, out);
805 * @throws java.io.IOException if an IOException occurs during
807 * @throws org.exolab.castor.xml.ValidationException if this
808 * object is an invalid instance according to the schema
809 * @throws org.exolab.castor.xml.MarshalException if object is
810 * null or if any SAXException is thrown during marshaling
813 final org.xml.sax.ContentHandler handler)
814 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
815 Marshaller.marshal(this, handler);
819 * Sets the value of field 'alignwithAlignPanel'. The field
820 * 'alignwithAlignPanel' has the following description: Flag
845 * @param alignwithAlignPanel the value of field
846 * 'alignwithAlignPanel'.
848 public void setAlignwithAlignPanel(
849 final boolean alignwithAlignPanel) {
850 this._alignwithAlignPanel = alignwithAlignPanel;
851 this._has_alignwithAlignPanel = true;
855 * Sets the value of field 'colourByJmol'. The field
856 * 'colourByJmol' has the following description: Flag
879 * @param colourByJmol the value of field 'colourByJmol'.
881 public void setColourByJmol(
882 final boolean colourByJmol) {
883 this._colourByJmol = colourByJmol;
884 this._has_colourByJmol = true;
888 * Sets the value of field 'colourwithAlignPanel'. The field
889 * 'colourwithAlignPanel' has the following description: Flag
911 * structureState(since
916 * @param colourwithAlignPanel the value of field
917 * 'colourwithAlignPanel'.
919 public void setColourwithAlignPanel(
920 final boolean colourwithAlignPanel) {
921 this._colourwithAlignPanel = colourwithAlignPanel;
922 this._has_colourwithAlignPanel = true;
926 * Sets the value of field 'content'. The field 'content' has
927 * the following description: internal content storage
929 * @param content the value of field 'content'.
931 public void setContent(
932 final java.lang.String content) {
933 this._content = content;
937 * Sets the value of field 'height'.
939 * @param height the value of field 'height'.
941 public void setHeight(
943 this._height = height;
944 this._has_height = true;
948 * Sets the value of field 'type'. The field 'type' has the
949 * following description: An
962 * @param type the value of field 'type'.
965 final java.lang.String type) {
970 * Sets the value of field 'viewId'. The field 'viewId' has the
971 * following description: additional
1026 * @param viewId the value of field 'viewId'.
1028 public void setViewId(
1029 final java.lang.String viewId) {
1030 this._viewId = viewId;
1034 * Sets the value of field 'visible'.
1036 * @param visible the value of field 'visible'.
1038 public void setVisible(
1039 final boolean visible) {
1040 this._visible = visible;
1041 this._has_visible = true;
1045 * Sets the value of field 'width'.
1047 * @param width the value of field 'width'.
1049 public void setWidth(
1051 this._width = width;
1052 this._has_width = true;
1056 * Sets the value of field 'xpos'.
1058 * @param xpos the value of field 'xpos'.
1060 public void setXpos(
1063 this._has_xpos = true;
1067 * Sets the value of field 'ypos'.
1069 * @param ypos the value of field 'ypos'.
1071 public void setYpos(
1074 this._has_ypos = true;
1081 * @throws org.exolab.castor.xml.MarshalException if object is
1082 * null or if any SAXException is thrown during marshaling
1083 * @throws org.exolab.castor.xml.ValidationException if this
1084 * object is an invalid instance according to the schema
1085 * @return the unmarshaled
1086 * jalview.schemabinding.version2.StructureState
1088 public static jalview.schemabinding.version2.StructureState unmarshal(
1089 final java.io.Reader reader)
1090 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1091 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
1097 * @throws org.exolab.castor.xml.ValidationException if this
1098 * object is an invalid instance according to the schema
1100 public void validate(
1102 throws org.exolab.castor.xml.ValidationException {
1103 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1104 validator.validate(this);