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
23 implements java.io.Serializable
27 //--------------------------/
28 //- Class/Member Variables -/
29 //--------------------------/
32 * handle for the calculation which uses
36 private java.lang.String _calcId;
39 * should the calculation be performed
40 * immediately after loading in order to refresh results
43 private boolean _needsUpdate = false;
46 * keeps track of state for field: _needsUpdate
48 private boolean _has_needsUpdate;
51 * should the calculation be automatically
55 private boolean _autoUpdate;
58 * keeps track of state for field: _autoUpdate
60 private boolean _has_autoUpdate;
67 public CalcIdParam() {
78 public void deleteAutoUpdate(
80 this._has_autoUpdate= false;
85 public void deleteNeedsUpdate(
87 this._has_needsUpdate= false;
91 * Returns the value of field 'autoUpdate'. The field
92 * 'autoUpdate' has the following description: should the
93 * calculation be automatically
97 * @return the value of field 'AutoUpdate'.
99 public boolean getAutoUpdate(
101 return this._autoUpdate;
105 * Returns the value of field 'calcId'. The field 'calcId' has
106 * the following description: handle for the calculation which
111 * @return the value of field 'CalcId'.
113 public java.lang.String getCalcId(
119 * Returns the value of field 'needsUpdate'. The field
120 * 'needsUpdate' has the following description: should the
121 * calculation be performed
122 * immediately after loading in order to refresh results
125 * @return the value of field 'NeedsUpdate'.
127 public boolean getNeedsUpdate(
129 return this._needsUpdate;
133 * Method hasAutoUpdate.
135 * @return true if at least one AutoUpdate has been added
137 public boolean hasAutoUpdate(
139 return this._has_autoUpdate;
143 * Method hasNeedsUpdate.
145 * @return true if at least one NeedsUpdate has been added
147 public boolean hasNeedsUpdate(
149 return this._has_needsUpdate;
153 * Returns the value of field 'autoUpdate'. The field
154 * 'autoUpdate' has the following description: should the
155 * calculation be automatically
159 * @return the value of field 'AutoUpdate'.
161 public boolean isAutoUpdate(
163 return this._autoUpdate;
167 * Returns the value of field 'needsUpdate'. The field
168 * 'needsUpdate' has the following description: should the
169 * calculation be performed
170 * immediately after loading in order to refresh results
173 * @return the value of field 'NeedsUpdate'.
175 public boolean isNeedsUpdate(
177 return this._needsUpdate;
183 * @return true if this object is valid according to the schema
185 public boolean isValid(
189 } catch (org.exolab.castor.xml.ValidationException vex) {
199 * @throws org.exolab.castor.xml.MarshalException if object is
200 * null or if any SAXException is thrown during marshaling
201 * @throws org.exolab.castor.xml.ValidationException if this
202 * object is an invalid instance according to the schema
205 final java.io.Writer out)
206 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
207 Marshaller.marshal(this, out);
214 * @throws java.io.IOException if an IOException occurs during
216 * @throws org.exolab.castor.xml.ValidationException if this
217 * object is an invalid instance according to the schema
218 * @throws org.exolab.castor.xml.MarshalException if object is
219 * null or if any SAXException is thrown during marshaling
222 final org.xml.sax.ContentHandler handler)
223 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
224 Marshaller.marshal(this, handler);
228 * Sets the value of field 'autoUpdate'. The field 'autoUpdate'
229 * has the following description: should the calculation be
234 * @param autoUpdate the value of field 'autoUpdate'.
236 public void setAutoUpdate(
237 final boolean autoUpdate) {
238 this._autoUpdate = autoUpdate;
239 this._has_autoUpdate = true;
243 * Sets the value of field 'calcId'. The field 'calcId' has the
244 * following description: handle for the calculation which uses
248 * @param calcId the value of field 'calcId'.
250 public void setCalcId(
251 final java.lang.String calcId) {
252 this._calcId = calcId;
256 * Sets the value of field 'needsUpdate'. The field
257 * 'needsUpdate' has the following description: should the
258 * calculation be performed
259 * immediately after loading in order to refresh results
262 * @param needsUpdate the value of field 'needsUpdate'.
264 public void setNeedsUpdate(
265 final boolean needsUpdate) {
266 this._needsUpdate = needsUpdate;
267 this._has_needsUpdate = true;
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
278 * @return the unmarshaled
279 * jalview.schemabinding.version2.CalcIdParam
281 public static jalview.schemabinding.version2.CalcIdParam unmarshal(
282 final java.io.Reader reader)
283 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
284 return (jalview.schemabinding.version2.CalcIdParam) Unmarshaller.unmarshal(jalview.schemabinding.version2.CalcIdParam.class, reader);
290 * @throws org.exolab.castor.xml.ValidationException if this
291 * object is an invalid instance according to the schema
293 public void validate(
295 throws org.exolab.castor.xml.ValidationException {
296 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
297 validator.validate(this);