-public class StructureState implements java.io.Serializable {
-
-
- //--------------------------/
- //- Class/Member Variables -/
- //--------------------------/
-
- /**
- * internal content storage
- */
- private java.lang.String _content = "";
-
- /**
- * Field _visible
- */
- private boolean _visible;
-
- /**
- * keeps track of state for field: _visible
- */
- private boolean _has_visible;
-
- /**
- * Field _xpos
- */
- private int _xpos;
-
- /**
- * keeps track of state for field: _xpos
- */
- private boolean _has_xpos;
-
- /**
- * Field _ypos
- */
- private int _ypos;
-
- /**
- * keeps track of state for field: _ypos
- */
- private boolean _has_ypos;
-
- /**
- * Field _width
- */
- private int _width;
-
- /**
- * keeps track of state for field: _width
- */
- private boolean _has_width;
-
- /**
- * Field _height
- */
- private int _height;
-
- /**
- * keeps track of state for field: _height
- */
- private boolean _has_height;
-
-
- //----------------/
- //- Constructors -/
- //----------------/
-
- public StructureState() {
- super();
- setContent("");
- } //-- jalview.schemabinding.version2.StructureState()
-
-
- //-----------/
- //- Methods -/
- //-----------/
-
- /**
- * Method deleteHeight
- *
- */
- public void deleteHeight()
- {
- this._has_height= false;
- } //-- void deleteHeight()
-
- /**
- * Method deleteVisible
- *
- */
- public void deleteVisible()
- {
- this._has_visible= false;
- } //-- void deleteVisible()
-
- /**
- * Method deleteWidth
- *
- */
- public void deleteWidth()
- {
- this._has_width= false;
- } //-- void deleteWidth()
-
- /**
- * Method deleteXpos
- *
- */
- public void deleteXpos()
- {
- this._has_xpos= false;
- } //-- void deleteXpos()
-
- /**
- * Method deleteYpos
- *
- */
- public void deleteYpos()
- {
- this._has_ypos= false;
- } //-- void deleteYpos()
-
- /**
- * Returns the value of field 'content'. The field 'content'
- * has the following description: internal content storage
- *
- * @return String
- * @return the value of field 'content'.
- */
- public java.lang.String getContent()
- {
- return this._content;
- } //-- java.lang.String getContent()
-
- /**
- * Returns the value of field 'height'.
- *
- * @return int
- * @return the value of field 'height'.
- */
- public int getHeight()
- {
- return this._height;
- } //-- int getHeight()
-
- /**
- * Returns the value of field 'visible'.
- *
- * @return boolean
- * @return the value of field 'visible'.
- */
- public boolean getVisible()
- {
- return this._visible;
- } //-- boolean getVisible()
-
- /**
- * Returns the value of field 'width'.
- *
- * @return int
- * @return the value of field 'width'.
- */
- public int getWidth()
- {
- return this._width;
- } //-- int getWidth()
-
- /**
- * Returns the value of field 'xpos'.
- *
- * @return int
- * @return the value of field 'xpos'.
- */
- public int getXpos()
- {
- return this._xpos;
- } //-- int getXpos()
-
- /**
- * Returns the value of field 'ypos'.
- *
- * @return int
- * @return the value of field 'ypos'.
- */
- public int getYpos()
- {
- return this._ypos;
- } //-- int getYpos()
-
- /**
- * Method hasHeight
- *
- *
- *
- * @return boolean
- */
- public boolean hasHeight()
- {
- return this._has_height;
- } //-- boolean hasHeight()
-
- /**
- * Method hasVisible
- *
- *
- *
- * @return boolean
- */
- public boolean hasVisible()
- {
- return this._has_visible;
- } //-- boolean hasVisible()
-
- /**
- * Method hasWidth
- *
- *
- *
- * @return boolean
- */
- public boolean hasWidth()
- {
- return this._has_width;
- } //-- boolean hasWidth()
-
- /**
- * Method hasXpos
- *
- *
- *
- * @return boolean
- */
- public boolean hasXpos()
- {
- return this._has_xpos;
- } //-- boolean hasXpos()
-
- /**
- * Method hasYpos
- *
- *
- *
- * @return boolean
- */
- public boolean hasYpos()
- {
- return this._has_ypos;
- } //-- boolean hasYpos()
-
- /**
- * Method isValid
- *
- *
- *
- * @return boolean
- */
- public boolean isValid()
- {
- try {
- validate();
- }
- catch (org.exolab.castor.xml.ValidationException vex) {
- return false;
- }
- return true;
- } //-- boolean isValid()
-
- /**
- * Method marshal
- *
- *
- *
- * @param out
- */
- public void marshal(java.io.Writer out)
- throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- {
-
- Marshaller.marshal(this, out);
- } //-- void marshal(java.io.Writer)
-
- /**
- * Method marshal
- *
- *
- *
- * @param handler
- */
- public void marshal(org.xml.sax.ContentHandler handler)
- throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- {
-
- Marshaller.marshal(this, handler);
- } //-- void marshal(org.xml.sax.ContentHandler)
-
- /**
- * Sets the value of field 'content'. The field 'content' has
- * the following description: internal content storage
- *
- * @param content the value of field 'content'.
- */
- public void setContent(java.lang.String content)
- {
- this._content = content;
- } //-- void setContent(java.lang.String)
-
- /**
- * Sets the value of field 'height'.
- *
- * @param height the value of field 'height'.
- */
- public void setHeight(int height)
- {
- this._height = height;
- this._has_height = true;
- } //-- void setHeight(int)
-
- /**
- * Sets the value of field 'visible'.
- *
- * @param visible the value of field 'visible'.
- */
- public void setVisible(boolean visible)
- {
- this._visible = visible;
- this._has_visible = true;
- } //-- void setVisible(boolean)
-
- /**
- * Sets the value of field 'width'.
- *
- * @param width the value of field 'width'.
- */
- public void setWidth(int width)
- {
- this._width = width;
- this._has_width = true;
- } //-- void setWidth(int)
-
- /**
- * Sets the value of field 'xpos'.
- *
- * @param xpos the value of field 'xpos'.
- */
- public void setXpos(int xpos)
- {
- this._xpos = xpos;
- this._has_xpos = true;
- } //-- void setXpos(int)
-
- /**
- * Sets the value of field 'ypos'.
- *
- * @param ypos the value of field 'ypos'.
- */
- public void setYpos(int ypos)
- {
- this._ypos = ypos;
- this._has_ypos = true;
- } //-- void setYpos(int)
-
- /**
- * Method unmarshal
- *
- *
- *
- * @param reader
- * @return Object
- */
- public static java.lang.Object unmarshal(java.io.Reader reader)
- throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
+public class StructureState implements java.io.Serializable
+{
+
+ // --------------------------/
+ // - Class/Member Variables -/
+ // --------------------------/
+
+ /**
+ * internal content storage
+ */
+ private java.lang.String _content = "";
+
+ /**
+ * Field _visible.
+ */
+ private boolean _visible;
+
+ /**
+ * keeps track of state for field: _visible
+ */
+ private boolean _has_visible;
+
+ /**
+ * Field _xpos.
+ */
+ private int _xpos;
+
+ /**
+ * keeps track of state for field: _xpos
+ */
+ private boolean _has_xpos;
+
+ /**
+ * Field _ypos.
+ */
+ private int _ypos;
+
+ /**
+ * keeps track of state for field: _ypos
+ */
+ private boolean _has_ypos;
+
+ /**
+ * Field _width.
+ */
+ private int _width;
+
+ /**
+ * keeps track of state for field: _width
+ */
+ private boolean _has_width;
+
+ /**
+ * Field _height.
+ */
+ private int _height;
+
+ /**
+ * keeps track of state for field: _height
+ */
+ private boolean _has_height;
+
+ // ----------------/
+ // - Constructors -/
+ // ----------------/
+
+ public StructureState()
+ {
+ super();
+ setContent("");
+ }
+
+ // -----------/
+ // - Methods -/
+ // -----------/
+
+ /**
+ */
+ public void deleteHeight()
+ {
+ this._has_height = false;
+ }
+
+ /**
+ */
+ public void deleteVisible()
+ {
+ this._has_visible = false;
+ }
+
+ /**
+ */
+ public void deleteWidth()
+ {
+ this._has_width = false;
+ }
+
+ /**
+ */
+ public void deleteXpos()
+ {
+ this._has_xpos = false;
+ }
+
+ /**
+ */
+ public void deleteYpos()
+ {
+ this._has_ypos = false;
+ }
+
+ /**
+ * Returns the value of field 'content'. The field 'content' has the following
+ * description: internal content storage
+ *
+ * @return the value of field 'Content'.
+ */
+ public java.lang.String getContent()
+ {
+ return this._content;
+ }
+
+ /**
+ * Returns the value of field 'height'.
+ *
+ * @return the value of field 'Height'.
+ */
+ public int getHeight()
+ {
+ return this._height;
+ }
+
+ /**
+ * Returns the value of field 'visible'.
+ *
+ * @return the value of field 'Visible'.
+ */
+ public boolean getVisible()
+ {
+ return this._visible;
+ }
+
+ /**
+ * Returns the value of field 'width'.
+ *
+ * @return the value of field 'Width'.
+ */
+ public int getWidth()
+ {
+ return this._width;
+ }
+
+ /**
+ * Returns the value of field 'xpos'.
+ *
+ * @return the value of field 'Xpos'.
+ */
+ public int getXpos()
+ {
+ return this._xpos;
+ }
+
+ /**
+ * Returns the value of field 'ypos'.
+ *
+ * @return the value of field 'Ypos'.
+ */
+ public int getYpos()
+ {
+ return this._ypos;
+ }
+
+ /**
+ * Method hasHeight.
+ *
+ * @return true if at least one Height has been added
+ */
+ public boolean hasHeight()
+ {
+ return this._has_height;
+ }
+
+ /**
+ * Method hasVisible.
+ *
+ * @return true if at least one Visible has been added
+ */
+ public boolean hasVisible()
+ {
+ return this._has_visible;
+ }
+
+ /**
+ * Method hasWidth.
+ *
+ * @return true if at least one Width has been added
+ */
+ public boolean hasWidth()
+ {
+ return this._has_width;
+ }
+
+ /**
+ * Method hasXpos.
+ *
+ * @return true if at least one Xpos has been added
+ */
+ public boolean hasXpos()
+ {
+ return this._has_xpos;
+ }
+
+ /**
+ * Method hasYpos.
+ *
+ * @return true if at least one Ypos has been added
+ */
+ public boolean hasYpos()
+ {
+ return this._has_ypos;
+ }
+
+ /**
+ * Method isValid.
+ *
+ * @return true if this object is valid according to the schema
+ */
+ public boolean isValid()
+ {
+ try