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.binding;
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 JalviewModel implements java.io.Serializable
45 // --------------------------/
46 // - Class/Member Variables -/
47 // --------------------------/
50 * Field _creationDate.
52 private java.util.Date _creationDate;
57 private java.lang.String _version;
62 private jalview.binding.VamsasModel _vamsasModel;
65 * Field _jalviewModelSequence.
67 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
83 * Returns the value of field 'creationDate'.
85 * @return the value of field 'CreationDate'.
87 public java.util.Date getCreationDate()
89 return this._creationDate;
93 * Returns the value of field 'jalviewModelSequence'.
95 * @return the value of field 'JalviewModelSequence'.
97 public jalview.binding.JalviewModelSequence getJalviewModelSequence()
99 return this._jalviewModelSequence;
103 * Returns the value of field 'vamsasModel'.
105 * @return the value of field 'VamsasModel'.
107 public jalview.binding.VamsasModel getVamsasModel()
109 return this._vamsasModel;
113 * Returns the value of field 'version'.
115 * @return the value of field 'Version'.
117 public java.lang.String getVersion()
119 return this._version;
125 * @return true if this object is valid according to the schema
127 public boolean isValid()
132 } catch (org.exolab.castor.xml.ValidationException vex)
143 * @throws org.exolab.castor.xml.MarshalException
144 * if object is null or if any SAXException is thrown during
146 * @throws org.exolab.castor.xml.ValidationException
147 * if this object is an invalid instance according to the schema
149 public void marshal(final java.io.Writer out)
150 throws org.exolab.castor.xml.MarshalException,
151 org.exolab.castor.xml.ValidationException
153 Marshaller.marshal(this, out);
160 * @throws java.io.IOException
161 * if an IOException occurs during marshaling
162 * @throws org.exolab.castor.xml.ValidationException
163 * if this object is an invalid instance according to the schema
164 * @throws org.exolab.castor.xml.MarshalException
165 * if object is null or if any SAXException is thrown during
168 public void marshal(final org.xml.sax.ContentHandler handler)
169 throws java.io.IOException,
170 org.exolab.castor.xml.MarshalException,
171 org.exolab.castor.xml.ValidationException
173 Marshaller.marshal(this, handler);
177 * Sets the value of field 'creationDate'.
179 * @param creationDate
180 * the value of field 'creationDate'.
182 public void setCreationDate(final java.util.Date creationDate)
184 this._creationDate = creationDate;
188 * Sets the value of field 'jalviewModelSequence'.
190 * @param jalviewModelSequence
191 * the value of field 'jalviewModelSequence'.
193 public void setJalviewModelSequence(
194 final jalview.binding.JalviewModelSequence jalviewModelSequence)
196 this._jalviewModelSequence = jalviewModelSequence;
200 * Sets the value of field 'vamsasModel'.
203 * the value of field 'vamsasModel'.
205 public void setVamsasModel(final jalview.binding.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.binding.JalviewModel
232 public static jalview.binding.JalviewModel unmarshal(
233 final java.io.Reader reader)
234 throws org.exolab.castor.xml.MarshalException,
235 org.exolab.castor.xml.ValidationException
237 return (jalview.binding.JalviewModel) Unmarshaller
238 .unmarshal(jalview.binding.JalviewModel.class, reader);
244 * @throws org.exolab.castor.xml.ValidationException
245 * if this object is an invalid instance according to the schema
247 public void validate() throws org.exolab.castor.xml.ValidationException
249 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
250 validator.validate(this);