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;
20 * @version $Revision$ $Date$
22 public class CalcIdParam extends WebServiceParameterSet implements
26 // --------------------------/
27 // - Class/Member Variables -/
28 // --------------------------/
31 * handle for the calculation which uses this parameter set
34 private java.lang.String _calcId;
37 * should the calculation be performed immediately after loading in order to
41 private boolean _needsUpdate = false;
44 * keeps track of state for field: _needsUpdate
46 private boolean _has_needsUpdate;
49 * should the calculation be automatically performed on edits
52 private boolean _autoUpdate;
55 * keeps track of state for field: _autoUpdate
57 private boolean _has_autoUpdate;
74 public void deleteAutoUpdate()
76 this._has_autoUpdate = false;
81 public void deleteNeedsUpdate()
83 this._has_needsUpdate = false;
87 * Returns the value of field 'autoUpdate'. The field 'autoUpdate' has the
88 * following description: should the calculation be automatically performed on
92 * @return the value of field 'AutoUpdate'.
94 public boolean getAutoUpdate()
96 return this._autoUpdate;
100 * Returns the value of field 'calcId'. The field 'calcId' has the following
101 * description: handle for the calculation which uses this parameter set
104 * @return the value of field 'CalcId'.
106 public java.lang.String getCalcId()
112 * Returns the value of field 'needsUpdate'. The field 'needsUpdate' has the
113 * following description: should the calculation be performed immediately
114 * after loading in order to refresh results
117 * @return the value of field 'NeedsUpdate'.
119 public boolean getNeedsUpdate()
121 return this._needsUpdate;
125 * Method hasAutoUpdate.
127 * @return true if at least one AutoUpdate has been added
129 public boolean hasAutoUpdate()
131 return this._has_autoUpdate;
135 * Method hasNeedsUpdate.
137 * @return true if at least one NeedsUpdate has been added
139 public boolean hasNeedsUpdate()
141 return this._has_needsUpdate;
145 * Returns the value of field 'autoUpdate'. The field 'autoUpdate' has the
146 * following description: should the calculation be automatically performed on
150 * @return the value of field 'AutoUpdate'.
152 public boolean isAutoUpdate()
154 return this._autoUpdate;
158 * Returns the value of field 'needsUpdate'. The field 'needsUpdate' has the
159 * following description: should the calculation be performed immediately
160 * after loading in order to refresh results
163 * @return the value of field 'NeedsUpdate'.
165 public boolean isNeedsUpdate()
167 return this._needsUpdate;
173 * @return true if this object is valid according to the schema
175 public boolean isValid()
180 } catch (org.exolab.castor.xml.ValidationException vex)
191 * @throws org.exolab.castor.xml.MarshalException
192 * if object is null or if any SAXException is thrown during
194 * @throws org.exolab.castor.xml.ValidationException
195 * if this object is an invalid instance according to the schema
197 public void marshal(final java.io.Writer out)
198 throws org.exolab.castor.xml.MarshalException,
199 org.exolab.castor.xml.ValidationException
201 Marshaller.marshal(this, out);
208 * @throws java.io.IOException
209 * if an IOException occurs during marshaling
210 * @throws org.exolab.castor.xml.ValidationException
211 * if this object is an invalid instance according to the schema
212 * @throws org.exolab.castor.xml.MarshalException
213 * if object is null or if any SAXException is thrown during
216 public void marshal(final org.xml.sax.ContentHandler handler)
217 throws java.io.IOException,
218 org.exolab.castor.xml.MarshalException,
219 org.exolab.castor.xml.ValidationException
221 Marshaller.marshal(this, handler);
225 * Sets the value of field 'autoUpdate'. The field 'autoUpdate' has the
226 * following description: should the calculation be automatically performed on
231 * the value of field 'autoUpdate'.
233 public void setAutoUpdate(final boolean autoUpdate)
235 this._autoUpdate = autoUpdate;
236 this._has_autoUpdate = true;
240 * Sets the value of field 'calcId'. The field 'calcId' has the following
241 * description: handle for the calculation which uses this parameter set
245 * the value of field 'calcId'.
247 public void setCalcId(final java.lang.String calcId)
249 this._calcId = calcId;
253 * Sets the value of field 'needsUpdate'. The field 'needsUpdate' has the
254 * following description: should the calculation be performed immediately
255 * after loading in order to refresh results
259 * the value of field 'needsUpdate'.
261 public void setNeedsUpdate(final boolean needsUpdate)
263 this._needsUpdate = needsUpdate;
264 this._has_needsUpdate = true;
271 * @throws org.exolab.castor.xml.MarshalException
272 * if object is null or if any SAXException is thrown during
274 * @throws org.exolab.castor.xml.ValidationException
275 * if this object is an invalid instance according to the schema
276 * @return the unmarshaled jalview.schemabinding.version2.CalcIdParam
278 public static jalview.schemabinding.version2.CalcIdParam unmarshal(
279 final java.io.Reader reader)
280 throws org.exolab.castor.xml.MarshalException,
281 org.exolab.castor.xml.ValidationException
283 return (jalview.schemabinding.version2.CalcIdParam) Unmarshaller
284 .unmarshal(jalview.schemabinding.version2.CalcIdParam.class,
291 * @throws org.exolab.castor.xml.ValidationException
292 * if this object is an invalid instance according to the schema
294 public void validate() throws org.exolab.castor.xml.ValidationException
296 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
297 validator.validate(this);