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;
89 public StructureState() {
101 public void deleteHeight(
103 this._has_height= false;
108 public void deleteVisible(
110 this._has_visible= false;
115 public void deleteWidth(
117 this._has_width= false;
122 public void deleteXpos(
124 this._has_xpos= false;
129 public void deleteYpos(
131 this._has_ypos= false;
135 * Returns the value of field 'content'. The field 'content'
136 * has the following description: internal content storage
138 * @return the value of field 'Content'.
140 public java.lang.String getContent(
142 return this._content;
146 * Returns the value of field 'height'.
148 * @return the value of field 'Height'.
150 public int getHeight(
156 * Returns the value of field 'visible'.
158 * @return the value of field 'Visible'.
160 public boolean getVisible(
162 return this._visible;
166 * Returns the value of field 'width'.
168 * @return the value of field 'Width'.
176 * Returns the value of field 'xpos'.
178 * @return the value of field 'Xpos'.
186 * Returns the value of field 'ypos'.
188 * @return the value of field 'Ypos'.
198 * @return true if at least one Height has been added
200 public boolean hasHeight(
202 return this._has_height;
208 * @return true if at least one Visible has been added
210 public boolean hasVisible(
212 return this._has_visible;
218 * @return true if at least one Width has been added
220 public boolean hasWidth(
222 return this._has_width;
228 * @return true if at least one Xpos has been added
230 public boolean hasXpos(
232 return this._has_xpos;
238 * @return true if at least one Ypos has been added
240 public boolean hasYpos(
242 return this._has_ypos;
248 * @return true if this object is valid according to the schema
250 public boolean isValid(
254 } catch (org.exolab.castor.xml.ValidationException vex) {
261 * Returns the value of field 'visible'.
263 * @return the value of field 'Visible'.
265 public boolean isVisible(
267 return this._visible;
274 * @throws org.exolab.castor.xml.MarshalException if object is
275 * null or if any SAXException is thrown during marshaling
276 * @throws org.exolab.castor.xml.ValidationException if this
277 * object is an invalid instance according to the schema
280 final java.io.Writer out)
281 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
282 Marshaller.marshal(this, out);
289 * @throws java.io.IOException if an IOException occurs during
291 * @throws org.exolab.castor.xml.ValidationException if this
292 * object is an invalid instance according to the schema
293 * @throws org.exolab.castor.xml.MarshalException if object is
294 * null or if any SAXException is thrown during marshaling
297 final org.xml.sax.ContentHandler handler)
298 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
299 Marshaller.marshal(this, handler);
303 * Sets the value of field 'content'. The field 'content' has
304 * the following description: internal content storage
306 * @param content the value of field 'content'.
308 public void setContent(
309 final java.lang.String content) {
310 this._content = content;
314 * Sets the value of field 'height'.
316 * @param height the value of field 'height'.
318 public void setHeight(
320 this._height = height;
321 this._has_height = true;
325 * Sets the value of field 'visible'.
327 * @param visible the value of field 'visible'.
329 public void setVisible(
330 final boolean visible) {
331 this._visible = visible;
332 this._has_visible = true;
336 * Sets the value of field 'width'.
338 * @param width the value of field 'width'.
340 public void setWidth(
343 this._has_width = true;
347 * Sets the value of field 'xpos'.
349 * @param xpos the value of field 'xpos'.
354 this._has_xpos = true;
358 * Sets the value of field 'ypos'.
360 * @param ypos the value of field 'ypos'.
365 this._has_ypos = true;
372 * @throws org.exolab.castor.xml.MarshalException if object is
373 * null or if any SAXException is thrown during marshaling
374 * @throws org.exolab.castor.xml.ValidationException if this
375 * object is an invalid instance according to the schema
376 * @return the unmarshaled
377 * jalview.schemabinding.version2.StructureState
379 public static jalview.schemabinding.version2.StructureState unmarshal(
380 final java.io.Reader reader)
381 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
382 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
388 * @throws org.exolab.castor.xml.ValidationException if this
389 * object is an invalid instance according to the schema
391 public void validate(
393 throws org.exolab.castor.xml.ValidationException {
394 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
395 validator.validate(this);