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