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;
85 * additional identifier which properly disambiguates
86 * the structure view from any other view with the same
87 * attributes. This is not an ID,
88 * because it is possible to have many references to the same
89 * physical structure view
90 * from different sequences in an alignment. A structureState
91 * element citing the same
92 * viewId will appear for each instance.
94 private java.lang.String _viewId;
97 * Flag set if the alignment panel containing this JSeq should
98 * be explicitly linked to the Jmol view referred to/created by
99 * this structureState (since Jalview 2.7).
102 private boolean _linkAlignPanel = true;
105 * keeps track of state for field: _linkAlignPanel
107 private boolean _has_linkAlignPanel;
110 * Flag set if the alignment panel containing this JSeq should
111 * be included in those used to perform a structure
112 * superposition (since Jalview 2.7).
115 private boolean _alignwithAlignPanel = true;
118 * keeps track of state for field: _alignwithAlignPanel
120 private boolean _has_alignwithAlignPanel;
127 public StructureState() {
139 public void deleteAlignwithAlignPanel(
141 this._has_alignwithAlignPanel= false;
146 public void deleteHeight(
148 this._has_height= false;
153 public void deleteLinkAlignPanel(
155 this._has_linkAlignPanel= false;
160 public void deleteVisible(
162 this._has_visible= false;
167 public void deleteWidth(
169 this._has_width= false;
174 public void deleteXpos(
176 this._has_xpos= false;
181 public void deleteYpos(
183 this._has_ypos= false;
187 * Returns the value of field 'alignwithAlignPanel'. The field
188 * 'alignwithAlignPanel' has the following description: Flag
189 * set if the alignment panel containing this JSeq should be
190 * included in those used to perform a structure superposition
191 * (since Jalview 2.7).
194 * @return the value of field 'AlignwithAlignPanel'.
196 public boolean getAlignwithAlignPanel(
198 return this._alignwithAlignPanel;
202 * Returns the value of field 'content'. The field 'content'
203 * has the following description: internal content storage
205 * @return the value of field 'Content'.
207 public java.lang.String getContent(
209 return this._content;
213 * Returns the value of field 'height'.
215 * @return the value of field 'Height'.
217 public int getHeight(
223 * Returns the value of field 'linkAlignPanel'. The field
224 * 'linkAlignPanel' has the following description: Flag set if
225 * the alignment panel containing this JSeq should be
226 * explicitly linked to the Jmol view referred to/created by
227 * this structureState (since Jalview 2.7).
230 * @return the value of field 'LinkAlignPanel'.
232 public boolean getLinkAlignPanel(
234 return this._linkAlignPanel;
238 * Returns the value of field 'viewId'. The field 'viewId' has
239 * the following description: additional identifier which
240 * properly disambiguates
241 * the structure view from any other view with the same
242 * attributes. This is not an ID,
243 * because it is possible to have many references to the same
244 * physical structure view
245 * from different sequences in an alignment. A structureState
246 * element citing the same
247 * viewId will appear for each instance.
249 * @return the value of field 'ViewId'.
251 public java.lang.String getViewId(
257 * Returns the value of field 'visible'.
259 * @return the value of field 'Visible'.
261 public boolean getVisible(
263 return this._visible;
267 * Returns the value of field 'width'.
269 * @return the value of field 'Width'.
277 * Returns the value of field 'xpos'.
279 * @return the value of field 'Xpos'.
287 * Returns the value of field 'ypos'.
289 * @return the value of field 'Ypos'.
297 * Method hasAlignwithAlignPanel.
299 * @return true if at least one AlignwithAlignPanel has been
302 public boolean hasAlignwithAlignPanel(
304 return this._has_alignwithAlignPanel;
310 * @return true if at least one Height has been added
312 public boolean hasHeight(
314 return this._has_height;
318 * Method hasLinkAlignPanel.
320 * @return true if at least one LinkAlignPanel has been added
322 public boolean hasLinkAlignPanel(
324 return this._has_linkAlignPanel;
330 * @return true if at least one Visible has been added
332 public boolean hasVisible(
334 return this._has_visible;
340 * @return true if at least one Width has been added
342 public boolean hasWidth(
344 return this._has_width;
350 * @return true if at least one Xpos has been added
352 public boolean hasXpos(
354 return this._has_xpos;
360 * @return true if at least one Ypos has been added
362 public boolean hasYpos(
364 return this._has_ypos;
368 * Returns the value of field 'alignwithAlignPanel'. The field
369 * 'alignwithAlignPanel' has the following description: Flag
370 * set if the alignment panel containing this JSeq should be
371 * included in those used to perform a structure superposition
372 * (since Jalview 2.7).
375 * @return the value of field 'AlignwithAlignPanel'.
377 public boolean isAlignwithAlignPanel(
379 return this._alignwithAlignPanel;
383 * Returns the value of field 'linkAlignPanel'. The field
384 * 'linkAlignPanel' has the following description: Flag set if
385 * the alignment panel containing this JSeq should be
386 * explicitly linked to the Jmol view referred to/created by
387 * this structureState (since Jalview 2.7).
390 * @return the value of field 'LinkAlignPanel'.
392 public boolean isLinkAlignPanel(
394 return this._linkAlignPanel;
400 * @return true if this object is valid according to the schema
402 public boolean isValid(
406 } catch (org.exolab.castor.xml.ValidationException vex) {
413 * Returns the value of field 'visible'.
415 * @return the value of field 'Visible'.
417 public boolean isVisible(
419 return this._visible;
426 * @throws org.exolab.castor.xml.MarshalException if object is
427 * null or if any SAXException is thrown during marshaling
428 * @throws org.exolab.castor.xml.ValidationException if this
429 * object is an invalid instance according to the schema
432 final java.io.Writer out)
433 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
434 Marshaller.marshal(this, out);
441 * @throws java.io.IOException if an IOException occurs during
443 * @throws org.exolab.castor.xml.ValidationException if this
444 * object is an invalid instance according to the schema
445 * @throws org.exolab.castor.xml.MarshalException if object is
446 * null or if any SAXException is thrown during marshaling
449 final org.xml.sax.ContentHandler handler)
450 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
451 Marshaller.marshal(this, handler);
455 * Sets the value of field 'alignwithAlignPanel'. The field
456 * 'alignwithAlignPanel' has the following description: Flag
457 * set if the alignment panel containing this JSeq should be
458 * included in those used to perform a structure superposition
459 * (since Jalview 2.7).
462 * @param alignwithAlignPanel the value of field
463 * 'alignwithAlignPanel'.
465 public void setAlignwithAlignPanel(
466 final boolean alignwithAlignPanel) {
467 this._alignwithAlignPanel = alignwithAlignPanel;
468 this._has_alignwithAlignPanel = true;
472 * Sets the value of field 'content'. The field 'content' has
473 * the following description: internal content storage
475 * @param content the value of field 'content'.
477 public void setContent(
478 final java.lang.String content) {
479 this._content = content;
483 * Sets the value of field 'height'.
485 * @param height the value of field 'height'.
487 public void setHeight(
489 this._height = height;
490 this._has_height = true;
494 * Sets the value of field 'linkAlignPanel'. The field
495 * 'linkAlignPanel' has the following description: Flag set if
496 * the alignment panel containing this JSeq should be
497 * explicitly linked to the Jmol view referred to/created by
498 * this structureState (since Jalview 2.7).
501 * @param linkAlignPanel the value of field 'linkAlignPanel'.
503 public void setLinkAlignPanel(
504 final boolean linkAlignPanel) {
505 this._linkAlignPanel = linkAlignPanel;
506 this._has_linkAlignPanel = true;
510 * Sets the value of field 'viewId'. The field 'viewId' has the
511 * following description: additional identifier which properly
513 * the structure view from any other view with the same
514 * attributes. This is not an ID,
515 * because it is possible to have many references to the same
516 * physical structure view
517 * from different sequences in an alignment. A structureState
518 * element citing the same
519 * viewId will appear for each instance.
521 * @param viewId the value of field 'viewId'.
523 public void setViewId(
524 final java.lang.String viewId) {
525 this._viewId = viewId;
529 * Sets the value of field 'visible'.
531 * @param visible the value of field 'visible'.
533 public void setVisible(
534 final boolean visible) {
535 this._visible = visible;
536 this._has_visible = true;
540 * Sets the value of field 'width'.
542 * @param width the value of field 'width'.
544 public void setWidth(
547 this._has_width = true;
551 * Sets the value of field 'xpos'.
553 * @param xpos the value of field 'xpos'.
558 this._has_xpos = true;
562 * Sets the value of field 'ypos'.
564 * @param ypos the value of field 'ypos'.
569 this._has_ypos = true;
576 * @throws org.exolab.castor.xml.MarshalException if object is
577 * null or if any SAXException is thrown during marshaling
578 * @throws org.exolab.castor.xml.ValidationException if this
579 * object is an invalid instance according to the schema
580 * @return the unmarshaled
581 * jalview.schemabinding.version2.StructureState
583 public static jalview.schemabinding.version2.StructureState unmarshal(
584 final java.io.Reader reader)
585 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
586 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
592 * @throws org.exolab.castor.xml.ValidationException if this
593 * object is an invalid instance according to the schema
595 public void validate(
597 throws org.exolab.castor.xml.ValidationException {
598 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
599 validator.validate(this);