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;
50 * keeps track of state for field: _xpos
52 private boolean _has_xpos;
60 * keeps track of state for field: _ypos
62 private boolean _has_ypos;
70 * keeps track of state for field: _width
72 private boolean _has_width;
80 * keeps track of state for field: _height
82 private boolean _has_height;
87 private java.lang.String _viewId;
94 public StructureState() {
106 public void deleteHeight(
108 this._has_height= false;
113 public void deleteVisible(
115 this._has_visible= false;
120 public void deleteWidth(
122 this._has_width= false;
127 public void deleteXpos(
129 this._has_xpos= false;
134 public void deleteYpos(
136 this._has_ypos= false;
140 * Returns the value of field 'content'. The field 'content'
141 * has the following description: internal content storage
143 * @return the value of field 'Content'.
145 public java.lang.String getContent(
147 return this._content;
151 * Returns the value of field 'height'.
153 * @return the value of field 'Height'.
155 public int getHeight(
161 * Returns the value of field 'viewId'.
163 * @return the value of field 'ViewId'.
165 public java.lang.String getViewId(
171 * Returns the value of field 'visible'.
173 * @return the value of field 'Visible'.
175 public boolean getVisible(
177 return this._visible;
181 * Returns the value of field 'width'.
183 * @return the value of field 'Width'.
191 * Returns the value of field 'xpos'.
193 * @return the value of field 'Xpos'.
201 * Returns the value of field 'ypos'.
203 * @return the value of field 'Ypos'.
213 * @return true if at least one Height has been added
215 public boolean hasHeight(
217 return this._has_height;
223 * @return true if at least one Visible has been added
225 public boolean hasVisible(
227 return this._has_visible;
233 * @return true if at least one Width has been added
235 public boolean hasWidth(
237 return this._has_width;
243 * @return true if at least one Xpos has been added
245 public boolean hasXpos(
247 return this._has_xpos;
253 * @return true if at least one Ypos has been added
255 public boolean hasYpos(
257 return this._has_ypos;
263 * @return true if this object is valid according to the schema
265 public boolean isValid(
269 } catch (org.exolab.castor.xml.ValidationException vex) {
276 * Returns the value of field 'visible'.
278 * @return the value of field 'Visible'.
280 public boolean isVisible(
282 return this._visible;
289 * @throws org.exolab.castor.xml.MarshalException if object is
290 * null or if any SAXException is thrown during marshaling
291 * @throws org.exolab.castor.xml.ValidationException if this
292 * object is an invalid instance according to the schema
295 final java.io.Writer out)
296 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
297 Marshaller.marshal(this, out);
304 * @throws java.io.IOException if an IOException occurs during
306 * @throws org.exolab.castor.xml.ValidationException if this
307 * object is an invalid instance according to the schema
308 * @throws org.exolab.castor.xml.MarshalException if object is
309 * null or if any SAXException is thrown during marshaling
312 final org.xml.sax.ContentHandler handler)
313 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
314 Marshaller.marshal(this, handler);
318 * Sets the value of field 'content'. The field 'content' has
319 * the following description: internal content storage
321 * @param content the value of field 'content'.
323 public void setContent(
324 final java.lang.String content) {
325 this._content = content;
329 * Sets the value of field 'height'.
331 * @param height the value of field 'height'.
333 public void setHeight(
335 this._height = height;
336 this._has_height = true;
340 * Sets the value of field 'viewId'.
342 * @param viewId the value of field 'viewId'.
344 public void setViewId(
345 final java.lang.String viewId) {
346 this._viewId = viewId;
350 * Sets the value of field 'visible'.
352 * @param visible the value of field 'visible'.
354 public void setVisible(
355 final boolean visible) {
356 this._visible = visible;
357 this._has_visible = true;
361 * Sets the value of field 'width'.
363 * @param width the value of field 'width'.
365 public void setWidth(
368 this._has_width = true;
372 * Sets the value of field 'xpos'.
374 * @param xpos the value of field 'xpos'.
379 this._has_xpos = true;
383 * Sets the value of field 'ypos'.
385 * @param ypos the value of field 'ypos'.
390 this._has_ypos = true;
397 * @throws org.exolab.castor.xml.MarshalException if object is
398 * null or if any SAXException is thrown during marshaling
399 * @throws org.exolab.castor.xml.ValidationException if this
400 * object is an invalid instance according to the schema
401 * @return the unmarshaled
402 * jalview.schemabinding.version2.StructureState
404 public static jalview.schemabinding.version2.StructureState unmarshal(
405 final java.io.Reader reader)
406 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
407 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
413 * @throws org.exolab.castor.xml.ValidationException if this
414 * object is an invalid instance according to the schema
416 public void validate(
418 throws org.exolab.castor.xml.ValidationException {
419 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
420 validator.validate(this);