2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
8 package jalview.schemabinding.version2;
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.exolab.castor.xml.MarshalException;
19 import org.exolab.castor.xml.Marshaller;
20 import org.exolab.castor.xml.Unmarshaller;
21 import org.exolab.castor.xml.ValidationException;
22 import org.xml.sax.ContentHandler;
25 * Class StructureState.
27 * @version $Revision$ $Date$
29 public class StructureState implements java.io.Serializable {
32 //--------------------------/
33 //- Class/Member Variables -/
34 //--------------------------/
37 * internal content storage
39 private java.lang.String _content = "";
44 private boolean _visible;
47 * keeps track of state for field: _visible
49 private boolean _has_visible;
57 * keeps track of state for field: _xpos
59 private boolean _has_xpos;
67 * keeps track of state for field: _ypos
69 private boolean _has_ypos;
77 * keeps track of state for field: _width
79 private boolean _has_width;
87 * keeps track of state for field: _height
89 private boolean _has_height;
96 public StructureState() {
99 } //-- jalview.schemabinding.version2.StructureState()
107 * Method deleteHeight
110 public void deleteHeight()
112 this._has_height= false;
113 } //-- void deleteHeight()
116 * Method deleteVisible
119 public void deleteVisible()
121 this._has_visible= false;
122 } //-- void deleteVisible()
128 public void deleteWidth()
130 this._has_width= false;
131 } //-- void deleteWidth()
137 public void deleteXpos()
139 this._has_xpos= false;
140 } //-- void deleteXpos()
146 public void deleteYpos()
148 this._has_ypos= false;
149 } //-- void deleteYpos()
152 * Returns the value of field 'content'. The field 'content'
153 * has the following description: internal content storage
156 * @return the value of field 'content'.
158 public java.lang.String getContent()
160 return this._content;
161 } //-- java.lang.String getContent()
164 * Returns the value of field 'height'.
167 * @return the value of field 'height'.
169 public int getHeight()
172 } //-- int getHeight()
175 * Returns the value of field 'visible'.
178 * @return the value of field 'visible'.
180 public boolean getVisible()
182 return this._visible;
183 } //-- boolean getVisible()
186 * Returns the value of field 'width'.
189 * @return the value of field 'width'.
191 public int getWidth()
194 } //-- int getWidth()
197 * Returns the value of field 'xpos'.
200 * @return the value of field 'xpos'.
208 * Returns the value of field 'ypos'.
211 * @return the value of field 'ypos'.
225 public boolean hasHeight()
227 return this._has_height;
228 } //-- boolean hasHeight()
237 public boolean hasVisible()
239 return this._has_visible;
240 } //-- boolean hasVisible()
249 public boolean hasWidth()
251 return this._has_width;
252 } //-- boolean hasWidth()
261 public boolean hasXpos()
263 return this._has_xpos;
264 } //-- boolean hasXpos()
273 public boolean hasYpos()
275 return this._has_ypos;
276 } //-- boolean hasYpos()
285 public boolean isValid()
290 catch (org.exolab.castor.xml.ValidationException vex) {
294 } //-- boolean isValid()
303 public void marshal(java.io.Writer out)
304 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
307 Marshaller.marshal(this, out);
308 } //-- void marshal(java.io.Writer)
317 public void marshal(org.xml.sax.ContentHandler handler)
318 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
321 Marshaller.marshal(this, handler);
322 } //-- void marshal(org.xml.sax.ContentHandler)
325 * Sets the value of field 'content'. The field 'content' has
326 * the following description: internal content storage
328 * @param content the value of field 'content'.
330 public void setContent(java.lang.String content)
332 this._content = content;
333 } //-- void setContent(java.lang.String)
336 * Sets the value of field 'height'.
338 * @param height the value of field 'height'.
340 public void setHeight(int height)
342 this._height = height;
343 this._has_height = true;
344 } //-- void setHeight(int)
347 * Sets the value of field 'visible'.
349 * @param visible the value of field 'visible'.
351 public void setVisible(boolean visible)
353 this._visible = visible;
354 this._has_visible = true;
355 } //-- void setVisible(boolean)
358 * Sets the value of field 'width'.
360 * @param width the value of field 'width'.
362 public void setWidth(int width)
365 this._has_width = true;
366 } //-- void setWidth(int)
369 * Sets the value of field 'xpos'.
371 * @param xpos the value of field 'xpos'.
373 public void setXpos(int xpos)
376 this._has_xpos = true;
377 } //-- void setXpos(int)
380 * Sets the value of field 'ypos'.
382 * @param ypos the value of field 'ypos'.
384 public void setYpos(int ypos)
387 this._has_ypos = true;
388 } //-- void setYpos(int)
398 public static java.lang.Object unmarshal(java.io.Reader reader)
399 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
401 return (jalview.schemabinding.version2.StructureState) Unmarshaller.unmarshal(jalview.schemabinding.version2.StructureState.class, reader);
402 } //-- java.lang.Object unmarshal(java.io.Reader)
408 public void validate()
409 throws org.exolab.castor.xml.ValidationException
411 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
412 validator.validate(this);
413 } //-- void validate()