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;
207 * keeps track of state for field: _width
209 private boolean _has_width;
217 * keeps track of state for field: _height
219 private boolean _has_height;
227 * keeps track of state for field: _xpos
229 private boolean _has_xpos;
237 * keeps track of state for field: _ypos
239 private boolean _has_ypos;
246 public StructureState() {
258 public void deleteAlignwithAlignPanel(
260 this._has_alignwithAlignPanel= false;
265 public void deleteColourByJmol(
267 this._has_colourByJmol= false;
272 public void deleteColourwithAlignPanel(
274 this._has_colourwithAlignPanel= false;
279 public void deleteHeight(
281 this._has_height= false;
286 public void deleteVisible(
288 this._has_visible= false;
293 public void deleteWidth(
295 this._has_width= false;
300 public void deleteXpos(
302 this._has_xpos= false;
307 public void deleteYpos(
309 this._has_ypos= false;
313 * Returns the value of field 'alignwithAlignPanel'. The field
314 * 'alignwithAlignPanel' has the following description: Flag
339 * @return the value of field 'AlignwithAlignPanel'.
341 public boolean getAlignwithAlignPanel(
343 return this._alignwithAlignPanel;
347 * Returns the value of field 'colourByJmol'. The field
348 * 'colourByJmol' has the following description: Flag
371 * @return the value of field 'ColourByJmol'.
373 public boolean getColourByJmol(
375 return this._colourByJmol;
379 * Returns the value of field 'colourwithAlignPanel'. The field
380 * 'colourwithAlignPanel' has the following description: Flag
402 * structureState(since
407 * @return the value of field 'ColourwithAlignPanel'.
409 public boolean getColourwithAlignPanel(
411 return this._colourwithAlignPanel;
415 * Returns the value of field 'content'. The field 'content'
416 * has the following description: internal content storage
418 * @return the value of field 'Content'.
420 public java.lang.String getContent(
422 return this._content;
426 * Returns the value of field 'height'.
428 * @return the value of field 'Height'.
430 public int getHeight(
436 * Returns the value of field 'viewId'. The field 'viewId' has
437 * the following description: additional
492 * @return the value of field 'ViewId'.
494 public java.lang.String getViewId(
500 * Returns the value of field 'visible'.
502 * @return the value of field 'Visible'.
504 public boolean getVisible(
506 return this._visible;
510 * Returns the value of field 'width'.
512 * @return the value of field 'Width'.
520 * Returns the value of field 'xpos'.
522 * @return the value of field 'Xpos'.
530 * Returns the value of field 'ypos'.
532 * @return the value of field 'Ypos'.
540 * Method hasAlignwithAlignPanel.
542 * @return true if at least one AlignwithAlignPanel has been
545 public boolean hasAlignwithAlignPanel(
547 return this._has_alignwithAlignPanel;
551 * Method hasColourByJmol.
553 * @return true if at least one ColourByJmol has been added
555 public boolean hasColourByJmol(
557 return this._has_colourByJmol;
561 * Method hasColourwithAlignPanel.
563 * @return true if at least one ColourwithAlignPanel has been
566 public boolean hasColourwithAlignPanel(
568 return this._has_colourwithAlignPanel;
574 * @return true if at least one Height has been added
576 public boolean hasHeight(
578 return this._has_height;
584 * @return true if at least one Visible has been added
586 public boolean hasVisible(
588 return this._has_visible;
594 * @return true if at least one Width has been added
596 public boolean hasWidth(
598 return this._has_width;
604 * @return true if at least one Xpos has been added
606 public boolean hasXpos(
608 return this._has_xpos;
614 * @return true if at least one Ypos has been added
616 public boolean hasYpos(
618 return this._has_ypos;
622 * Returns the value of field 'alignwithAlignPanel'. The field
623 * 'alignwithAlignPanel' has the following description: Flag
648 * @return the value of field 'AlignwithAlignPanel'.
650 public boolean isAlignwithAlignPanel(
652 return this._alignwithAlignPanel;
656 * Returns the value of field 'colourByJmol'. The field
657 * 'colourByJmol' has the following description: Flag
680 * @return the value of field 'ColourByJmol'.
682 public boolean isColourByJmol(
684 return this._colourByJmol;
688 * Returns the value of field 'colourwithAlignPanel'. The field
689 * 'colourwithAlignPanel' has the following description: Flag
711 * structureState(since
716 * @return the value of field 'ColourwithAlignPanel'.
718 public boolean isColourwithAlignPanel(
720 return this._colourwithAlignPanel;
726 * @return true if this object is valid according to the schema
728 public boolean isValid(
732 } catch (org.exolab.castor.xml.ValidationException vex) {
739 * Returns the value of field 'visible'.
741 * @return the value of field 'Visible'.
743 public boolean isVisible(
745 return this._visible;
752 * @throws org.exolab.castor.xml.MarshalException if object is
753 * null or if any SAXException is thrown during marshaling
754 * @throws org.exolab.castor.xml.ValidationException if this
755 * object is an invalid instance according to the schema
758 final java.io.Writer out)
759 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
760 Marshaller.marshal(this, out);
767 * @throws java.io.IOException if an IOException occurs during
769 * @throws org.exolab.castor.xml.ValidationException if this
770 * object is an invalid instance according to the schema
771 * @throws org.exolab.castor.xml.MarshalException if object is
772 * null or if any SAXException is thrown during marshaling
775 final org.xml.sax.ContentHandler handler)
776 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
777 Marshaller.marshal(this, handler);
781 * Sets the value of field 'alignwithAlignPanel'. The field
782 * 'alignwithAlignPanel' has the following description: Flag
807 * @param alignwithAlignPanel the value of field
808 * 'alignwithAlignPanel'.
810 public void setAlignwithAlignPanel(
811 final boolean alignwithAlignPanel) {
812 this._alignwithAlignPanel = alignwithAlignPanel;
813 this._has_alignwithAlignPanel = true;
817 * Sets the value of field 'colourByJmol'. The field
818 * 'colourByJmol' has the following description: Flag
841 * @param colourByJmol the value of field 'colourByJmol'.
843 public void setColourByJmol(
844 final boolean colourByJmol) {
845 this._colourByJmol = colourByJmol;
846 this._has_colourByJmol = true;
850 * Sets the value of field 'colourwithAlignPanel'. The field
851 * 'colourwithAlignPanel' has the following description: Flag
873 * structureState(since
878 * @param colourwithAlignPanel the value of field
879 * 'colourwithAlignPanel'.
881 public void setColourwithAlignPanel(
882 final boolean colourwithAlignPanel) {
883 this._colourwithAlignPanel = colourwithAlignPanel;
884 this._has_colourwithAlignPanel = true;
888 * Sets the value of field 'content'. The field 'content' has
889 * the following description: internal content storage
891 * @param content the value of field 'content'.
893 public void setContent(
894 final java.lang.String content) {
895 this._content = content;
899 * Sets the value of field 'height'.
901 * @param height the value of field 'height'.
903 public void setHeight(
905 this._height = height;
906 this._has_height = true;
910 * Sets the value of field 'viewId'. The field 'viewId' has the
911 * following description: additional
966 * @param viewId the value of field 'viewId'.
968 public void setViewId(
969 final java.lang.String viewId) {
970 this._viewId = viewId;
974 * Sets the value of field 'visible'.
976 * @param visible the value of field 'visible'.
978 public void setVisible(
979 final boolean visible) {
980 this._visible = visible;
981 this._has_visible = true;
985 * Sets the value of field 'width'.
987 * @param width the value of field 'width'.
989 public void setWidth(
992 this._has_width = true;
996 * Sets the value of field 'xpos'.
998 * @param xpos the value of field 'xpos'.
1000 public void setXpos(
1003 this._has_xpos = true;
1007 * Sets the value of field 'ypos'.
1009 * @param ypos the value of field 'ypos'.
1011 public void setYpos(
1014 this._has_ypos = true;
1021 * @throws org.exolab.castor.xml.MarshalException if object is
1022 * null or if any SAXException is thrown during marshaling
1023 * @throws org.exolab.castor.xml.ValidationException if this
1024 * object is an invalid instance according to the schema
1025 * @return the unmarshaled
1026 * jalview.schemabinding.version2.StructureState
1028 public static jalview.schemabinding.version2.StructureState unmarshal(
1029 final java.io.Reader reader)
1030 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
1031 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
1037 * @throws org.exolab.castor.xml.ValidationException if this
1038 * object is an invalid instance according to the schema
1040 public void validate(
1042 throws org.exolab.castor.xml.ValidationException {
1043 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
1044 validator.validate(this);