1 /*******************************************************************************
2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
3 * Copyright (C) 2014 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 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.
17 * If not, see <http://www.gnu.org/licenses/>.
18 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 ******************************************************************************/
21 * This class was automatically generated with
22 * <a href="http://www.castor.org">Castor 1.1</a>, using an XML
27 package jalview.schemabinding.version2;
29 //---------------------------------/
30 //- Imported classes and packages -/
31 //---------------------------------/
33 import org.exolab.castor.xml.Marshaller;
34 import org.exolab.castor.xml.Unmarshaller;
39 * @version $Revision$ $Date$
41 public class JalviewModel implements java.io.Serializable
44 // --------------------------/
45 // - Class/Member Variables -/
46 // --------------------------/
49 * Field _creationDate.
51 private java.util.Date _creationDate;
56 private java.lang.String _version;
61 private jalview.schemabinding.version2.VamsasModel _vamsasModel;
64 * Field _jalviewModelSequence.
66 private jalview.schemabinding.version2.JalviewModelSequence _jalviewModelSequence;
82 * Returns the value of field 'creationDate'.
84 * @return the value of field 'CreationDate'.
86 public java.util.Date getCreationDate()
88 return this._creationDate;
92 * Returns the value of field 'jalviewModelSequence'.
94 * @return the value of field 'JalviewModelSequence'.
96 public jalview.schemabinding.version2.JalviewModelSequence getJalviewModelSequence()
98 return this._jalviewModelSequence;
102 * Returns the value of field 'vamsasModel'.
104 * @return the value of field 'VamsasModel'.
106 public jalview.schemabinding.version2.VamsasModel getVamsasModel()
108 return this._vamsasModel;
112 * Returns the value of field 'version'.
114 * @return the value of field 'Version'.
116 public java.lang.String getVersion()
118 return this._version;
124 * @return true if this object is valid according to the schema
126 public boolean isValid()
131 } catch (org.exolab.castor.xml.ValidationException vex)
142 * @throws org.exolab.castor.xml.MarshalException
143 * if object is null or if any SAXException is thrown during
145 * @throws org.exolab.castor.xml.ValidationException
146 * if this object is an invalid instance according to the schema
148 public void marshal(final java.io.Writer out)
149 throws org.exolab.castor.xml.MarshalException,
150 org.exolab.castor.xml.ValidationException
152 Marshaller.marshal(this, out);
159 * @throws java.io.IOException
160 * if an IOException occurs during marshaling
161 * @throws org.exolab.castor.xml.ValidationException
162 * if this object is an invalid instance according to the schema
163 * @throws org.exolab.castor.xml.MarshalException
164 * if object is null or if any SAXException is thrown during
167 public void marshal(final org.xml.sax.ContentHandler handler)
168 throws java.io.IOException,
169 org.exolab.castor.xml.MarshalException,
170 org.exolab.castor.xml.ValidationException
172 Marshaller.marshal(this, handler);
176 * Sets the value of field 'creationDate'.
178 * @param creationDate
179 * the value of field 'creationDate'.
181 public void setCreationDate(final java.util.Date creationDate)
183 this._creationDate = creationDate;
187 * Sets the value of field 'jalviewModelSequence'.
189 * @param jalviewModelSequence
190 * the value of field 'jalviewModelSequence'.
192 public void setJalviewModelSequence(
193 final jalview.schemabinding.version2.JalviewModelSequence jalviewModelSequence)
195 this._jalviewModelSequence = jalviewModelSequence;
199 * Sets the value of field 'vamsasModel'.
202 * the value of field 'vamsasModel'.
204 public void setVamsasModel(
205 final jalview.schemabinding.version2.VamsasModel vamsasModel)
207 this._vamsasModel = vamsasModel;
211 * Sets the value of field 'version'.
214 * the value of field 'version'.
216 public void setVersion(final java.lang.String version)
218 this._version = version;
225 * @throws org.exolab.castor.xml.MarshalException
226 * if object is null or if any SAXException is thrown during
228 * @throws org.exolab.castor.xml.ValidationException
229 * if this object is an invalid instance according to the schema
230 * @return the unmarshaled jalview.schemabinding.version2.JalviewModel
232 public static jalview.schemabinding.version2.JalviewModel unmarshal(
233 final java.io.Reader reader)
234 throws org.exolab.castor.xml.MarshalException,
235 org.exolab.castor.xml.ValidationException
237 return (jalview.schemabinding.version2.JalviewModel) Unmarshaller
238 .unmarshal(jalview.schemabinding.version2.JalviewModel.class,
245 * @throws org.exolab.castor.xml.ValidationException
246 * if this object is an invalid instance according to the schema
248 public void validate() throws org.exolab.castor.xml.ValidationException
250 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
251 validator.validate(this);