1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $(date) The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
20 *******************************************************************************/
22 * This class was automatically generated with
23 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
28 package jalview.schemabinding.version2;
30 //---------------------------------/
31 //- Imported classes and packages -/
32 //---------------------------------/
34 import org.exolab.castor.xml.Marshaller;
35 import org.exolab.castor.xml.Unmarshaller;
40 * @version $Revision$ $Date$
42 public class CalcIdParam extends WebServiceParameterSet implements
46 // --------------------------/
47 // - Class/Member Variables -/
48 // --------------------------/
51 * handle for the calculation which uses this parameter set
54 private java.lang.String _calcId;
57 * should the calculation be performed immediately after loading in order to
61 private boolean _needsUpdate = false;
64 * keeps track of state for field: _needsUpdate
66 private boolean _has_needsUpdate;
69 * should the calculation be automatically performed on edits
72 private boolean _autoUpdate;
75 * keeps track of state for field: _autoUpdate
77 private boolean _has_autoUpdate;
94 public void deleteAutoUpdate()
96 this._has_autoUpdate = false;
101 public void deleteNeedsUpdate()
103 this._has_needsUpdate = false;
107 * Returns the value of field 'autoUpdate'. The field 'autoUpdate' has the
108 * following description: should the calculation be automatically performed on
112 * @return the value of field 'AutoUpdate'.
114 public boolean getAutoUpdate()
116 return this._autoUpdate;
120 * Returns the value of field 'calcId'. The field 'calcId' has the following
121 * description: handle for the calculation which uses this parameter set
124 * @return the value of field 'CalcId'.
126 public java.lang.String getCalcId()
132 * Returns the value of field 'needsUpdate'. The field 'needsUpdate' has the
133 * following description: should the calculation be performed immediately
134 * after loading in order to refresh results
137 * @return the value of field 'NeedsUpdate'.
139 public boolean getNeedsUpdate()
141 return this._needsUpdate;
145 * Method hasAutoUpdate.
147 * @return true if at least one AutoUpdate has been added
149 public boolean hasAutoUpdate()
151 return this._has_autoUpdate;
155 * Method hasNeedsUpdate.
157 * @return true if at least one NeedsUpdate has been added
159 public boolean hasNeedsUpdate()
161 return this._has_needsUpdate;
165 * Returns the value of field 'autoUpdate'. The field 'autoUpdate' has the
166 * following description: should the calculation be automatically performed on
170 * @return the value of field 'AutoUpdate'.
172 public boolean isAutoUpdate()
174 return this._autoUpdate;
178 * Returns the value of field 'needsUpdate'. The field 'needsUpdate' has the
179 * following description: should the calculation be performed immediately
180 * after loading in order to refresh results
183 * @return the value of field 'NeedsUpdate'.
185 public boolean isNeedsUpdate()
187 return this._needsUpdate;
193 * @return true if this object is valid according to the schema
195 public boolean isValid()
200 } catch (org.exolab.castor.xml.ValidationException vex)
211 * @throws org.exolab.castor.xml.MarshalException
212 * if object is null or if any SAXException is thrown during
214 * @throws org.exolab.castor.xml.ValidationException
215 * if this object is an invalid instance according to the schema
217 public void marshal(final java.io.Writer out)
218 throws org.exolab.castor.xml.MarshalException,
219 org.exolab.castor.xml.ValidationException
221 Marshaller.marshal(this, out);
228 * @throws java.io.IOException
229 * if an IOException occurs during marshaling
230 * @throws org.exolab.castor.xml.ValidationException
231 * if this object is an invalid instance according to the schema
232 * @throws org.exolab.castor.xml.MarshalException
233 * if object is null or if any SAXException is thrown during
236 public void marshal(final org.xml.sax.ContentHandler handler)
237 throws java.io.IOException,
238 org.exolab.castor.xml.MarshalException,
239 org.exolab.castor.xml.ValidationException
241 Marshaller.marshal(this, handler);
245 * Sets the value of field 'autoUpdate'. The field 'autoUpdate' has the
246 * following description: should the calculation be automatically performed on
251 * the value of field 'autoUpdate'.
253 public void setAutoUpdate(final boolean autoUpdate)
255 this._autoUpdate = autoUpdate;
256 this._has_autoUpdate = true;
260 * Sets the value of field 'calcId'. The field 'calcId' has the following
261 * description: handle for the calculation which uses this parameter set
265 * the value of field 'calcId'.
267 public void setCalcId(final java.lang.String calcId)
269 this._calcId = calcId;
273 * Sets the value of field 'needsUpdate'. The field 'needsUpdate' has the
274 * following description: should the calculation be performed immediately
275 * after loading in order to refresh results
279 * the value of field 'needsUpdate'.
281 public void setNeedsUpdate(final boolean needsUpdate)
283 this._needsUpdate = needsUpdate;
284 this._has_needsUpdate = true;
291 * @throws org.exolab.castor.xml.MarshalException
292 * if object is null or if any SAXException is thrown during
294 * @throws org.exolab.castor.xml.ValidationException
295 * if this object is an invalid instance according to the schema
296 * @return the unmarshaled jalview.schemabinding.version2.CalcIdParam
298 public static jalview.schemabinding.version2.CalcIdParam unmarshal(
299 final java.io.Reader reader)
300 throws org.exolab.castor.xml.MarshalException,
301 org.exolab.castor.xml.ValidationException
303 return (jalview.schemabinding.version2.CalcIdParam) Unmarshaller
304 .unmarshal(jalview.schemabinding.version2.CalcIdParam.class,
311 * @throws org.exolab.castor.xml.ValidationException
312 * if this object is an invalid instance according to the schema
314 public void validate() throws org.exolab.castor.xml.ValidationException
316 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
317 validator.validate(this);