2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
9 * Jalview - A Sequence Alignment Editor and Viewer
\r
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
12 * This program is free software; you can redistribute it and/or
\r
13 * modify it under the terms of the GNU General Public License
\r
14 * as published by the Free Software Foundation; either version 2
\r
15 * of the License, or (at your option) any later version.
\r
17 * This program is distributed in the hope that it will be useful,
\r
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
20 * GNU General Public License for more details.
\r
22 * You should have received a copy of the GNU General Public License
\r
23 * along with this program; if not, write to the Free Software
\r
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
27 package jalview.binding;
\r
29 //---------------------------------/
\r
30 //- Imported classes and packages -/
\r
31 //---------------------------------/
\r
33 import java.io.IOException;
\r
34 import java.io.Reader;
\r
35 import java.io.Serializable;
\r
36 import java.io.Writer;
\r
37 import java.util.Date;
\r
38 import org.exolab.castor.xml.MarshalException;
\r
39 import org.exolab.castor.xml.Marshaller;
\r
40 import org.exolab.castor.xml.Unmarshaller;
\r
41 import org.exolab.castor.xml.ValidationException;
\r
42 import org.xml.sax.ContentHandler;
\r
45 * Class JalviewModel.
\r
47 * @version $Revision$ $Date$
\r
49 public class JalviewModel implements java.io.Serializable {
\r
52 //--------------------------/
\r
53 //- Class/Member Variables -/
\r
54 //--------------------------/
\r
57 * Field _creationDate
\r
59 private java.util.Date _creationDate;
\r
62 * Field _vamsasModel
\r
64 private jalview.binding.VamsasModel _vamsasModel;
\r
67 * Field _jalviewModelSequence
\r
69 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
\r
76 public JalviewModel() {
\r
78 } //-- jalview.binding.JalviewModel()
\r
86 * Returns the value of field 'creationDate'.
\r
89 * @return the value of field 'creationDate'.
\r
91 public java.util.Date getCreationDate()
\r
93 return this._creationDate;
\r
94 } //-- java.util.Date getCreationDate()
\r
97 * Returns the value of field 'jalviewModelSequence'.
\r
99 * @return JalviewModelSequence
\r
100 * @return the value of field 'jalviewModelSequence'.
\r
102 public jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
104 return this._jalviewModelSequence;
\r
105 } //-- jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
108 * Returns the value of field 'vamsasModel'.
\r
110 * @return VamsasModel
\r
111 * @return the value of field 'vamsasModel'.
\r
113 public jalview.binding.VamsasModel getVamsasModel()
\r
115 return this._vamsasModel;
\r
116 } //-- jalview.binding.VamsasModel getVamsasModel()
\r
125 public boolean isValid()
\r
130 catch (org.exolab.castor.xml.ValidationException vex) {
\r
134 } //-- boolean isValid()
\r
143 public void marshal(java.io.Writer out)
\r
144 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
147 Marshaller.marshal(this, out);
\r
148 } //-- void marshal(java.io.Writer)
\r
157 public void marshal(org.xml.sax.ContentHandler handler)
\r
158 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
161 Marshaller.marshal(this, handler);
\r
162 } //-- void marshal(org.xml.sax.ContentHandler)
\r
165 * Sets the value of field 'creationDate'.
\r
167 * @param creationDate the value of field 'creationDate'.
\r
169 public void setCreationDate(java.util.Date creationDate)
\r
171 this._creationDate = creationDate;
\r
172 } //-- void setCreationDate(java.util.Date)
\r
175 * Sets the value of field 'jalviewModelSequence'.
\r
177 * @param jalviewModelSequence the value of field
\r
178 * 'jalviewModelSequence'.
\r
180 public void setJalviewModelSequence(jalview.binding.JalviewModelSequence jalviewModelSequence)
\r
182 this._jalviewModelSequence = jalviewModelSequence;
\r
183 } //-- void setJalviewModelSequence(jalview.binding.JalviewModelSequence)
\r
186 * Sets the value of field 'vamsasModel'.
\r
188 * @param vamsasModel the value of field 'vamsasModel'.
\r
190 public void setVamsasModel(jalview.binding.VamsasModel vamsasModel)
\r
192 this._vamsasModel = vamsasModel;
\r
193 } //-- void setVamsasModel(jalview.binding.VamsasModel)
\r
203 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
204 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
\r
206 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class, reader);
\r
207 } //-- java.lang.Object unmarshal(java.io.Reader)
\r
213 public void validate()
\r
214 throws org.exolab.castor.xml.ValidationException
\r
216 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
217 validator.validate(this);
\r
218 } //-- void validate()
\r