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
33 private java.lang.String _calcId;
36 * should the calculation be performed immediately after loading in order to
39 private boolean _needsUpdate = false;
42 * keeps track of state for field: _needsUpdate
44 private boolean _has_needsUpdate;
47 * should the calculation be automatically performed on edits
49 private boolean _autoUpdate;
52 * keeps track of state for field: _autoUpdate
54 private boolean _has_autoUpdate;
71 public void deleteAutoUpdate()
73 this._has_autoUpdate = false;
78 public void deleteNeedsUpdate()
80 this._has_needsUpdate = false;
84 * Returns the value of field 'autoUpdate'. The field 'autoUpdate' has the
85 * following description: should the calculation be automatically performed on
88 * @return the value of field 'AutoUpdate'.
90 public boolean getAutoUpdate()
92 return this._autoUpdate;
96 * Returns the value of field 'calcId'. The field 'calcId' has the following
97 * description: handle for the calculation which uses this parameter set
99 * @return the value of field 'CalcId'.
101 public java.lang.String getCalcId()
107 * Returns the value of field 'needsUpdate'. The field 'needsUpdate' has the
108 * following description: should the calculation be performed immediately
109 * after loading in order to refresh results
111 * @return the value of field 'NeedsUpdate'.
113 public boolean getNeedsUpdate()
115 return this._needsUpdate;
119 * Method hasAutoUpdate.
121 * @return true if at least one AutoUpdate has been added
123 public boolean hasAutoUpdate()
125 return this._has_autoUpdate;
129 * Method hasNeedsUpdate.
131 * @return true if at least one NeedsUpdate has been added
133 public boolean hasNeedsUpdate()
135 return this._has_needsUpdate;
139 * Returns the value of field 'autoUpdate'. The field 'autoUpdate' has the
140 * following description: should the calculation be automatically performed on
143 * @return the value of field 'AutoUpdate'.
145 public boolean isAutoUpdate()
147 return this._autoUpdate;
151 * Returns the value of field 'needsUpdate'. The field 'needsUpdate' has the
152 * following description: should the calculation be performed immediately
153 * after loading in order to refresh results
155 * @return the value of field 'NeedsUpdate'.
157 public boolean isNeedsUpdate()
159 return this._needsUpdate;
165 * @return true if this object is valid according to the schema
167 public boolean isValid()
172 } catch (org.exolab.castor.xml.ValidationException vex)
183 * @throws org.exolab.castor.xml.MarshalException
184 * if object is null or if any SAXException is thrown during
186 * @throws org.exolab.castor.xml.ValidationException
187 * if this object is an invalid instance according to the schema
189 public void marshal(final java.io.Writer out)
190 throws org.exolab.castor.xml.MarshalException,
191 org.exolab.castor.xml.ValidationException
193 Marshaller.marshal(this, out);
200 * @throws java.io.IOException
201 * if an IOException occurs during marshaling
202 * @throws org.exolab.castor.xml.ValidationException
203 * if this object is an invalid instance according to the schema
204 * @throws org.exolab.castor.xml.MarshalException
205 * if object is null or if any SAXException is thrown during
208 public void marshal(final org.xml.sax.ContentHandler handler)
209 throws java.io.IOException,
210 org.exolab.castor.xml.MarshalException,
211 org.exolab.castor.xml.ValidationException
213 Marshaller.marshal(this, handler);
217 * Sets the value of field 'autoUpdate'. The field 'autoUpdate' has the
218 * following description: should the calculation be automatically performed on
222 * the value of field 'autoUpdate'.
224 public void setAutoUpdate(final boolean autoUpdate)
226 this._autoUpdate = autoUpdate;
227 this._has_autoUpdate = true;
231 * Sets the value of field 'calcId'. The field 'calcId' has the following
232 * description: handle for the calculation which uses this parameter set
235 * the value of field 'calcId'.
237 public void setCalcId(final java.lang.String calcId)
239 this._calcId = calcId;
243 * Sets the value of field 'needsUpdate'. The field 'needsUpdate' has the
244 * following description: should the calculation be performed immediately
245 * after loading in order to refresh results
248 * the value of field 'needsUpdate'.
250 public void setNeedsUpdate(final boolean needsUpdate)
252 this._needsUpdate = needsUpdate;
253 this._has_needsUpdate = true;
260 * @throws org.exolab.castor.xml.MarshalException
261 * if object is null or if any SAXException is thrown during
263 * @throws org.exolab.castor.xml.ValidationException
264 * if this object is an invalid instance according to the schema
265 * @return the unmarshaled jalview.schemabinding.version2.CalcIdParam
267 public static jalview.schemabinding.version2.CalcIdParam unmarshal(
268 final java.io.Reader reader)
269 throws org.exolab.castor.xml.MarshalException,
270 org.exolab.castor.xml.ValidationException
272 return (jalview.schemabinding.version2.CalcIdParam) Unmarshaller
273 .unmarshal(jalview.schemabinding.version2.CalcIdParam.class,
280 * @throws org.exolab.castor.xml.ValidationException
281 * if this object is an invalid instance according to the schema
283 public void validate() throws org.exolab.castor.xml.ValidationException
285 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
286 validator.validate(this);