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 this parameter set
34 private java.lang.String _calcId;
37 * should the calculation be performed immediately after
38 * loading in order to refresh results
40 private boolean _needsUpdate = false;
43 * keeps track of state for field: _needsUpdate
45 private boolean _has_needsUpdate;
48 * should the calculation be automatically performed on edits
50 private boolean _autoUpdate;
53 * keeps track of state for field: _autoUpdate
55 private boolean _has_autoUpdate;
62 public CalcIdParam() {
73 public void deleteAutoUpdate(
75 this._has_autoUpdate= false;
80 public void deleteNeedsUpdate(
82 this._has_needsUpdate= false;
86 * Returns the value of field 'autoUpdate'. The field
87 * 'autoUpdate' has the following description: should the
88 * calculation be automatically performed on edits
90 * @return the value of field 'AutoUpdate'.
92 public boolean getAutoUpdate(
94 return this._autoUpdate;
98 * Returns the value of field 'calcId'. The field 'calcId' has
99 * the following description: handle for the calculation which
100 * uses this parameter set
102 * @return the value of field 'CalcId'.
104 public java.lang.String getCalcId(
110 * Returns the value of field 'needsUpdate'. The field
111 * 'needsUpdate' has the following description: should the
112 * calculation be performed immediately after loading in order
115 * @return the value of field 'NeedsUpdate'.
117 public boolean getNeedsUpdate(
119 return this._needsUpdate;
123 * Method hasAutoUpdate.
125 * @return true if at least one AutoUpdate has been added
127 public boolean hasAutoUpdate(
129 return this._has_autoUpdate;
133 * Method hasNeedsUpdate.
135 * @return true if at least one NeedsUpdate has been added
137 public boolean hasNeedsUpdate(
139 return this._has_needsUpdate;
143 * Returns the value of field 'autoUpdate'. The field
144 * 'autoUpdate' has the following description: should the
145 * calculation be automatically performed on edits
147 * @return the value of field 'AutoUpdate'.
149 public boolean isAutoUpdate(
151 return this._autoUpdate;
155 * Returns the value of field 'needsUpdate'. The field
156 * 'needsUpdate' has the following description: should the
157 * calculation be performed immediately after loading in order
160 * @return the value of field 'NeedsUpdate'.
162 public boolean isNeedsUpdate(
164 return this._needsUpdate;
170 * @return true if this object is valid according to the schema
172 public boolean isValid(
176 } catch (org.exolab.castor.xml.ValidationException vex) {
186 * @throws org.exolab.castor.xml.MarshalException if object is
187 * null or if any SAXException is thrown during marshaling
188 * @throws org.exolab.castor.xml.ValidationException if this
189 * object is an invalid instance according to the schema
192 final java.io.Writer out)
193 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
194 Marshaller.marshal(this, out);
201 * @throws java.io.IOException if an IOException occurs during
203 * @throws org.exolab.castor.xml.ValidationException if this
204 * object is an invalid instance according to the schema
205 * @throws org.exolab.castor.xml.MarshalException if object is
206 * null or if any SAXException is thrown during marshaling
209 final org.xml.sax.ContentHandler handler)
210 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
211 Marshaller.marshal(this, handler);
215 * Sets the value of field 'autoUpdate'. The field 'autoUpdate'
216 * has the following description: should the calculation be
217 * automatically performed on edits
219 * @param autoUpdate the value of field 'autoUpdate'.
221 public void setAutoUpdate(
222 final boolean autoUpdate) {
223 this._autoUpdate = autoUpdate;
224 this._has_autoUpdate = true;
228 * Sets the value of field 'calcId'. The field 'calcId' has the
229 * following description: handle for the calculation which uses
232 * @param calcId the value of field 'calcId'.
234 public void setCalcId(
235 final java.lang.String calcId) {
236 this._calcId = calcId;
240 * Sets the value of field 'needsUpdate'. The field
241 * 'needsUpdate' has the following description: should the
242 * calculation be performed immediately after loading in order
245 * @param needsUpdate the value of field 'needsUpdate'.
247 public void setNeedsUpdate(
248 final boolean needsUpdate) {
249 this._needsUpdate = needsUpdate;
250 this._has_needsUpdate = true;
257 * @throws org.exolab.castor.xml.MarshalException if object is
258 * null or if any SAXException is thrown during marshaling
259 * @throws org.exolab.castor.xml.ValidationException if this
260 * object is an invalid instance according to the schema
261 * @return the unmarshaled
262 * jalview.schemabinding.version2.CalcIdParam
264 public static jalview.schemabinding.version2.CalcIdParam unmarshal(
265 final java.io.Reader reader)
266 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
267 return (jalview.schemabinding.version2.CalcIdParam) Unmarshaller.unmarshal(jalview.schemabinding.version2.CalcIdParam.class, reader);
273 * @throws org.exolab.castor.xml.ValidationException if this
274 * object is an invalid instance according to the schema
276 public void validate(
278 throws org.exolab.castor.xml.ValidationException {
279 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
280 validator.validate(this);