2 * This class was automatically generated with
\r
3 * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML
\r
8 * Jalview - A Sequence Alignment Editor and Viewer
\r
9 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
11 * This program is free software; you can redistribute it and/or
\r
12 * modify it under the terms of the GNU General Public License
\r
13 * as published by the Free Software Foundation; either version 2
\r
14 * of the License, or (at your option) any later version.
\r
16 * This program is distributed in the hope that it will be useful,
\r
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
19 * GNU General Public License for more details.
\r
21 * You should have received a copy of the GNU General Public License
\r
22 * along with this program; if not, write to the Free Software
\r
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
25 package jalview.binding;
\r
27 import org.exolab.castor.xml.MarshalException;
\r
28 import org.exolab.castor.xml.Marshaller;
\r
29 import org.exolab.castor.xml.Unmarshaller;
\r
30 import org.exolab.castor.xml.ValidationException;
\r
32 import org.xml.sax.ContentHandler;
\r
34 //---------------------------------/
\r
35 //- Imported classes and packages -/
\r
36 //---------------------------------/
\r
37 import java.io.IOException;
\r
38 import java.io.Reader;
\r
39 import java.io.Serializable;
\r
40 import java.io.Writer;
\r
42 import java.util.Date;
\r
46 * Class JalviewModel.
\r
48 * @version $Revision$ $Date$
\r
50 public class JalviewModel implements java.io.Serializable {
\r
51 //--------------------------/
\r
52 //- Class/Member Variables -/
\r
53 //--------------------------/
\r
56 * Field _creationDate
\r
58 private java.util.Date _creationDate;
\r
61 * Field _vamsasModel
\r
63 private jalview.binding.VamsasModel _vamsasModel;
\r
66 * Field _jalviewModelSequence
\r
68 private jalview.binding.JalviewModelSequence _jalviewModelSequence;
\r
73 public JalviewModel() {
\r
76 //-- jalview.binding.JalviewModel()
\r
79 public java.util.Date getCreationDate() {
\r
80 return this._creationDate;
\r
82 //-- java.util.Date getCreationDate()
\r
85 * Returns the value of field 'jalviewModelSequence'.
\r
87 * @return JalviewModelSequence
\r
88 * @return the value of field 'jalviewModelSequence'.
\r
90 public jalview.binding.JalviewModelSequence getJalviewModelSequence() {
\r
91 return this._jalviewModelSequence;
\r
93 //-- jalview.binding.JalviewModelSequence getJalviewModelSequence()
\r
96 * Returns the value of field 'vamsasModel'.
\r
98 * @return VamsasModel
\r
99 * @return the value of field 'vamsasModel'.
\r
101 public jalview.binding.VamsasModel getVamsasModel() {
\r
102 return this._vamsasModel;
\r
104 //-- jalview.binding.VamsasModel getVamsasModel()
\r
113 public boolean isValid() {
\r
116 } catch (org.exolab.castor.xml.ValidationException vex) {
\r
122 //-- boolean isValid()
\r
131 public void marshal(java.io.Writer out)
\r
132 throws org.exolab.castor.xml.MarshalException,
\r
133 org.exolab.castor.xml.ValidationException {
\r
134 Marshaller.marshal(this, out);
\r
136 //-- void marshal(java.io.Writer)
\r
145 public void marshal(org.xml.sax.ContentHandler handler)
\r
146 throws java.io.IOException, org.exolab.castor.xml.MarshalException,
\r
147 org.exolab.castor.xml.ValidationException {
\r
148 Marshaller.marshal(this, handler);
\r
150 //-- void marshal(org.xml.sax.ContentHandler)
\r
153 * Sets the value of field 'creationDate'.
\r
155 * @param creationDate the value of field 'creationDate'.
\r
157 public void setCreationDate(java.util.Date creationDate) {
\r
158 this._creationDate = creationDate;
\r
160 //-- void setCreationDate(java.util.Date)
\r
163 * Sets the value of field 'jalviewModelSequence'.
\r
165 * @param jalviewModelSequence the value of field
\r
166 * 'jalviewModelSequence'.
\r
168 public void setJalviewModelSequence(
\r
169 jalview.binding.JalviewModelSequence jalviewModelSequence) {
\r
170 this._jalviewModelSequence = jalviewModelSequence;
\r
172 //-- void setJalviewModelSequence(jalview.binding.JalviewModelSequence)
\r
175 * Sets the value of field 'vamsasModel'.
\r
177 * @param vamsasModel the value of field 'vamsasModel'.
\r
179 public void setVamsasModel(jalview.binding.VamsasModel vamsasModel) {
\r
180 this._vamsasModel = vamsasModel;
\r
182 //-- void setVamsasModel(jalview.binding.VamsasModel)
\r
192 public static java.lang.Object unmarshal(java.io.Reader reader)
\r
193 throws org.exolab.castor.xml.MarshalException,
\r
194 org.exolab.castor.xml.ValidationException {
\r
195 return (jalview.binding.JalviewModel) Unmarshaller.unmarshal(jalview.binding.JalviewModel.class,
\r
198 //-- java.lang.Object unmarshal(java.io.Reader)
\r
204 public void validate() throws org.exolab.castor.xml.ValidationException {
\r
205 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
\r
206 validator.validate(this);
\r
208 //-- void validate()
\r