1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 *******************************************************************************/
19 * This class was automatically generated with
20 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
25 package jalview.binding;
27 //---------------------------------/
28 //- Imported classes and packages -/
29 //---------------------------------/
31 import org.exolab.castor.xml.Marshaller;
32 import org.exolab.castor.xml.Unmarshaller;
37 * @version $Revision$ $Date$
39 public class JalviewModel implements java.io.Serializable {
42 //--------------------------/
43 //- Class/Member Variables -/
44 //--------------------------/
47 * Field _creationDate.
49 private java.util.Date _creationDate;
54 private java.lang.String _version;
59 private jalview.binding.VamsasModel _vamsasModel;
62 * Field _jalviewModelSequence.
64 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
71 public JalviewModel() {
81 * Returns the value of field 'creationDate'.
83 * @return the value of field 'CreationDate'.
85 public java.util.Date getCreationDate(
87 return this._creationDate;
91 * Returns the value of field 'jalviewModelSequence'.
93 * @return the value of field 'JalviewModelSequence'.
95 public jalview.binding.JalviewModelSequence getJalviewModelSequence(
97 return this._jalviewModelSequence;
101 * Returns the value of field 'vamsasModel'.
103 * @return the value of field 'VamsasModel'.
105 public jalview.binding.VamsasModel getVamsasModel(
107 return this._vamsasModel;
111 * Returns the value of field 'version'.
113 * @return the value of field 'Version'.
115 public java.lang.String getVersion(
117 return this._version;
123 * @return true if this object is valid according to the schema
125 public boolean isValid(
129 } catch (org.exolab.castor.xml.ValidationException vex) {
139 * @throws org.exolab.castor.xml.MarshalException if object is
140 * null or if any SAXException is thrown during marshaling
141 * @throws org.exolab.castor.xml.ValidationException if this
142 * object is an invalid instance according to the schema
145 final java.io.Writer out)
146 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147 Marshaller.marshal(this, out);
154 * @throws java.io.IOException if an IOException occurs during
156 * @throws org.exolab.castor.xml.ValidationException if this
157 * object is an invalid instance according to the schema
158 * @throws org.exolab.castor.xml.MarshalException if object is
159 * null or if any SAXException is thrown during marshaling
162 final org.xml.sax.ContentHandler handler)
163 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
164 Marshaller.marshal(this, handler);
168 * Sets the value of field 'creationDate'.
170 * @param creationDate the value of field 'creationDate'.
172 public void setCreationDate(
173 final java.util.Date creationDate) {
174 this._creationDate = creationDate;
178 * Sets the value of field 'jalviewModelSequence'.
180 * @param jalviewModelSequence the value of field
181 * 'jalviewModelSequence'.
183 public void setJalviewModelSequence(
184 final jalview.binding.JalviewModelSequence jalviewModelSequence) {
185 this._jalviewModelSequence = jalviewModelSequence;
189 * Sets the value of field 'vamsasModel'.
191 * @param vamsasModel the value of field 'vamsasModel'.
193 public void setVamsasModel(
194 final jalview.binding.VamsasModel vamsasModel) {
195 this._vamsasModel = vamsasModel;
199 * Sets the value of field 'version'.
201 * @param version the value of field 'version'.
203 public void setVersion(
204 final java.lang.String version) {
205 this._version = version;
212 * @throws org.exolab.castor.xml.MarshalException if object is
213 * null or if any SAXException is thrown during marshaling
214 * @throws org.exolab.castor.xml.ValidationException if this
215 * object is an invalid instance according to the schema
216 * @return the unmarshaled jalview.binding.JalviewModel
218 public static jalview.binding.JalviewModel unmarshal(
219 final java.io.Reader reader)
220 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
221 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class, reader);
227 * @throws org.exolab.castor.xml.ValidationException if this
228 * object is an invalid instance according to the schema
230 public void validate(
232 throws org.exolab.castor.xml.ValidationException {
233 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
234 validator.validate(this);